Portage is a package management system used by Gentoo Linux
# ChangeLog for dev-php4/jpgraph
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/dev-php4/jpgraph/ChangeLog,v 1.18 2007/08/31 09:11:44 jokey Exp $
*jpgraph-1.21b (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
Fixing the DEPEND/RDEPEND for the move of net-www/apache to
www-servers/apache (#78622).
17 Mar 2007; Luca Longinotti
Update SRC_URI.
06 Mar 2007; Luca Longinotti
jpgraph-1.20.5.ebuild:
Remove old version. Stable on amd64. Cleanup ebuild.
06 Mar 2007; Jose Luis Rivero
Stable on alpha wrt #143376
06 Feb 2007; Gustavo Zacarias
Stable on sparc wrt #143376
25 Jan 2007; Jeroen Roovers
Stable for HPPA (bug #143378).
12 Jan 2007; nixnut
Stable on ppc wrt bug 143378
10 Jan 2007; Christian Faulhammer
jpgraph-1.20.5.ebuild:
stable x86, bug #143378
*jpgraph-1.20.5 (25 Sep 2006)
25 Sep 2006; Sebastian Bergmann
-jpgraph-1.20.2.ebuild, +jpgraph-1.20.5.ebuild:
Version bump.
29 Jun 2006; Guy Martin
Added ~hppa to KEYWORDS.
21 Apr 2006; Thomas Cort
Added ~alpha keyword wrt Bug #121023.
*jpgraph-1.20.2 (11 Feb 2006)
11 Feb 2006; Sebastian Bergmann
+jpgraph-1.20.2.ebuild:
Version bump.
03 Feb 2006;
Added ~ppc keyword. bug 121023
01 Feb 2006; Gustavo Zacarias
Keyworded ~sparc wrt #121023
24 Nov 2005; Luca Longinotti
Sync with PHP overlay.
24 Sep 2005; Marcus D. Hanwell
Marked ~amd64, bug 106514.
*jpgraph-1.19 (18 Sep 2005)
18 Sep 2005; Benedikt Boehm
+jpgraph-1.19.ebuild:
initial version
DIST jpgraph-1.20.5.tar.gz 4472390 RMD160 9c6728681a5fb40b6789657b0b147fc9136f46ec SHA1 353bdcb1d42cf7d8a650ddfcbfb58f730f998fbd SHA256 43367468406f6e968eb991d25a3de63f19ddbfd2a3871f34cbca325860a1281c
DIST jpgraph-1.21b.tar.gz 4608361 RMD160 b03bb2597be17c4073ff9928bcae5d1619b35d3c SHA1 b6966bc79a58dbeb3d17162bee9b407315087290 SHA256 9fd5a603d0a6e523876fb8b8607dc7ff19b64812185e3d9917d281873a4520e0
EBUILD jpgraph-1.20.5.ebuild 2406 RMD160 a50d24ade524fba0911eede6149321ee5045a2c4 SHA1 73b4bffb9a451183a7d5a7e57ef7be36cc6bc715 SHA256 d0146bcd83cc62be9e7c0fc45c069dd9af38bf31a6df8ea3e6935a3a9f6508c5
EBUILD jpgraph-1.21b.ebuild 2780 RMD160 aee074f9de4e280bd2413ebf02f0d48f34f3fe78 SHA1 af90ba163186a553d594006859880452347c6a5f SHA256 a70cadbbf903e313aa9ddc017071fd9e11127652bc925dc3620d43ecec4b2a52
MISC ChangeLog 2491 RMD160 ee0b93dda162a976993c1ee5ddb969c4a872fcd7 SHA1 41ae09a62aa005b2c4acd0db41fbb4baf1977de4 SHA256 0c7bcc8a63a18c35752d4c22b4d5463062d2d4e5c8abc8acb3972fb11c915ee7
MISC metadata.xml 157 RMD160 a98db3a086fae3c09a903dadbc05f60443ec4b1a SHA1 ddaa23cc35eb917bf8962b652442bebb1ce0f440 SHA256 54f8878ca0228e380abbaa4b529806b5533a6b9b51b3b16c0909e906586a91a1
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-php4/jpgraph/jpgraph-1.20.5.ebuild,v 1.9 2007/07/29 16:53:50 phreak Exp $
inherit php-lib-r1
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/jpgraph/${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-php4/"
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="root"
HTTPD_GROUP="root"
ewarn "No Apache webserver detected - ${JPGRAPH_CACHEDIR} 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"
# 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
# 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
# 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
fi
# patch 4:
# disable READ_CACHE in jpgraph
sed -i "s|^DEFINE(\"READ_CACHE\",true);|DEFINE(\"READ_CACHE\",false);|" src/jpg-config.inc
# 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
einfo "Setting up the cache dir"
keepdir "${JPGRAPH_CACHEDIR}"
fowners ${HTTPD_USER}:${HTTPD_GROUP} "${JPGRAPH_CACHEDIR}"
fperms 750 "${JPGRAPH_CACHEDIR}"
}
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-php4/jpgraph/jpgraph-1.21b.ebuild,v 1.1 2007/08/31 09:11:44 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/jpgraph/${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-php4/"
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 on 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 on 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 on 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 on 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}"
}