From d0a69007b20746f1197cdce529580f6e1b4d5e9a Mon Sep 17 00:00:00 2001 From: Sebastian Bergmann Date: Sat, 11 Feb 2006 12:16:49 +0000 Subject: Version bump. (Portage version: 2.1_pre4-r1) --- dev-php5/jpgraph/ChangeLog | 8 ++- dev-php5/jpgraph/Manifest | 24 ++++--- dev-php5/jpgraph/files/digest-jpgraph-2.0 | 3 + dev-php5/jpgraph/files/digest-jpgraph-2.0_beta | 1 - dev-php5/jpgraph/jpgraph-2.0.ebuild | 87 ++++++++++++++++++++++++++ dev-php5/jpgraph/jpgraph-2.0_beta.ebuild | 87 -------------------------- 6 files changed, 108 insertions(+), 102 deletions(-) create mode 100644 dev-php5/jpgraph/files/digest-jpgraph-2.0 delete mode 100644 dev-php5/jpgraph/files/digest-jpgraph-2.0_beta create mode 100644 dev-php5/jpgraph/jpgraph-2.0.ebuild delete mode 100644 dev-php5/jpgraph/jpgraph-2.0_beta.ebuild (limited to 'dev-php5/jpgraph') diff --git a/dev-php5/jpgraph/ChangeLog b/dev-php5/jpgraph/ChangeLog index 700898e281fd..27a2680f9d04 100644 --- a/dev-php5/jpgraph/ChangeLog +++ b/dev-php5/jpgraph/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-php5/jpgraph # Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-php5/jpgraph/ChangeLog,v 1.5 2006/02/03 20:08:52 nixnut Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-php5/jpgraph/ChangeLog,v 1.6 2006/02/11 12:15:00 sebastian Exp $ + +*jpgraph-2.0 (11 Feb 2006) + + 11 Feb 2006; Sebastian Bergmann + -jpgraph-2.0_beta.ebuild, +jpgraph-2.0.ebuild: + Version bump. 03 Feb 2006; jpgraph-2.0_beta.ebuild: Added ~ppc keyword. bug 121023 diff --git a/dev-php5/jpgraph/Manifest b/dev-php5/jpgraph/Manifest index 8795a7a56fdf..294e7e9ccb75 100644 --- a/dev-php5/jpgraph/Manifest +++ b/dev-php5/jpgraph/Manifest @@ -1,14 +1,12 @@ ------BEGIN PGP SIGNED MESSAGE----- -Hash: SHA1 - -MD5 f2822815bc2006026e1798fb8cc5efbd ChangeLog 754 -MD5 9c1a606f1b31c4a2d6806167e89860b6 files/digest-jpgraph-2.0_beta 68 -MD5 a489087535d3768678d1ab1e8b6ffbd8 jpgraph-2.0_beta.ebuild 2554 +MD5 73bcab86071f9ec4e493a05d29952b94 ChangeLog 905 +RMD160 a93202f69a55a2d6785866ecbbe237358789552f ChangeLog 905 +SHA256 8984d4072f4def56d32a35b53b401dee2e048dc5190024592ba6eb66925be936 ChangeLog 905 +MD5 af843c2e6338394518f486afaa7d5fe5 files/digest-jpgraph-2.0 238 +RMD160 3977689f28b581f25e9ecdcf520220f041a85f6a files/digest-jpgraph-2.0 238 +SHA256 ddf8439b64b8903259eea386214efa4e76179c34eb83aeffb215be93ef7083fb files/digest-jpgraph-2.0 238 +MD5 a489087535d3768678d1ab1e8b6ffbd8 jpgraph-2.0.ebuild 2554 +RMD160 8d3dfed9a0819990052d4af58b7d04222e34a481 jpgraph-2.0.ebuild 2554 +SHA256 5343fa86e7373e1345dbb1c4eb27baf3523c862616a1f4642f7ecd7e50f53f70 jpgraph-2.0.ebuild 2554 MD5 c58d07ca1c1235bbad9bccaec96fc062 metadata.xml 157 ------BEGIN PGP SIGNATURE----- -Version: GnuPG v1.4.2 (GNU/Linux) - -iD8DBQFD47gsoFw4q70f3SsRAjiBAJ9cPWESGfvUtYRxwFDAEpqEzhaOAQCfZvGr -M1bPb+Doj286IUn5f6V8QX8= -=GfXJ ------END PGP SIGNATURE----- +RMD160 a98db3a086fae3c09a903dadbc05f60443ec4b1a metadata.xml 157 +SHA256 54f8878ca0228e380abbaa4b529806b5533a6b9b51b3b16c0909e906586a91a1 metadata.xml 157 diff --git a/dev-php5/jpgraph/files/digest-jpgraph-2.0 b/dev-php5/jpgraph/files/digest-jpgraph-2.0 new file mode 100644 index 000000000000..c2fad2249ca0 --- /dev/null +++ b/dev-php5/jpgraph/files/digest-jpgraph-2.0 @@ -0,0 +1,3 @@ +MD5 343c355a5c50cdbae49706cba20083ea jpgraph-2.0.tar.gz 4075519 +RMD160 0868cfcb2a96ecd637e97d2556bda61be4a12e82 jpgraph-2.0.tar.gz 4075519 +SHA256 8a3fba112a5ac72862608e0ab89260f1c6332af199e334bfc58b2f8101faaf44 jpgraph-2.0.tar.gz 4075519 diff --git a/dev-php5/jpgraph/files/digest-jpgraph-2.0_beta b/dev-php5/jpgraph/files/digest-jpgraph-2.0_beta deleted file mode 100644 index 8c0ac1feb349..000000000000 --- a/dev-php5/jpgraph/files/digest-jpgraph-2.0_beta +++ /dev/null @@ -1 +0,0 @@ -MD5 8c314f1b943b9fba130989a2b7ec77f8 jpgraph-2.0beta.tar.gz 3998445 diff --git a/dev-php5/jpgraph/jpgraph-2.0.ebuild b/dev-php5/jpgraph/jpgraph-2.0.ebuild new file mode 100644 index 000000000000..a28df4956ca7 --- /dev/null +++ b/dev-php5/jpgraph/jpgraph-2.0.ebuild @@ -0,0 +1,87 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-php5/jpgraph/jpgraph-2.0.ebuild,v 1.1 2006/02/11 12:15:00 sebastian Exp $ + +inherit php-lib-r1 + +KEYWORDS="~amd64 ~ppc ~sparc ~x86" +DESCRIPTION="Fully OO graph drawing library for PHP." +HOMEPAGE="http://www.aditus.nu/jpgraph/" +LICENSE="QPL-1.0" +SLOT="0" +IUSE="truetype" + +MY_P=${P/_/} +SRC_URI="http://members.chello.se/jpgraph/jpgdownloads/${MY_P}.tar.gz" +S="${WORKDIR}/${MY_P}" + +RDEPEND="${RDEPEND} + truetype? ( media-fonts/corefonts )" + +need_php_by_category + +JPGRAPH_CACHE_DIR="/var/cache/jpgraph" +COREFONTS_DIR="/usr/share/fonts/corefonts" + +pkg_setup() { + has_php + + # we need the GD functionality of PHP + require_gd + + # check to wich user:group the cache dir will go + if has_version "net-www/apache" ; then + HTTPD_USER="apache" + HTTPD_GROUP="apache" + einfo "Configuring cache dir ${JPGRAPH_CACHE_DIR} for Apache." + else + HTTPD_USER="root" + HTTPD_GROUP="root" + ewarn "No Apache webserver detected - ${JPGRAPH_CACHE_DIR} will be" + ewarn "owned by ${HTTPD_USER}:${HTTPD_GROUP} instead." + fi +} + +src_install() { + # some patches to adapt the config to Gentoo + einfo "Patching jpg-config.inc" + + # 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 + + # patch 2: + # make jpgraph use the correct directory for caching + + sed -i "s|.*DEFINE(\"CACHE_DIR\",\"/tmp/jpgraph_cache/\");|DEFINE(\"CACHE_DIR\",\"${JPGRAPH_CACHE_DIR}/\");|" src/jpg-config.inc + + # 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\",\"${COREFONTS_DIR}/\");|" src/jpg-config.inc + fi + + # patch 4: + # disable READ_CACHE in jpgraph + + sed -i "s|^DEFINE(\"READ_CACHE\",true);|DEFINE(\"READ_CACHE\",false);|" src/jpg-config.inc + + # 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 + dohtml -r docs/* + + # setup the cache dir + # cachedir must be world-writable, because PHP/CLI doesn't run + # as the apache user! + einfo "Setting up the cache dir" + keepdir "${JPGRAPH_CACHE_DIR}" + fowners ${HTTPD_USER}:${HTTPD_GROUP} "${JPGRAPH_CACHE_DIR}" + fperms 700 "${JPGRAPH_CACHE_DIR}" +} diff --git a/dev-php5/jpgraph/jpgraph-2.0_beta.ebuild b/dev-php5/jpgraph/jpgraph-2.0_beta.ebuild deleted file mode 100644 index d4de887f326c..000000000000 --- a/dev-php5/jpgraph/jpgraph-2.0_beta.ebuild +++ /dev/null @@ -1,87 +0,0 @@ -# Copyright 1999-2006 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-php5/jpgraph/jpgraph-2.0_beta.ebuild,v 1.5 2006/02/03 20:08:52 nixnut Exp $ - -inherit php-lib-r1 - -KEYWORDS="~amd64 ~ppc ~sparc ~x86" -DESCRIPTION="Fully OO graph drawing library for PHP." -HOMEPAGE="http://www.aditus.nu/jpgraph/" -LICENSE="QPL-1.0" -SLOT="0" -IUSE="truetype" - -MY_P=${P/_/} -SRC_URI="http://members.chello.se/jpgraph/jpgdownloads/${MY_P}.tar.gz" -S="${WORKDIR}/${MY_P}" - -RDEPEND="${RDEPEND} - truetype? ( media-fonts/corefonts )" - -need_php_by_category - -JPGRAPH_CACHE_DIR="/var/cache/jpgraph" -COREFONTS_DIR="/usr/share/fonts/corefonts" - -pkg_setup() { - has_php - - # we need the GD functionality of PHP - require_gd - - # check to wich user:group the cache dir will go - if has_version "net-www/apache" ; then - HTTPD_USER="apache" - HTTPD_GROUP="apache" - einfo "Configuring cache dir ${JPGRAPH_CACHE_DIR} for Apache." - else - HTTPD_USER="root" - HTTPD_GROUP="root" - ewarn "No Apache webserver detected - ${JPGRAPH_CACHE_DIR} will be" - ewarn "owned by ${HTTPD_USER}:${HTTPD_GROUP} instead." - fi -} - -src_install() { - # some patches to adapt the config to Gentoo - einfo "Patching jpg-config.inc" - - # 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 - - # patch 2: - # make jpgraph use the correct directory for caching - - sed -i "s|.*DEFINE(\"CACHE_DIR\",\"/tmp/jpgraph_cache/\");|DEFINE(\"CACHE_DIR\",\"${JPGRAPH_CACHE_DIR}/\");|" src/jpg-config.inc - - # 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\",\"${COREFONTS_DIR}/\");|" src/jpg-config.inc - fi - - # patch 4: - # disable READ_CACHE in jpgraph - - sed -i "s|^DEFINE(\"READ_CACHE\",true);|DEFINE(\"READ_CACHE\",false);|" src/jpg-config.inc - - # 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 - dohtml -r docs/* - - # setup the cache dir - # cachedir must be world-writable, because PHP/CLI doesn't run - # as the apache user! - einfo "Setting up the cache dir" - keepdir "${JPGRAPH_CACHE_DIR}" - fowners ${HTTPD_USER}:${HTTPD_GROUP} "${JPGRAPH_CACHE_DIR}" - fperms 700 "${JPGRAPH_CACHE_DIR}" -} -- cgit v1.2.3-65-gdbad