diff options
author | Ole Markus With <olemarkus@gentoo.org> | 2011-04-09 19:21:37 +0000 |
---|---|---|
committer | Ole Markus With <olemarkus@gentoo.org> | 2011-04-09 19:21:37 +0000 |
commit | d66450fe097c800804da3b08e75b3926fa4d6067 (patch) | |
tree | 1bb642c8f7335b42fbc9976d41cff7d872d0e56e /dev-php/jpgraph | |
parent | Version bump (diff) | |
download | gentoo-2-d66450fe097c800804da3b08e75b3926fa4d6067.tar.gz gentoo-2-d66450fe097c800804da3b08e75b3926fa4d6067.tar.bz2 gentoo-2-d66450fe097c800804da3b08e75b3926fa4d6067.zip |
Moved from dev-php5/jpgraph
(Portage version: 2.1.9.42/cvs/Linux i686, RepoMan options: --force)
Diffstat (limited to 'dev-php/jpgraph')
-rw-r--r-- | dev-php/jpgraph/ChangeLog | 139 | ||||
-rw-r--r-- | dev-php/jpgraph/jpgraph-2.3.ebuild | 90 | ||||
-rw-r--r-- | dev-php/jpgraph/jpgraph-3.0.7.ebuild | 91 | ||||
-rw-r--r-- | dev-php/jpgraph/metadata.xml | 5 |
4 files changed, 325 insertions, 0 deletions
diff --git a/dev-php/jpgraph/ChangeLog b/dev-php/jpgraph/ChangeLog new file mode 100644 index 000000000000..22fa2fdd61b3 --- /dev/null +++ b/dev-php/jpgraph/ChangeLog @@ -0,0 +1,139 @@ +# ChangeLog for dev-php5/jpgraph +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-php/jpgraph/ChangeLog,v 1.21 2011/04/09 19:21:37 olemarkus Exp $ + + 21 Apr 2010; <mabi@gentoo.org> -jpgraph-2.1.3.ebuild, -jpgraph-2.2.ebuild: + remove old versions + +*jpgraph-3.0.7 (21 Apr 2010) + + 21 Apr 2010; <mabi@gentoo.org> +jpgraph-3.0.7.ebuild: + bump (bug #299054), provided by Ole Markus With + + 08 Mar 2008; <pva@gentoo.org> jpgraph-2.3.ebuild: + amd64 stable, bug #208284. + + 01 Feb 2008; Raúl Porcel <armin76@gentoo.org> jpgraph-2.3.ebuild: + alpha/sparc/x86 stable wrt #208284 + + 31 Jan 2008; Jeroen Roovers <jer@gentoo.org> jpgraph-2.3.ebuild: + Stable for HPPA (bug #208284). + + 31 Jan 2008; nixnut <nixnut@gentoo.org> jpgraph-2.3.ebuild: + Stable on ppc wrt bug 208284 + +*jpgraph-2.3 (24 Dec 2007) + + 24 Dec 2007; Raúl Porcel <armin76@gentoo.org> +jpgraph-2.3.ebuild: + Version bump from the php-overlay + + 21 Dec 2007; Jakub Moc <jakub@gentoo.org> +jpgraph-2.3.ebuild: + Version bump + + 14 Nov 2007; Jeroen Roovers <jer@gentoo.org> jpgraph-2.2.ebuild: + Stable for HPPA (bug #198564). + + 12 Nov 2007; Raúl Porcel <armin76@gentoo.org> jpgraph-2.2.ebuild: + alpha/sparc stable wrt #198564 + + 11 Nov 2007; Samuli Suominen <drac@gentoo.org> jpgraph-2.2.ebuild: + amd64 stable wrt #198564 + + 11 Nov 2007; Dawid Węgliński <cla@gentoo.org> jpgraph-2.2.ebuild: + Stable on x86 (bug #198564) + + 10 Nov 2007; nixnut <nixnut@gentoo.org> jpgraph-2.2.ebuild: + Stable on ppc wrt bug 198564 + + 06 Sep 2007; Markus Ullmann <jokey@gentoo.org> -jpgraph-2.1.4.ebuild: + Cleanup + +*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: + Fixing the DEPEND/RDEPEND for the move of net-www/apache to + www-servers/apache (#78622). + +*jpgraph-2.1.4 (08 Mar 2007) + + 08 Mar 2007; Luca Longinotti <chtekk@gentoo.org> -jpgraph-2.0.ebuild, + jpgraph-2.1.3.ebuild, +jpgraph-2.1.4.ebuild: + Version bump, cleanup. + + 06 Mar 2007; Jose Luis Rivero <yoswink@gentoo.org> jpgraph-2.1.3.ebuild: + Stable on alpha wrt bug #143376 + + 10 Feb 2007; nixnut <nixnut@gentoo.org> jpgraph-2.1.3.ebuild: + Stable on ppc wrt bug 143376 + + 10 Feb 2007; Steve Dibb <beandog@gentoo.org> jpgraph-2.1.3.ebuild: + amd64 stable, bug 143376 + + 08 Feb 2007; Christian Faulhammer <opfer@gentoo.org> jpgraph-2.1.3.ebuild: + stable x86; bug #143376 + + 06 Feb 2007; Gustavo Zacarias <gustavoz@gentoo.org> jpgraph-2.1.3.ebuild: + Stable on sparc wrt #143376 + + 24 Jan 2007; Jeroen Roovers <jer@gentoo.org> jpgraph-2.1.3.ebuild: + Stable for HPPA (bug #143378). + +*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) + + 07 Aug 2006; Sebastian Bergmann <sebastian@gentoo.org> + +jpgraph-2.1.2.ebuild: + Version bump, closes bug #143074. + + 29 Jun 2006; Guy Martin <gmsoft@gentoo.org> jpgraph-2.1.1.ebuild: + Added ~hppa to KEYWORDS. + + 21 Apr 2006; Thomas Cort <tcort@gentoo.org> jpgraph-2.1.1.ebuild: + Added ~alpha keyword wrt Bug #121023. + +*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) + + 11 Feb 2006; Sebastian Bergmann <sebastian@gentoo.org> + -jpgraph-2.0_beta.ebuild, +jpgraph-2.0.ebuild: + Version bump. + + 03 Feb 2006; <nixnut@gentoo.org> jpgraph-2.0_beta.ebuild: + Added ~ppc keyword. bug 121023 + + 01 Feb 2006; Gustavo Zacarias <gustavoz@gentoo.org> + jpgraph-2.0_beta.ebuild: + Keyworded ~sparc wrt #121023 + + 26 Nov 2005; Luca Longinotti <chtekk@gentoo.org> jpgraph-2.0_beta.ebuild: + Sync with PHP overlay. + + 24 Sep 2005; Marcus D. Hanwell <cryos@gentoo.org> jpgraph-2.0_beta.ebuild: + Marked ~amd64. + +*jpgraph-2.0_beta (18 Sep 2005) + + 18 Sep 2005; Benedikt Boehm <hollow@gentoo.org> +metadata.xml, + +jpgraph-2.0_beta.ebuild: + initial version + diff --git a/dev-php/jpgraph/jpgraph-2.3.ebuild b/dev-php/jpgraph/jpgraph-2.3.ebuild new file mode 100644 index 000000000000..dd130a1ee03f --- /dev/null +++ b/dev-php/jpgraph/jpgraph-2.3.ebuild @@ -0,0 +1,90 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-php/jpgraph/jpgraph-2.3.ebuild,v 1.1 2011/04/09 19:21:37 olemarkus 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 + 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}" +} diff --git a/dev-php/jpgraph/jpgraph-3.0.7.ebuild b/dev-php/jpgraph/jpgraph-3.0.7.ebuild new file mode 100644 index 000000000000..c0822492255b --- /dev/null +++ b/dev-php/jpgraph/jpgraph-3.0.7.ebuild @@ -0,0 +1,91 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-php/jpgraph/jpgraph-3.0.7.ebuild,v 1.1 2011/04/09 19:21:37 olemarkus Exp $ + +EAPI="2" + +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.bz2" +LICENSE="QPL-1.0" +SLOT="0" +IUSE="truetype" + +DEPEND="" +RDEPEND="truetype? ( media-fonts/corefonts ) + dev-lang/php[gd] + " + +need_php_by_category + +[[ -z "${JPGRAPH_CACHEDIR}" ]] && JPGRAPH_CACHEDIR="/var/cache/jpgraph-php5/" + +pkg_setup() { + has_php + + # check to which 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','www');|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 + insinto /usr/share/doc/${CATEGORY}/${PF} + doins -r docportal/* + + # setup the cache dir + einfo "Setting up the cache dir" + keepdir "${JPGRAPH_CACHEDIR}" + fowners ${HTTPD_USER}:${HTTPD_GROUP} "${JPGRAPH_CACHEDIR}" + fperms 750 "${JPGRAPH_CACHEDIR}" +} diff --git a/dev-php/jpgraph/metadata.xml b/dev-php/jpgraph/metadata.xml new file mode 100644 index 000000000000..fd3dbe39fa64 --- /dev/null +++ b/dev-php/jpgraph/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>php</herd> +</pkgmetadata> |