summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Bergmann <sebastian@gentoo.org>2006-02-20 09:09:24 +0000
committerSebastian Bergmann <sebastian@gentoo.org>2006-02-20 09:09:24 +0000
commitf1a25db0c08d3141a09d7887e69c61db11edea34 (patch)
tree552e7983ff470bfe7f06f1f055c8fd50f58b4092 /dev-php5
parentBug #122640 --as-needed fixes patch from Ben Skeggs <darktama@iinet.net.au>. (diff)
downloadhistorical-f1a25db0c08d3141a09d7887e69c61db11edea34.tar.gz
historical-f1a25db0c08d3141a09d7887e69c61db11edea34.tar.bz2
historical-f1a25db0c08d3141a09d7887e69c61db11edea34.zip
Version bump.
Package-Manager: portage-2.1_pre4-r1
Diffstat (limited to 'dev-php5')
-rw-r--r--dev-php5/jpgraph/ChangeLog8
-rw-r--r--dev-php5/jpgraph/Manifest20
-rw-r--r--dev-php5/jpgraph/files/digest-jpgraph-2.1.13
-rw-r--r--dev-php5/jpgraph/jpgraph-2.1.1.ebuild87
4 files changed, 110 insertions, 8 deletions
diff --git a/dev-php5/jpgraph/ChangeLog b/dev-php5/jpgraph/ChangeLog
index 27a2680f9d04..cc547a2cb1bc 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.6 2006/02/11 12:15:00 sebastian Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-php5/jpgraph/ChangeLog,v 1.7 2006/02/20 09:09:24 sebastian Exp $
+
+*jpgraph-2.1.1 (20 Feb 2006)
+
+ 20 Feb 2006; Sebastian Bergmann <sebastian@gentoo.org>
+ +jpgraph-2.1.1.ebuild:
+ Version bump.
*jpgraph-2.0 (11 Feb 2006)
diff --git a/dev-php5/jpgraph/Manifest b/dev-php5/jpgraph/Manifest
index e60a27919a69..0818a121b04f 100644
--- a/dev-php5/jpgraph/Manifest
+++ b/dev-php5/jpgraph/Manifest
@@ -1,22 +1,28 @@
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
-MD5 0d306d6a44df6add6ce63951d2bb87cf ChangeLog 908
-RMD160 7cd195a5f9a3a0382baa6e8c9a23b4f69900c026 ChangeLog 908
-SHA256 7765a7741cb61e68959cbc8919afaee0e47bceb3443a43d718f2f0afd5370fac ChangeLog 908
+MD5 5aacc1f064e97bfaade589ee7e00b71c ChangeLog 1037
+RMD160 75a78fc9427967b6327dead075a192eb4e466555 ChangeLog 1037
+SHA256 5ece6cfed7e02d4abb9bb7fdc28c51291c0dbef669053fe0b842d0e838930794 ChangeLog 1037
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 612644086459eb2943c4fecc9e22f99c files/digest-jpgraph-2.1.1 244
+RMD160 10ad6918527714d0f223a092f334c1511a12207b files/digest-jpgraph-2.1.1 244
+SHA256 b652c7639d3d3cfc4febe0c0c7d8cc2ec1f54fe7e3aaf2900a5e9310f10694a6 files/digest-jpgraph-2.1.1 244
MD5 3c35b9f163bc40c597852c7e142dd138 jpgraph-2.0.ebuild 2552
RMD160 798195815976b28227750736e0506b4157f507e9 jpgraph-2.0.ebuild 2552
SHA256 6b845c62d191b5a245528799653de8ce8da3f92decf90c7f814d27ba2707a302 jpgraph-2.0.ebuild 2552
+MD5 deb02db0700c851715568acd8edd7c07 jpgraph-2.1.1.ebuild 2574
+RMD160 ebc814f1f455625294998b429a929471d637e0c2 jpgraph-2.1.1.ebuild 2574
+SHA256 59b53f23dee3eb9d65ed0ef98af684dfc7587e468d25810c13d502af629937e8 jpgraph-2.1.1.ebuild 2574
MD5 c58d07ca1c1235bbad9bccaec96fc062 metadata.xml 157
RMD160 a98db3a086fae3c09a903dadbc05f60443ec4b1a metadata.xml 157
SHA256 54f8878ca0228e380abbaa4b529806b5533a6b9b51b3b16c0909e906586a91a1 metadata.xml 157
-----BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.4.2 (GNU/Linux)
+Version: GnuPG v1.4.2.1 (GNU/Linux)
-iD8DBQFD7dVUaGfFFLhbXWkRAtw4AKCEc0ojFvhRE9ri28LS7agkO3VnxgCfchrI
-syl9tKtVBesDhoAIig5WxqA=
-=kryy
+iD8DBQFD+Yd4aGfFFLhbXWkRAltTAJ9h1+BpJEhJJZtfAGrS6vAPyCcvogCdGRnx
+a/QUd8ozyaBm932XVlh1Q7Q=
+=Bw/O
-----END PGP SIGNATURE-----
diff --git a/dev-php5/jpgraph/files/digest-jpgraph-2.1.1 b/dev-php5/jpgraph/files/digest-jpgraph-2.1.1
new file mode 100644
index 000000000000..aeb02e2397c5
--- /dev/null
+++ b/dev-php5/jpgraph/files/digest-jpgraph-2.1.1
@@ -0,0 +1,3 @@
+MD5 3adf3c51210044ee6f34ef28fb2f09ca jpgraph-2.1.1.tar.gz 4458311
+RMD160 3373edf444f11958e02716d74d9481a82f93d1a2 jpgraph-2.1.1.tar.gz 4458311
+SHA256 87f3a70a752b1a00100dc6cd83fd0a0749370bb516582f2978c6ac5feb5a0055 jpgraph-2.1.1.tar.gz 4458311
diff --git a/dev-php5/jpgraph/jpgraph-2.1.1.ebuild b/dev-php5/jpgraph/jpgraph-2.1.1.ebuild
new file mode 100644
index 000000000000..401d901b745c
--- /dev/null
+++ b/dev-php5/jpgraph/jpgraph-2.1.1.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.1.ebuild,v 1.1 2006/02/20 09:09:24 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.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}"
+}