Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 214701 Details for
Bug 299054
dev-php5/jpgraph version bump to 3.0.6
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
ebuild for jpgraph 3.0.6
jpgraph-3.0.6.ebuild (text/plain), 2.47 KB, created by
Toby Murray
on 2009-12-31 05:37:48 UTC
(
hide
)
Description:
ebuild for jpgraph 3.0.6
Filename:
MIME Type:
Creator:
Toby Murray
Created:
2009-12-31 05:37:48 UTC
Size:
2.47 KB
patch
obsolete
>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 )" > >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','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}" >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 299054
: 214701