Gentoo Archives: gentoo-commits

From: "Markus Ullmann (jokey)" <jokey@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-php5/php-gtk: ChangeLog php-gtk-2.0.0_beta-r1.ebuild php-gtk-2.0.0_beta.ebuild
Date: Thu, 06 Dec 2007 01:23:45
Message-Id: E1J05Sm-0006Tc-D1@stork.gentoo.org
1 jokey 07/12/06 01:23:40
2
3 Modified: ChangeLog
4 Added: php-gtk-2.0.0_beta-r1.ebuild
5 Removed: php-gtk-2.0.0_beta.ebuild
6 Log:
7 LICENSE fix from project overlay and version bump
8 (Portage version: 2.1.4_rc7)
9
10 Revision Changes Path
11 1.10 dev-php5/php-gtk/ChangeLog
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-php5/php-gtk/ChangeLog?rev=1.10&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-php5/php-gtk/ChangeLog?rev=1.10&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-php5/php-gtk/ChangeLog?r1=1.9&r2=1.10
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-php5/php-gtk/ChangeLog,v
20 retrieving revision 1.9
21 retrieving revision 1.10
22 diff -u -r1.9 -r1.10
23 --- ChangeLog 12 Oct 2007 08:48:23 -0000 1.9
24 +++ ChangeLog 6 Dec 2007 01:23:39 -0000 1.10
25 @@ -1,6 +1,18 @@
26 # ChangeLog for dev-php5/php-gtk
27 # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-php5/php-gtk/ChangeLog,v 1.9 2007/10/12 08:48:23 remi Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-php5/php-gtk/ChangeLog,v 1.10 2007/12/06 01:23:39 jokey Exp $
30 +
31 +*php-gtk-2.0.0_beta-r1 (06 Dec 2007)
32 +
33 + 06 Dec 2007; Markus Ullmann <jokey@g.o> -php-gtk-2.0.0_beta.ebuild,
34 + +php-gtk-2.0.0_beta-r1.ebuild:
35 + LICENSE fix from project overlay and version bump
36 +
37 + 30 Nov 2007; Jakub Moc <jakub@g.o> +php-gtk-2.0.0_beta-r1.ebuild:
38 + Add USE=doc to install the manual, get rid of eclass duplication in
39 + src_install() and set PHPSAPILIST instead, get rid of nolibglade flag and
40 + replace it with USE=glade (enabled by default via EAPI-1). Ebuild cleanup.
41 + Fix LICENSE.
42
43 12 Oct 2007; RĂ©mi Cardona <remi@g.o> php-gtk-2.0.0_beta.ebuild:
44 update gtksourceview deps (see bug #195366)
45
46
47
48 1.1 dev-php5/php-gtk/php-gtk-2.0.0_beta-r1.ebuild
49
50 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-php5/php-gtk/php-gtk-2.0.0_beta-r1.ebuild?rev=1.1&view=markup
51 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-php5/php-gtk/php-gtk-2.0.0_beta-r1.ebuild?rev=1.1&content-type=text/plain
52
53 Index: php-gtk-2.0.0_beta-r1.ebuild
54 ===================================================================
55 # Copyright 1999-2007 Gentoo Foundation
56 # Distributed under the terms of the GNU General Public License v2
57 # $Header: /var/cvsroot/gentoo-x86/dev-php5/php-gtk/php-gtk-2.0.0_beta-r1.ebuild,v 1.1 2007/12/06 01:23:39 jokey Exp $
58
59 EAPI="1"
60
61 PHP_EXT_NAME="php_gtk2"
62 PHP_EXT_INI="yes"
63 PHP_EXT_ZENDEXT="no"
64 PHPSAPILIST="cli"
65 DOCS="AUTHORS ChangeLog INSTALL NEWS README README.KNOWN-ISSUES TODO2"
66
67 inherit php-ext-source-r1
68
69 MY_P="${PN}-${PV/_beta/beta}"
70
71 DESCRIPTION="PHP 5 bindings for the Gtk+ 2 library."
72 HOMEPAGE="http://gtk.php.net/"
73 SRC_URI="http://gtk.php.net/distributions/${MY_P}.tar.gz"
74 IUSE="debug doc extra +glade html libsexy mozembed scintilla sourceview spell"
75 LICENSE="PHP-2.02 PHP-3 PHP-3.01 LGPL-2.1 public-domain Scintilla"
76 SLOT="0"
77 KEYWORDS="~amd64 ~x86"
78
79 MYDOC_PN="php_gtk_manual"
80 MYDOC_PV="20071130"
81
82 LANGS="bg en ja pt_BR zh_CN"
83 for lang in ${LANGS} ; do
84 IUSE="${IUSE} linguas_${lang}"
85 SRC_URI="${SRC_URI}
86 doc? ( linguas_${lang}? ( http://dev.gentooexperimental.org/~jakub/distfiles/${MYDOC_PN}-${MYDOC_PV}_${lang}.tar.bz2
87 mirror://gentoo/${MYDOC_PN}-${MYDOC_PV}_${lang}.tar.bz2 ) )"
88 done
89
90 RDEPEND=">=dev-lang/php-5.1.2
91 >=x11-libs/gtk+-2.6.0
92 >=dev-libs/glib-2.6.0
93 >=x11-libs/pango-1.8.0
94 >=dev-libs/atk-1.6.0
95 extra? ( >=x11-libs/gtk+extra-2.1.1 )
96 glade? ( >=gnome-base/libglade-2.5.0 )
97 html? ( >=gnome-extra/gtkhtml-3.10.0 )
98 libsexy? ( >=x11-libs/libsexy-0.1.10 )
99 mozembed? ( >=www-client/mozilla-firefox-1.5.0 )
100 sourceview? ( =x11-libs/gtksourceview-1* )
101 spell? ( >=app-text/gtkspell-2.0.0 )"
102 DEPEND="${RDEPEND}
103 >=dev-util/pkgconfig-0.9"
104
105 S="${WORKDIR}/${MY_P}"
106
107 pkg_setup() {
108 if use debug ; then
109 require_php_with_use cli pcre debug
110 else
111 if has_debug ; then
112 # PHP has debug enabled, but PHP-GTK doesn't!
113 eerror "Please enable the 'debug' USE flag in"
114 eerror "PHP-GTK, this is needed to work with"
115 eerror "the debug version of PHP."
116 die "Enable 'debug' USE flag"
117 fi
118 require_php_with_use cli pcre
119 fi
120 }
121
122 src_unpack() {
123 unpack ${MY_P}.tar.gz
124
125 cd "${S}"
126 # we already check for CLI and built-in check creates trouble
127 # on suhosin-based installations, so we remove it
128 epatch "${FILESDIR}"/no-cli-check.patch
129
130 cd "${WORKDIR}"
131 for lang in ${LANGS} ; do
132 if use doc && use linguas_${lang} ; then
133 mkdir ${lang}
134 pushd ${lang} >/dev/null
135 unpack ${MYDOC_PN}-${MYDOC_PV}_${lang}.tar.bz2
136 popd >/dev/null
137 fi
138 done
139 }
140
141 src_compile() {
142 local GLCONF
143 use glade || GLCONF=" --disable-libglade"
144
145 # php-ext-source-r1_src_compile can't be used
146 has_php
147 addpredict /usr/share/snmp/mibs/.index
148 addpredict /session_mm_cli0.sem
149 ./buildconf
150
151 econf $(use_with extra) \
152 $(use_with html) \
153 $(use_with libsexy) \
154 $(use_with mozembed) \
155 $(use_with sourceview) \
156 $(use_with spell) \
157 $(use_with debug) \
158 $(use_enable scintilla) \
159 ${GLCONF}
160
161 emake || die "make failed!"
162 mv -f "modules/${PHP_EXT_NAME}.so" "${WORKDIR}/${PHP_EXT_NAME}-default.so" || die "Unable to move extension"
163 }
164
165 src_install() {
166 php-ext-source-r1_src_install
167
168 if use doc; then
169 for lang in ${LANGS} ; do
170 if use linguas_${lang} ; then
171 ebegin "Installing ${lang} manual, will take a while"
172 insinto /usr/share/doc/${CATEGORY}/${PF}/manual-${lang}
173 doins -r "${WORKDIR}"/${lang}/html/*
174 eend $?
175 fi
176 done
177 fi
178 }
179
180
181
182 --
183 gentoo-commits@g.o mailing list