ChangeLog

# ChangeLog for dev-php5/jpgraph
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/dev-php5/jpgraph/ChangeLog,v 1.31 2008/03/08 21:09:36 pva Exp $

08 Mar 2008; jpgraph-2.3.ebuild:
amd64 stable, bug #208284.

01 Feb 2008; Raúl Porcel jpgraph-2.3.ebuild:
alpha/sparc/x86 stable wrt #208284

31 Jan 2008; Jeroen Roovers jpgraph-2.3.ebuild:
Stable for HPPA (bug #208284).

31 Jan 2008; nixnut jpgraph-2.3.ebuild:
Stable on ppc wrt bug 208284

*jpgraph-2.3 (24 Dec 2007)

24 Dec 2007; Raúl Porcel +jpgraph-2.3.ebuild:
Version bump from the php-overlay

21 Dec 2007; Jakub Moc +jpgraph-2.3.ebuild:
Version bump

14 Nov 2007; Jeroen Roovers jpgraph-2.2.ebuild:
Stable for HPPA (bug #198564).

12 Nov 2007; Raúl Porcel jpgraph-2.2.ebuild:
alpha/sparc stable wrt #198564

11 Nov 2007; Samuli Suominen jpgraph-2.2.ebuild:
amd64 stable wrt #198564

11 Nov 2007; Dawid Węgliński jpgraph-2.2.ebuild:
Stable on x86 (bug #198564)

10 Nov 2007; nixnut jpgraph-2.2.ebuild:
Stable on ppc wrt bug 198564

06 Sep 2007; Markus Ullmann -jpgraph-2.1.4.ebuild:
Cleanup

*jpgraph-2.2 (31 Aug 2007)

31 Aug 2007; Markus Ullmann +jpgraph-2.2.ebuild:
Port from project overlay

30 Aug 2007; Jakub Moc jpgraph-2.2.ebuild:
Make HTTPD_{USER,GROUP} configurable.

30 Aug 2007; Jakub Moc +jpgraph-2.2.ebuild:
Version bump

29 Jul 2007; Christian Heim 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 -jpgraph-2.0.ebuild,
jpgraph-2.1.3.ebuild, +jpgraph-2.1.4.ebuild:
Version bump, cleanup.

06 Mar 2007; Jose Luis Rivero jpgraph-2.1.3.ebuild:
Stable on alpha wrt bug #143376

10 Feb 2007; nixnut jpgraph-2.1.3.ebuild:
Stable on ppc wrt bug 143376

10 Feb 2007; Steve Dibb jpgraph-2.1.3.ebuild:
amd64 stable, bug 143376

08 Feb 2007; Christian Faulhammer jpgraph-2.1.3.ebuild:
stable x86; bug #143376

06 Feb 2007; Gustavo Zacarias jpgraph-2.1.3.ebuild:
Stable on sparc wrt #143376

24 Jan 2007; Jeroen Roovers jpgraph-2.1.3.ebuild:
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 jpgraph-2.1.1.ebuild:
Added ~hppa to KEYWORDS.

21 Apr 2006; Thomas Cort jpgraph-2.1.1.ebuild:
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; jpgraph-2.0_beta.ebuild:
Added ~ppc keyword. bug 121023

01 Feb 2006; Gustavo Zacarias
jpgraph-2.0_beta.ebuild:
Keyworded ~sparc wrt #121023

26 Nov 2005; Luca Longinotti jpgraph-2.0_beta.ebuild:
Sync with PHP overlay.

24 Sep 2005; Marcus D. Hanwell jpgraph-2.0_beta.ebuild:
Marked ~amd64.

*jpgraph-2.0_beta (18 Sep 2005)

18 Sep 2005; Benedikt Boehm +metadata.xml,
+jpgraph-2.0_beta.ebuild:
initial version

Manifest

DIST jpgraph-2.1.3.tar.gz 4472095 RMD160 ba549c05894138b65a42bc74b2876aa6906ed946 SHA1 b1b08dab1627cb136a41d25dbc8b74250dd917ec SHA256 712646c74defa44b4cfca150857bda15df051d75b0971b9e54e38bada39f649d
DIST jpgraph-2.2.tar.gz 4604898 RMD160 d83e84dcf80ac037666ec4e2d84e8c8ade7abcec SHA1 5130098441bb8bd0034767cd3a655fd7f533c8f1 SHA256 1b1de456bf7c01a94e32e6dd56cecb9570b294da1d55f410d5b48e7e147f566f
DIST jpgraph-2.3.tar.gz 4619908 RMD160 dcebe1591bc9ccd1a24d454b8890416d06e4ef4b SHA1 69c14f902befa68cfe84de19a2f42621f770604c SHA256 f149ed7a45e4e2e8045f9ccf3f8342153d25766ffc0f0f7242cfcf7185b88fb9
EBUILD jpgraph-2.1.3.ebuild 2426 RMD160 e3d6d0e3fd2e204ec4b75206a4c248c7bd860b32 SHA1 b8883cdee2524ba13b259d24a1e52f62a015c78d SHA256 43aa0bb45058d4b6f2ad5e692275b8e1915031d0f84637114729d7a3feef9dd5
EBUILD jpgraph-2.2.ebuild 2775 RMD160 3cfc5291a00473fe02f4d7dd99fa07cde8154228 SHA1 a4e209d1338b0a06cff7d18a379fc7247143c646 SHA256 1c6b3b1d68dafdb40dd4c1d7449c591704386dc71aff41df1c3fc2014ba38551
EBUILD jpgraph-2.3.ebuild 2767 RMD160 1e50f9f23e0171af653f09d1df7d65f035ba9260 SHA1 2d0a50fa6cb1029c440a9b3345a44172614ecbf5 SHA256 15e691f888ef0a2307792653c1a41f8a1c44977f9e344f84b5b4669dfd9ebb78
MISC ChangeLog 4035 RMD160 dc26ec742b3afa4581674e8dc95edffed965204e SHA1 90df7d738f76e9a2a661c295f4623e5fe33b502f SHA256 8fa1c8f7526f55b4a4118bad5cd8180be0c21c83b7a532019c88cddc3dd0768b
MISC metadata.xml 157 RMD160 a98db3a086fae3c09a903dadbc05f60443ec4b1a SHA1 ddaa23cc35eb917bf8962b652442bebb1ce0f440 SHA256 54f8878ca0228e380abbaa4b529806b5533a6b9b51b3b16c0909e906586a91a1

jpgraph-2.1.3.ebuild

# 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.1.3.ebuild,v 1.9 2007/07/29 16:54:25 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/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="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.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_CACHEDIR}\");|" 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\",\"/usr/share/fonts/corefonts/\");|" 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
einfo "Setting up the cache dir"
keepdir "${JPGRAPH_CACHEDIR}"
fowners ${HTTPD_USER}:${HTTPD_GROUP} "${JPGRAPH_CACHEDIR}"
fperms 750 "${JPGRAPH_CACHEDIR}"
}

jpgraph-2.2.ebuild

# 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.6 2007/11/14 15:27:16 jer 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}"
}

jpgraph-2.3.ebuild

# 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}"
}

metadata.xml




php