diff options
author | Sebastian Bergmann <sebastian@gentoo.org> | 2006-09-25 07:59:15 +0000 |
---|---|---|
committer | Sebastian Bergmann <sebastian@gentoo.org> | 2006-09-25 07:59:15 +0000 |
commit | 05c9f74a95cf2fa9926b98fd47c20031aa67c418 (patch) | |
tree | f32f424948dcf75170e918037c9c1355e4c4a948 /dev-php5 | |
parent | Version bump. (diff) | |
download | gentoo-2-05c9f74a95cf2fa9926b98fd47c20031aa67c418.tar.gz gentoo-2-05c9f74a95cf2fa9926b98fd47c20031aa67c418.tar.bz2 gentoo-2-05c9f74a95cf2fa9926b98fd47c20031aa67c418.zip |
Version bump.
(Portage version: 2.1.2_pre1-r1)
Diffstat (limited to 'dev-php5')
-rw-r--r-- | dev-php5/jpgraph/ChangeLog | 8 | ||||
-rw-r--r-- | dev-php5/jpgraph/files/digest-jpgraph-2.1.3 | 3 | ||||
-rw-r--r-- | dev-php5/jpgraph/jpgraph-2.1.3.ebuild | 87 |
3 files changed, 97 insertions, 1 deletions
diff --git a/dev-php5/jpgraph/ChangeLog b/dev-php5/jpgraph/ChangeLog index 9a01a61f6bd0..7227427dff4d 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.10 2006/08/07 14:06:00 sebastian Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-php5/jpgraph/ChangeLog,v 1.11 2006/09/25 07:59:15 sebastian Exp $ + +*jpgraph-2.1.3 (25 Sep 2006) + + 25 Sep 2006; Sebastian Bergmann <sebastian@gentoo.org> + -jpgraph-2.1.1.ebuild, -jpgraph-2.1.2.ebuild, +jpgraph-2.1.3.ebuild: + Version bump. *jpgraph-2.1.2 (07 Aug 2006) diff --git a/dev-php5/jpgraph/files/digest-jpgraph-2.1.3 b/dev-php5/jpgraph/files/digest-jpgraph-2.1.3 new file mode 100644 index 000000000000..9398351d9157 --- /dev/null +++ b/dev-php5/jpgraph/files/digest-jpgraph-2.1.3 @@ -0,0 +1,3 @@ +MD5 7ec3ffeccbd8f90693ec1e63de9f38c5 jpgraph-2.1.3.tar.gz 4472095 +RMD160 ba549c05894138b65a42bc74b2876aa6906ed946 jpgraph-2.1.3.tar.gz 4472095 +SHA256 712646c74defa44b4cfca150857bda15df051d75b0971b9e54e38bada39f649d jpgraph-2.1.3.tar.gz 4472095 diff --git a/dev-php5/jpgraph/jpgraph-2.1.3.ebuild b/dev-php5/jpgraph/jpgraph-2.1.3.ebuild new file mode 100644 index 000000000000..84b7343931c0 --- /dev/null +++ b/dev-php5/jpgraph/jpgraph-2.1.3.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.1.3.ebuild,v 1.1 2006/09/25 07:59:15 sebastian Exp $ + +inherit php-lib-r1 + +KEYWORDS="~alpha ~amd64 ~hppa ~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.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 + + # 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.php + + # 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.php + fi + + # patch 4: + # disable READ_CACHE in jpgraph + + sed -i "s|^DEFINE(\"READ_CACHE\",true);|DEFINE(\"READ_CACHE\",false);|" src/jpg-config.inc.php + + # 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}" +} |