Portage is a package management system used by Gentoo Linux
# ChangeLog for dev-php5/jpgraph
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/dev-php5/jpgraph/ChangeLog,v 1.33 2010/04/21 22:50:31 mabi Exp $
21 Apr 2010;
remove old versions
*jpgraph-3.0.7 (21 Apr 2010)
21 Apr 2010;
bump (bug #299054), provided by Ole Markus With
08 Mar 2008;
amd64 stable, bug #208284.
01 Feb 2008; Raúl Porcel
alpha/sparc/x86 stable wrt #208284
31 Jan 2008; Jeroen Roovers
Stable for HPPA (bug #208284).
31 Jan 2008; nixnut
Stable on ppc wrt bug 208284
*jpgraph-2.3 (24 Dec 2007)
24 Dec 2007; Raúl Porcel
Version bump from the php-overlay
21 Dec 2007; Jakub Moc
Version bump
14 Nov 2007; Jeroen Roovers
Stable for HPPA (bug #198564).
12 Nov 2007; Raúl Porcel
alpha/sparc stable wrt #198564
11 Nov 2007; Samuli Suominen
amd64 stable wrt #198564
11 Nov 2007; Dawid Węgliński
Stable on x86 (bug #198564)
10 Nov 2007; nixnut
Stable on ppc wrt bug 198564
06 Sep 2007; Markus Ullmann
Cleanup
*jpgraph-2.2 (31 Aug 2007)
31 Aug 2007; Markus Ullmann
Port from project overlay
30 Aug 2007; Jakub Moc
Make HTTPD_{USER,GROUP} configurable.
30 Aug 2007; Jakub Moc
Version bump
29 Jul 2007; Christian Heim
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
jpgraph-2.1.3.ebuild, +jpgraph-2.1.4.ebuild:
Version bump, cleanup.
06 Mar 2007; Jose Luis Rivero
Stable on alpha wrt bug #143376
10 Feb 2007; nixnut
Stable on ppc wrt bug 143376
10 Feb 2007; Steve Dibb
amd64 stable, bug 143376
08 Feb 2007; Christian Faulhammer
stable x86; bug #143376
06 Feb 2007; Gustavo Zacarias
Stable on sparc wrt #143376
24 Jan 2007; Jeroen Roovers
Stable for HPPA (bug #143378).
*jpgraph-2.1.3 (25 Sep 2006)
25 Sep 2006; Sebastian Bergmann
-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
+jpgraph-2.1.2.ebuild:
Version bump, closes bug #143074.
29 Jun 2006; Guy Martin
Added ~hppa to KEYWORDS.
21 Apr 2006; Thomas Cort
Added ~alpha keyword wrt Bug #121023.
*jpgraph-2.1.1 (20 Feb 2006)
20 Feb 2006; Sebastian Bergmann
+jpgraph-2.1.1.ebuild:
Version bump.
*jpgraph-2.0 (11 Feb 2006)
11 Feb 2006; Sebastian Bergmann
-jpgraph-2.0_beta.ebuild, +jpgraph-2.0.ebuild:
Version bump.
03 Feb 2006;
Added ~ppc keyword. bug 121023
01 Feb 2006; Gustavo Zacarias
jpgraph-2.0_beta.ebuild:
Keyworded ~sparc wrt #121023
26 Nov 2005; Luca Longinotti
Sync with PHP overlay.
24 Sep 2005; Marcus D. Hanwell
Marked ~amd64.
*jpgraph-2.0_beta (18 Sep 2005)
18 Sep 2005; Benedikt Boehm
+jpgraph-2.0_beta.ebuild:
initial version
DIST jpgraph-2.3.tar.gz 4619908 RMD160 dcebe1591bc9ccd1a24d454b8890416d06e4ef4b SHA1 69c14f902befa68cfe84de19a2f42621f770604c SHA256 f149ed7a45e4e2e8045f9ccf3f8342153d25766ffc0f0f7242cfcf7185b88fb9
DIST jpgraph-3.0.7.tar.bz2 10541173 RMD160 338f78c8b3ef0a9f3e52240be43bb5f5e02662b9 SHA1 3f841ea20cb27d0ee2376669936ca5127f7c2291 SHA256 412a1aaf47c7d70c5a4350d1c571ebb88c77138d9b95afd51895c44f188a03b6
EBUILD jpgraph-2.3.ebuild 2767 RMD160 1e50f9f23e0171af653f09d1df7d65f035ba9260 SHA1 2d0a50fa6cb1029c440a9b3345a44172614ecbf5 SHA256 15e691f888ef0a2307792653c1a41f8a1c44977f9e344f84b5b4669dfd9ebb78
EBUILD jpgraph-3.0.7.ebuild 2731 RMD160 70c48346f1360a0effb3451db78da62bfcf2c9e3 SHA1 1c93e0bf13df2928f4335819b186386c29cf5ea5 SHA256 f844d8699037415939875b5f9fed508e54497816cdff59c94e20fb1a07b3b495
MISC ChangeLog 4273 RMD160 b3d5bbc04a0160d2b3e6c8fa7be4815319218092 SHA1 69568dd90961422df27390d5e3f1fbb3c16a4f4d SHA256 5b54ef22b6308b7bf50b3327bc814d3a23e6084f0a8ccd6a851f0635ce3b969b
MISC metadata.xml 157 RMD160 a98db3a086fae3c09a903dadbc05f60443ec4b1a SHA1 ddaa23cc35eb917bf8962b652442bebb1ce0f440 SHA256 54f8878ca0228e380abbaa4b529806b5533a6b9b51b3b16c0909e906586a91a1
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-php5/jpgraph/jpgraph-2.3.ebuild,v 1.5 2008/03/08 21:09:36 pva 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}"
}
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-php5/jpgraph/jpgraph-3.0.7.ebuild,v 1.1 2010/04/21 22:43:46 mabi 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}"
}