summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Ullmann <jokey@gentoo.org>2007-08-31 09:38:43 +0000
committerMarkus Ullmann <jokey@gentoo.org>2007-08-31 09:38:43 +0000
commit9ec852848e7209a5f9f214eb0c459ac3934eb0b7 (patch)
tree4573e72e507f2457529686da05e16debe5154ae3 /dev-php5
parentFixed bug #133504 (maildir account file-chooser descend into directories) rep... (diff)
downloadhistorical-9ec852848e7209a5f9f214eb0c459ac3934eb0b7.tar.gz
historical-9ec852848e7209a5f9f214eb0c459ac3934eb0b7.tar.bz2
historical-9ec852848e7209a5f9f214eb0c459ac3934eb0b7.zip
Port from project overlay
Package-Manager: portage-2.1.3.7
Diffstat (limited to 'dev-php5')
-rw-r--r--dev-php5/jpgraph/ChangeLog13
-rw-r--r--dev-php5/jpgraph/Manifest24
-rw-r--r--dev-php5/jpgraph/files/digest-jpgraph-2.23
-rw-r--r--dev-php5/jpgraph/jpgraph-2.2.ebuild90
4 files changed, 121 insertions, 9 deletions
diff --git a/dev-php5/jpgraph/ChangeLog b/dev-php5/jpgraph/ChangeLog
index 039b06d901d3..e2db30f6ddaf 100644
--- a/dev-php5/jpgraph/ChangeLog
+++ b/dev-php5/jpgraph/ChangeLog
@@ -1,6 +1,17 @@
# ChangeLog for dev-php5/jpgraph
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-php5/jpgraph/ChangeLog,v 1.19 2007/07/29 16:54:25 phreak Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-php5/jpgraph/ChangeLog,v 1.20 2007/08/31 09:38:43 jokey Exp $
+
+*jpgraph-2.2 (31 Aug 2007)
+
+ 31 Aug 2007; Markus Ullmann <jokey@gentoo.org> +jpgraph-2.2.ebuild:
+ Port from project overlay
+
+ 30 Aug 2007; Jakub Moc <jakub@gentoo.org> jpgraph-2.2.ebuild:
+ Make HTTPD_{USER,GROUP} configurable.
+
+ 30 Aug 2007; Jakub Moc <jakub@gentoo.org> +jpgraph-2.2.ebuild:
+ Version bump
29 Jul 2007; Christian Heim <phreak@gentoo.org> jpgraph-2.1.3.ebuild,
jpgraph-2.1.4.ebuild:
diff --git a/dev-php5/jpgraph/Manifest b/dev-php5/jpgraph/Manifest
index 7ac4d6443652..73fb46079fdd 100644
--- a/dev-php5/jpgraph/Manifest
+++ b/dev-php5/jpgraph/Manifest
@@ -3,6 +3,7 @@ Hash: SHA1
DIST jpgraph-2.1.3.tar.gz 4472095 RMD160 ba549c05894138b65a42bc74b2876aa6906ed946 SHA1 b1b08dab1627cb136a41d25dbc8b74250dd917ec SHA256 712646c74defa44b4cfca150857bda15df051d75b0971b9e54e38bada39f649d
DIST jpgraph-2.1.4.tar.gz 4480770 RMD160 ebc554950310083c35e347c9fb746b130181bf8b SHA1 3e9b0cbf9cb9099222b4c56e5fe2549ad3aed34b SHA256 26bbed9eb07a411d9388b6be5813054b21214f279178dba28ae4337d43707da9
+DIST jpgraph-2.2.tar.gz 4604898 RMD160 d83e84dcf80ac037666ec4e2d84e8c8ade7abcec SHA1 5130098441bb8bd0034767cd3a655fd7f533c8f1 SHA256 1b1de456bf7c01a94e32e6dd56cecb9570b294da1d55f410d5b48e7e147f566f
EBUILD jpgraph-2.1.3.ebuild 2426 RMD160 e3d6d0e3fd2e204ec4b75206a4c248c7bd860b32 SHA1 b8883cdee2524ba13b259d24a1e52f62a015c78d SHA256 43aa0bb45058d4b6f2ad5e692275b8e1915031d0f84637114729d7a3feef9dd5
MD5 0019c4584f2b46ec03ff68b275af1ce9 jpgraph-2.1.3.ebuild 2426
RMD160 e3d6d0e3fd2e204ec4b75206a4c248c7bd860b32 jpgraph-2.1.3.ebuild 2426
@@ -11,10 +12,14 @@ EBUILD jpgraph-2.1.4.ebuild 2432 RMD160 263df2e79c34d4ebd81f7c323afa50514e39369d
MD5 5cbeeca0ec6866584cd30f6b6d05ea22 jpgraph-2.1.4.ebuild 2432
RMD160 263df2e79c34d4ebd81f7c323afa50514e39369d jpgraph-2.1.4.ebuild 2432
SHA256 93b0066656de74901a67bb67a8310842b69463da77944fd1f9cd5a17153fa073 jpgraph-2.1.4.ebuild 2432
-MISC ChangeLog 2546 RMD160 eb744b64c73dc7dbc3eb8715fd0dcd58d6439260 SHA1 e0f49b53e58004fd325dcafc1dab6155cc5b0a86 SHA256 eb9da6b828fe2ad41e91421dfeaf8cec27861923aa4ca656ee18f62631225527
-MD5 f580a4e511a9e4cb5137e4da067ef3dd ChangeLog 2546
-RMD160 eb744b64c73dc7dbc3eb8715fd0dcd58d6439260 ChangeLog 2546
-SHA256 eb9da6b828fe2ad41e91421dfeaf8cec27861923aa4ca656ee18f62631225527 ChangeLog 2546
+EBUILD jpgraph-2.2.ebuild 2783 RMD160 4d5e9514038c50b2851a42cf049ef477bb6cccbe SHA1 1544cb80a53fba8805fe27834aee8ad8a34d1cdc SHA256 0a8786d96f3d78da790bdfa0dc12a0ed5cf4904cb49b266b72b1b3d83c9d8d10
+MD5 c83d73c3e934b71a4fed16c7fb07e1ca jpgraph-2.2.ebuild 2783
+RMD160 4d5e9514038c50b2851a42cf049ef477bb6cccbe jpgraph-2.2.ebuild 2783
+SHA256 0a8786d96f3d78da790bdfa0dc12a0ed5cf4904cb49b266b72b1b3d83c9d8d10 jpgraph-2.2.ebuild 2783
+MISC ChangeLog 2858 RMD160 eb45f737a85b89d021e422ce73bed48c912e19c7 SHA1 ad5353adb52ca57413644937c90502795d53832b SHA256 567d162c1dcd43b368c439dc03ddd0d8cbd0960152e327f747546452c07db05e
+MD5 4879990ba0d7d16c5b3db4220ec8c642 ChangeLog 2858
+RMD160 eb45f737a85b89d021e422ce73bed48c912e19c7 ChangeLog 2858
+SHA256 567d162c1dcd43b368c439dc03ddd0d8cbd0960152e327f747546452c07db05e ChangeLog 2858
MISC metadata.xml 157 RMD160 a98db3a086fae3c09a903dadbc05f60443ec4b1a SHA1 ddaa23cc35eb917bf8962b652442bebb1ce0f440 SHA256 54f8878ca0228e380abbaa4b529806b5533a6b9b51b3b16c0909e906586a91a1
MD5 c58d07ca1c1235bbad9bccaec96fc062 metadata.xml 157
RMD160 a98db3a086fae3c09a903dadbc05f60443ec4b1a metadata.xml 157
@@ -25,10 +30,13 @@ SHA256 635de3bb5c40408674374be84d7b275090d8be51e66913c9851b128bb44e02c8 files/di
MD5 5ab6c3e333d214f3739da7cfc1ee050e files/digest-jpgraph-2.1.4 244
RMD160 dc90175cf20ed487a1f8bdbbf4133765a22588a9 files/digest-jpgraph-2.1.4 244
SHA256 217f089e9e3a0bf462033efbeb1da1135c24218d93f86221593d02bdaef8d74c files/digest-jpgraph-2.1.4 244
+MD5 11ba4fbce76b289fd2a7bc92fdcb53e5 files/digest-jpgraph-2.2 238
+RMD160 c7215e99f4c3eb0bea407df9de681647918e8e46 files/digest-jpgraph-2.2 238
+SHA256 9f7aebb447a74e42938ccc3607c963359bbdbabe77eb14691c3ac9500e878c2a files/digest-jpgraph-2.2 238
-----BEGIN PGP SIGNATURE-----
-Version: GnuPG v2.0.5 (GNU/Linux)
+Version: GnuPG v2.0.6 (GNU/Linux)
-iD8DBQFGrMZNyuNVb5qfaOYRAiE7AKCHLyPl3u2s4+S14pwAvS9UDgd3TQCdFkEn
-N63DqmBb+GP5/0iHfLZMwck=
-=MJHy
+iD8DBQFG1+Gtz974XjDVpbkRAsB/AKCvApOxqgSIyoOuzuZ26uaTrl/I4ACguqFM
+zjnnm99rp7EIEqjemtCNyuw=
+=hQru
-----END PGP SIGNATURE-----
diff --git a/dev-php5/jpgraph/files/digest-jpgraph-2.2 b/dev-php5/jpgraph/files/digest-jpgraph-2.2
new file mode 100644
index 000000000000..5ca3db219760
--- /dev/null
+++ b/dev-php5/jpgraph/files/digest-jpgraph-2.2
@@ -0,0 +1,3 @@
+MD5 90e1702e41acffd9c46b1977b2bc5739 jpgraph-2.2.tar.gz 4604898
+RMD160 d83e84dcf80ac037666ec4e2d84e8c8ade7abcec jpgraph-2.2.tar.gz 4604898
+SHA256 1b1de456bf7c01a94e32e6dd56cecb9570b294da1d55f410d5b48e7e147f566f jpgraph-2.2.tar.gz 4604898
diff --git a/dev-php5/jpgraph/jpgraph-2.2.ebuild b/dev-php5/jpgraph/jpgraph-2.2.ebuild
new file mode 100644
index 000000000000..192e3d1deb9c
--- /dev/null
+++ b/dev-php5/jpgraph/jpgraph-2.2.ebuild
@@ -0,0 +1,90 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-php5/jpgraph/jpgraph-2.2.ebuild,v 1.1 2007/08/31 09:38:43 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/jpgraph2/${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-php5/"
+
+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 in 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 in 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 in 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 in 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}"
+}