summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Bergmann <sebastian@gentoo.org>2005-02-17 07:33:49 +0000
committerSebastian Bergmann <sebastian@gentoo.org>2005-02-17 07:33:49 +0000
commit60d8847356199fb83f2d443c8f13652ff000c51b (patch)
treececf3e31ad09e5762c31f84d7320edb3341a0a7a /dev-php
parentMore 2.8.3 updates (diff)
downloadhistorical-60d8847356199fb83f2d443c8f13652ff000c51b.tar.gz
historical-60d8847356199fb83f2d443c8f13652ff000c51b.tar.bz2
historical-60d8847356199fb83f2d443c8f13652ff000c51b.zip
Version bump, closes bug 54591.
Package-Manager: portage-2.0.51-r15
Diffstat (limited to 'dev-php')
-rw-r--r--dev-php/jpgraph/ChangeLog8
-rw-r--r--dev-php/jpgraph/Manifest14
-rw-r--r--dev-php/jpgraph/files/digest-jpgraph-1.171
-rw-r--r--dev-php/jpgraph/jpgraph-1.17.ebuild76
4 files changed, 97 insertions, 2 deletions
diff --git a/dev-php/jpgraph/ChangeLog b/dev-php/jpgraph/ChangeLog
index cabb75c3f2be..79a9ee96e3bf 100644
--- a/dev-php/jpgraph/ChangeLog
+++ b/dev-php/jpgraph/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-php/jpgraph
# Copyright 2000-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-php/jpgraph/ChangeLog,v 1.12 2005/01/12 22:29:03 kugelfang Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-php/jpgraph/ChangeLog,v 1.13 2005/02/17 07:33:49 sebastian Exp $
+
+*jpgraph-1.17 (17 Feb 2005)
+
+ 17 Feb 2005; Sebastian Bergmann <sebastian@gentoo.org>
+ +jpgraph-1.17.ebuild:
+ Version bump, closes bug 54591.
12 Jan 2005; Danny van Dyk <kugelfang@gentoo.org> jpgraph-1.12.2.ebuild:
Marked ~amd64.
diff --git a/dev-php/jpgraph/Manifest b/dev-php/jpgraph/Manifest
index c5e52c5fcc5b..a07e2430a852 100644
--- a/dev-php/jpgraph/Manifest
+++ b/dev-php/jpgraph/Manifest
@@ -1,4 +1,16 @@
-MD5 e66d640a72ae0006484763986ea01c52 ChangeLog 1312
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+MD5 161d77434ebad8cbac24c1d97b0a17a8 ChangeLog 1457
MD5 f1c8a0209c14ab85c01050770da718f2 jpgraph-1.12.2.ebuild 2160
MD5 34b376f52ca199fffb4e52b83169574a metadata.xml 156
+MD5 b3cd75e3b1816bc5084a53127981ceb8 jpgraph-1.17.ebuild 2158
MD5 4f6fb9ae9a7dd1daf9b37c4b458bf0d3 files/digest-jpgraph-1.12.2 67
+MD5 b5aebc713916d28b8770109344a4ffa6 files/digest-jpgraph-1.17 65
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v1.4.0 (GNU/Linux)
+
+iD8DBQFCFElJaGfFFLhbXWkRAhSyAJ9HRgZUkj+zfKAcZhxkD5qiM5rRYQCfZWW2
+Qd4VsvTuSIi/wG6Na8EMymU=
+=x31T
+-----END PGP SIGNATURE-----
diff --git a/dev-php/jpgraph/files/digest-jpgraph-1.17 b/dev-php/jpgraph/files/digest-jpgraph-1.17
new file mode 100644
index 000000000000..79215259c01c
--- /dev/null
+++ b/dev-php/jpgraph/files/digest-jpgraph-1.17
@@ -0,0 +1 @@
+MD5 5ac37230d3ec4711c20fa3343485d493 jpgraph-1.17.tar.gz 3977512
diff --git a/dev-php/jpgraph/jpgraph-1.17.ebuild b/dev-php/jpgraph/jpgraph-1.17.ebuild
new file mode 100644
index 000000000000..f621ac038c7c
--- /dev/null
+++ b/dev-php/jpgraph/jpgraph-1.17.ebuild
@@ -0,0 +1,76 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-php/jpgraph/jpgraph-1.17.ebuild,v 1.1 2005/02/17 07:33:49 sebastian Exp $
+
+inherit php-lib
+
+DESCRIPTION="fully OO graph drawing library for PHP"
+HOMEPAGE="http://www.aditus.nu/jpgraph/"
+SRC_URI="http://www.aditus.nu/jpgraph/downloads/${P}.tar.gz"
+
+LICENSE="QPL-1.0"
+SLOT="0"
+KEYWORDS="~x86 ~ppc ~sparc ~alpha ~amd64"
+IUSE=""
+
+DEPEND=""
+RDEPEND="virtual/php
+ >=media-libs/gd-1.8"
+
+JPGRAPH_CACHE_DIR="/var/cache/jpgraph"
+
+HTTPD_USER=root
+HTTPD_GROUP=root
+
+has_version "net-www/apache" && USE_APACHE=1 && inherit webapp-apache
+[ -n "${USE_APACHE}" ] && webapp-detect || NO_WEBSERVER=1
+
+pkg_setup() {
+ if [ "${NO_WEBSERVER}" = "1" ]; then
+ ewarn "No webserver detected - ${JPGRAPH_CACHE_DIR} will be"
+ ewarn "owned by ${HTTPD_USER} instead"
+ else
+ einfo "Configuring cache dir ${JPGRAPH_CACHE_DIR} for ${WEBAPP_SERVER}"
+ fi
+}
+
+src_install() {
+ einfo "Patching jpgraph.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/jpgraph.php
+
+ # patch 2:
+ # make jpgraph use the correct directory for caching
+
+ sed -i "s|/tmp/jpgraph_cache/|${JPGRAPH_CACHE_DIR}/|g;" src/jpgraph.php
+
+ # patch 3:
+ # switch off the directory cache
+
+ sed -i 's|^DEFINE("USE_CACHE",false);|if (!defined("USE_CACHE")) DEFINE("USE_CACHE", false);|' src/jpgraph.php
+
+ # patch 4:
+ # don't read the READ_CACHE if we're not creating any images in the
+ # cache in the first place (doh)
+
+ sed -i 's|DEFINE("READ_CACHE",true);|DEFINE("READ_CACHE", USE_CACHE);|' src/jpgraph.php
+
+ # install php files
+ einfo "Building list of files to install"
+ php-lib_src_install src `cd src ; find . -type f -print`
+
+ # install documentation
+ dodoc README src/Changelog
+ dohtml -r docs/*
+
+ # setup the cache dir
+ # cachedir must be world-writable, because PHP/CLI doesn't run
+ # as the apache user!
+
+ keepdir "${JPGRAPH_CACHE_DIR}"
+ fowners ${HTTPD_USER}:${HTTPD_GROUP} "${JPGRAPH_CACHE_DIR}"
+ fperms 700 "${JPGRAPH_CACHE_DIR}"
+}