diff options
author | Markus Ullmann <jokey@gentoo.org> | 2007-08-31 09:11:44 +0000 |
---|---|---|
committer | Markus Ullmann <jokey@gentoo.org> | 2007-08-31 09:11:44 +0000 |
commit | a7606c9934d02106209e16c5338756eafc06afb7 (patch) | |
tree | 73f406ef14d44b483072437d740b00b0e6687bc2 /dev-php4 | |
parent | Port from project overlay (diff) | |
download | historical-a7606c9934d02106209e16c5338756eafc06afb7.tar.gz historical-a7606c9934d02106209e16c5338756eafc06afb7.tar.bz2 historical-a7606c9934d02106209e16c5338756eafc06afb7.zip |
Port from project overlay
Package-Manager: portage-2.1.3.7
Diffstat (limited to 'dev-php4')
-rw-r--r-- | dev-php4/jpgraph/ChangeLog | 13 | ||||
-rw-r--r-- | dev-php4/jpgraph/Manifest | 24 | ||||
-rw-r--r-- | dev-php4/jpgraph/files/digest-jpgraph-1.21b | 3 | ||||
-rw-r--r-- | dev-php4/jpgraph/jpgraph-1.21b.ebuild | 89 |
4 files changed, 120 insertions, 9 deletions
diff --git a/dev-php4/jpgraph/ChangeLog b/dev-php4/jpgraph/ChangeLog index 1eaf6107286f..da03bad0e985 100644 --- a/dev-php4/jpgraph/ChangeLog +++ b/dev-php4/jpgraph/ChangeLog @@ -1,6 +1,17 @@ # ChangeLog for dev-php4/jpgraph # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-php4/jpgraph/ChangeLog,v 1.17 2007/07/29 16:53:50 phreak Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-php4/jpgraph/ChangeLog,v 1.18 2007/08/31 09:11:44 jokey Exp $ + +*jpgraph-1.21b (31 Aug 2007) + + 31 Aug 2007; Markus Ullmann <jokey@gentoo.org> +jpgraph-1.21b.ebuild: + Port from project overlay + + 30 Aug 2007; Jakub Moc <jakub@gentoo.org> jpgraph-1.21b.ebuild: + Make HTTPD_{USER,GROUP} configurable. + + 30 Aug 2007; Jakub Moc <jakub@gentoo.org> +jpgraph-1.21b.ebuild: + Version bump 29 Jul 2007; Christian Heim <phreak@gentoo.org> jpgraph-1.20.5.ebuild: Fixing the DEPEND/RDEPEND for the move of net-www/apache to diff --git a/dev-php4/jpgraph/Manifest b/dev-php4/jpgraph/Manifest index 82e990a10423..8fc0f8e57157 100644 --- a/dev-php4/jpgraph/Manifest +++ b/dev-php4/jpgraph/Manifest @@ -2,14 +2,19 @@ Hash: SHA1 DIST jpgraph-1.20.5.tar.gz 4472390 RMD160 9c6728681a5fb40b6789657b0b147fc9136f46ec SHA1 353bdcb1d42cf7d8a650ddfcbfb58f730f998fbd SHA256 43367468406f6e968eb991d25a3de63f19ddbfd2a3871f34cbca325860a1281c +DIST jpgraph-1.21b.tar.gz 4608361 RMD160 b03bb2597be17c4073ff9928bcae5d1619b35d3c SHA1 b6966bc79a58dbeb3d17162bee9b407315087290 SHA256 9fd5a603d0a6e523876fb8b8607dc7ff19b64812185e3d9917d281873a4520e0 EBUILD jpgraph-1.20.5.ebuild 2406 RMD160 a50d24ade524fba0911eede6149321ee5045a2c4 SHA1 73b4bffb9a451183a7d5a7e57ef7be36cc6bc715 SHA256 d0146bcd83cc62be9e7c0fc45c069dd9af38bf31a6df8ea3e6935a3a9f6508c5 MD5 efab40833bed67f97ae0d81cf802d912 jpgraph-1.20.5.ebuild 2406 RMD160 a50d24ade524fba0911eede6149321ee5045a2c4 jpgraph-1.20.5.ebuild 2406 SHA256 d0146bcd83cc62be9e7c0fc45c069dd9af38bf31a6df8ea3e6935a3a9f6508c5 jpgraph-1.20.5.ebuild 2406 -MISC ChangeLog 2171 RMD160 7d0ecf1f3714406c457b6005bc2ec2502c382f41 SHA1 c8e542636e7d458a43b1b587368d2d2ff93801d4 SHA256 e0059d7a131acdb7733987e5afb4a933bf37691ca9750ac294a045da6b6dd79e -MD5 1058a61f97a5cb09e2640357949e7cf3 ChangeLog 2171 -RMD160 7d0ecf1f3714406c457b6005bc2ec2502c382f41 ChangeLog 2171 -SHA256 e0059d7a131acdb7733987e5afb4a933bf37691ca9750ac294a045da6b6dd79e ChangeLog 2171 +EBUILD jpgraph-1.21b.ebuild 2780 RMD160 aee074f9de4e280bd2413ebf02f0d48f34f3fe78 SHA1 af90ba163186a553d594006859880452347c6a5f SHA256 a70cadbbf903e313aa9ddc017071fd9e11127652bc925dc3620d43ecec4b2a52 +MD5 bbd31b5b26843f8477e943f02cfd1077 jpgraph-1.21b.ebuild 2780 +RMD160 aee074f9de4e280bd2413ebf02f0d48f34f3fe78 jpgraph-1.21b.ebuild 2780 +SHA256 a70cadbbf903e313aa9ddc017071fd9e11127652bc925dc3620d43ecec4b2a52 jpgraph-1.21b.ebuild 2780 +MISC ChangeLog 2491 RMD160 ee0b93dda162a976993c1ee5ddb969c4a872fcd7 SHA1 41ae09a62aa005b2c4acd0db41fbb4baf1977de4 SHA256 0c7bcc8a63a18c35752d4c22b4d5463062d2d4e5c8abc8acb3972fb11c915ee7 +MD5 996423a143cb0443d13e07c6603e0506 ChangeLog 2491 +RMD160 ee0b93dda162a976993c1ee5ddb969c4a872fcd7 ChangeLog 2491 +SHA256 0c7bcc8a63a18c35752d4c22b4d5463062d2d4e5c8abc8acb3972fb11c915ee7 ChangeLog 2491 MISC metadata.xml 157 RMD160 a98db3a086fae3c09a903dadbc05f60443ec4b1a SHA1 ddaa23cc35eb917bf8962b652442bebb1ce0f440 SHA256 54f8878ca0228e380abbaa4b529806b5533a6b9b51b3b16c0909e906586a91a1 MD5 c58d07ca1c1235bbad9bccaec96fc062 metadata.xml 157 RMD160 a98db3a086fae3c09a903dadbc05f60443ec4b1a metadata.xml 157 @@ -17,10 +22,13 @@ SHA256 54f8878ca0228e380abbaa4b529806b5533a6b9b51b3b16c0909e906586a91a1 metadata MD5 571e7a883f09dc82661659de1d7d0a1e files/digest-jpgraph-1.20.5 247 RMD160 70498486faf29ac6c824ecd142e32519025b573d files/digest-jpgraph-1.20.5 247 SHA256 89ef1448f6d3487567e6a66e1d742c02abbf466241ea0d5a07a89c851d2ec78e files/digest-jpgraph-1.20.5 247 +MD5 c8eb4bc58d0f2f3b54112b633ca929ad files/digest-jpgraph-1.21b 244 +RMD160 b8fb9cc085d8989bf0f85115e26d4d3555e84c43 files/digest-jpgraph-1.21b 244 +SHA256 726e988ec796c80ad2fa415523519f93b4025e6f0fbffd7c02d97e1d4e964321 files/digest-jpgraph-1.21b 244 -----BEGIN PGP SIGNATURE----- -Version: GnuPG v2.0.5 (GNU/Linux) +Version: GnuPG v2.0.6 (GNU/Linux) -iD8DBQFGrMYqyuNVb5qfaOYRAnYvAJ922y6QNMqgFm2dgURKOooeVBLhMwCfayb3 -YjZ35gAqhgMZXbMlzkywPDs= -=kvb4 +iD8DBQFG19tXz974XjDVpbkRAsXNAJ9yWYmG1tbyWzwGSBc/b+1CCeLZrQCfcYYk +Wq9h8KBFPD+b1/O4Z5XRvL0= +=ihxt -----END PGP SIGNATURE----- diff --git a/dev-php4/jpgraph/files/digest-jpgraph-1.21b b/dev-php4/jpgraph/files/digest-jpgraph-1.21b new file mode 100644 index 000000000000..e8bd8e19b763 --- /dev/null +++ b/dev-php4/jpgraph/files/digest-jpgraph-1.21b @@ -0,0 +1,3 @@ +MD5 410b5b8a82a08b927bebd027ab12c829 jpgraph-1.21b.tar.gz 4608361 +RMD160 b03bb2597be17c4073ff9928bcae5d1619b35d3c jpgraph-1.21b.tar.gz 4608361 +SHA256 9fd5a603d0a6e523876fb8b8607dc7ff19b64812185e3d9917d281873a4520e0 jpgraph-1.21b.tar.gz 4608361 diff --git a/dev-php4/jpgraph/jpgraph-1.21b.ebuild b/dev-php4/jpgraph/jpgraph-1.21b.ebuild new file mode 100644 index 000000000000..dd3f1201e403 --- /dev/null +++ b/dev-php4/jpgraph/jpgraph-1.21b.ebuild @@ -0,0 +1,89 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-php4/jpgraph/jpgraph-1.21b.ebuild,v 1.1 2007/08/31 09:11:44 jokey Exp $ + +inherit php-lib-r1 eutils + +KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~sparc ~x86" + +DESCRIPTION="Fully OO graph drawing library for PHP." +HOMEPAGE="http://www.aditus.nu/jpgraph/" +SRC_URI="http://hem.bredband.net/jpgraph/${P}.tar.gz" +LICENSE="QPL-1.0" +SLOT="0" +IUSE="truetype" + +DEPEND="" +RDEPEND="truetype? ( media-fonts/corefonts )" + +need_php_by_category + +[[ -z "${JPGRAPH_CACHEDIR}" ]] && JPGRAPH_CACHEDIR="/var/cache/jpgraph-php4/" + +pkg_setup() { + has_php + + # we need the PHP GD functionality + require_gd + + # check to wich user:group the cache dir will go + if has_version "www-servers/apache" ; then + HTTPD_USER="apache" + HTTPD_GROUP="apache" + einfo "Configuring ${JPGRAPH_CACHEDIR} for Apache." + else + HTTPD_USER="${HTTPD_USER:-root}" + HTTPD_GROUP="${HTTPD_GROUP:-root}" + ewarn "No Apache webserver detected - ${JPGRAPH_CACHEDIR} will be" + ewarn "owned by ${HTTPD_USER}:${HTTPD_GROUP} instead." + ewarn "It this is not what you want, you can define" + ewarn "HTTPD_USER and HTTPD_GROUP variables and re-emerge ${PN}." + epause 3 + fi +} + +src_install() { + # some patches to adapt the config to Gentoo + einfo "Patching jpg-config.inc.php" + + # patch 1: + # make jpgraph use the correct group for file permissions + + sed -i "s|^DEFINE(\"CACHE_FILE_GROUP\",\"wwwadmin\");|DEFINE(\"CACHE_FILE_GROUP\",\"${HTTPD_GROUP}\");|" src/jpg-config.inc.php \ + || die "sed failed on patch 1" + + # patch 2: + # make jpgraph use the correct directory for caching + + sed -i "s|.*DEFINE(\"CACHE_DIR\",\"/tmp/jpgraph_cache/\");|DEFINE(\"CACHE_DIR\",\"${JPGRAPH_CACHEDIR}\");|" src/jpg-config.inc.php \ + || die "sed failed on patch 2" + + # patch 3: + # make jpgraph use the correct directory for the corefonts if the truetype USE flag is set + + if use truetype ; then + sed -i "s|.*DEFINE(\"TTF_DIR\",\"/usr/X11R6/lib/X11/fonts/truetype/\");|DEFINE(\"TTF_DIR\",\"/usr/share/fonts/corefonts/\");|" src/jpg-config.inc.php \ + || die "sed failed on patch 3" + fi + + # patch 4: + # disable READ_CACHE in jpgraph + + sed -i "s|^DEFINE(\"READ_CACHE\",true);|DEFINE(\"READ_CACHE\",false);|" src/jpg-config.inc.php || die "sed failed on patch 4" + + # install php files + einfo "Building list of files to install" + php-lib-r1_src_install src `cd src ; find . -type f -print` + + # install documentation + einfo "Installing documentation" + dodoc-php README QPL.txt + insinto /usr/share/doc/${CATEGORY}/${PF} + doins -r docs/* + + # setup the cache dir + einfo "Setting up the cache dir" + keepdir "${JPGRAPH_CACHEDIR}" + fowners ${HTTPD_USER}:${HTTPD_GROUP} "${JPGRAPH_CACHEDIR}" + fperms 750 "${JPGRAPH_CACHEDIR}" +} |