Gentoo Archives: gentoo-commits

From: "Matti Bickel (mabi)" <mabi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-php5/jpgraph: jpgraph-3.0.7.ebuild ChangeLog
Date: Wed, 21 Apr 2010 22:43:53
Message-Id: 20100421224346.DADC12C04A@corvid.gentoo.org
1 mabi 10/04/21 22:43:46
2
3 Modified: ChangeLog
4 Added: jpgraph-3.0.7.ebuild
5 Log:
6 bump
7 (Portage version: 2.1.8.3/cvs/Linux i686)
8
9 Revision Changes Path
10 1.32 dev-php5/jpgraph/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-php5/jpgraph/ChangeLog?rev=1.32&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-php5/jpgraph/ChangeLog?rev=1.32&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-php5/jpgraph/ChangeLog?r1=1.31&r2=1.32
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/dev-php5/jpgraph/ChangeLog,v
19 retrieving revision 1.31
20 retrieving revision 1.32
21 diff -u -r1.31 -r1.32
22 --- ChangeLog 8 Mar 2008 21:09:36 -0000 1.31
23 +++ ChangeLog 21 Apr 2010 22:43:46 -0000 1.32
24 @@ -1,6 +1,11 @@
25 # ChangeLog for dev-php5/jpgraph
26 -# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/dev-php5/jpgraph/ChangeLog,v 1.31 2008/03/08 21:09:36 pva Exp $
28 +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
29 +# $Header: /var/cvsroot/gentoo-x86/dev-php5/jpgraph/ChangeLog,v 1.32 2010/04/21 22:43:46 mabi Exp $
30 +
31 +*jpgraph-3.0.7 (21 Apr 2010)
32 +
33 + 21 Apr 2010; <mabi@g.o> +jpgraph-3.0.7.ebuild:
34 + bump (bug #299054), provided by Ole Markus With
35
36 08 Mar 2008; <pva@g.o> jpgraph-2.3.ebuild:
37 amd64 stable, bug #208284.
38
39
40
41 1.1 dev-php5/jpgraph/jpgraph-3.0.7.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-php5/jpgraph/jpgraph-3.0.7.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-php5/jpgraph/jpgraph-3.0.7.ebuild?rev=1.1&content-type=text/plain
45
46 Index: jpgraph-3.0.7.ebuild
47 ===================================================================
48 # Copyright 1999-2010 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/dev-php5/jpgraph/jpgraph-3.0.7.ebuild,v 1.1 2010/04/21 22:43:46 mabi Exp $
51
52 EAPI="2"
53
54 inherit php-lib-r1 eutils
55
56 KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~sparc ~x86"
57
58 DESCRIPTION="Fully OO graph drawing library for PHP."
59 HOMEPAGE="http://www.aditus.nu/jpgraph/"
60 SRC_URI="http://hem.bredband.net/jpgraph2/${P}.tar.bz2"
61 LICENSE="QPL-1.0"
62 SLOT="0"
63 IUSE="truetype"
64
65 DEPEND=""
66 RDEPEND="truetype? ( media-fonts/corefonts )
67 dev-lang/php[gd]
68 "
69
70 need_php_by_category
71
72 [[ -z "${JPGRAPH_CACHEDIR}" ]] && JPGRAPH_CACHEDIR="/var/cache/jpgraph-php5/"
73
74 pkg_setup() {
75 has_php
76
77 # check to which user:group the cache dir will go
78 if has_version "www-servers/apache" ; then
79 HTTPD_USER="apache"
80 HTTPD_GROUP="apache"
81 einfo "Configuring ${JPGRAPH_CACHEDIR} for Apache."
82 else
83 HTTPD_USER="${HTTPD_USER:-root}"
84 HTTPD_GROUP="${HTTPD_GROUP:-root}"
85 ewarn "No Apache webserver detected - ${JPGRAPH_CACHEDIR} will be"
86 ewarn "owned by ${HTTPD_USER}:${HTTPD_GROUP} instead."
87 ewarn "It this is not what you want, you can define"
88 ewarn "HTTPD_USER and HTTPD_GROUP variables and re-emerge ${PN}."
89 epause 3
90 fi
91 }
92
93 src_install() {
94 # some patches to adapt the config to Gentoo
95 einfo "Patching jpg-config.inc.php"
96
97 # patch 1:
98 # make jpgraph use the correct group for file permissions
99
100 sed -i "s|^define('CACHE_FILE_GROUP','www');|define('CACHE_FILE_GROUP','${HTTPD_GROUP}');|" src/jpg-config.inc.php \
101 || die "sed failed in patch 1"
102
103 # patch 2:
104 # make jpgraph use the correct directory for caching
105
106 sed -i "s|.*define('CACHE_DIR','/tmp/jpgraph_cache/');|define('CACHE_DIR','${JPGRAPH_CACHEDIR}');|" src/jpg-config.inc.php \
107 || die "sed failed in patch 2"
108
109 # patch 3:
110 # make jpgraph use the correct directory for the corefonts if the truetype USE flag is set
111
112 if use truetype ; then
113 sed -i "s|.*define('TTF_DIR','/usr/X11R6/lib/X11/fonts/truetype/');|define('TTF_DIR','/usr/share/fonts/corefonts/');|" src/jpg-config.inc.php \
114 || die "sed failed in patch 3"
115 fi
116
117 # patch 4:
118 # disable READ_CACHE in jpgraph
119
120 sed -i "s|^define('READ_CACHE',true);|define('READ_CACHE',false);|" src/jpg-config.inc.php \
121 || die "sed failed in patch 4"
122
123 # install php files
124 einfo "Building list of files to install"
125 php-lib-r1_src_install src `cd src ; find . -type f -print`
126
127 # install documentation
128 einfo "Installing documentation"
129 dodoc-php README
130 insinto /usr/share/doc/${CATEGORY}/${PF}
131 doins -r docportal/*
132
133 # setup the cache dir
134 einfo "Setting up the cache dir"
135 keepdir "${JPGRAPH_CACHEDIR}"
136 fowners ${HTTPD_USER}:${HTTPD_GROUP} "${JPGRAPH_CACHEDIR}"
137 fperms 750 "${JPGRAPH_CACHEDIR}"
138 }