diff options
author | Luca Longinotti <chtekk@gentoo.org> | 2007-03-18 01:41:15 +0000 |
---|---|---|
committer | Luca Longinotti <chtekk@gentoo.org> | 2007-03-18 01:41:15 +0000 |
commit | 35113407421707bd86c6818d33bf6712c44a47c1 (patch) | |
tree | da14dbc874e009540dbca330f718b6a21dc7b863 /dev-php5/php-gtk | |
parent | Replacing einfo with ewarn (diff) | |
download | gentoo-2-35113407421707bd86c6818d33bf6712c44a47c1.tar.gz gentoo-2-35113407421707bd86c6818d33bf6712c44a47c1.tar.bz2 gentoo-2-35113407421707bd86c6818d33bf6712c44a47c1.zip |
Cleanup.
(Portage version: 2.1.2.2)
Diffstat (limited to 'dev-php5/php-gtk')
-rw-r--r-- | dev-php5/php-gtk/ChangeLog | 6 | ||||
-rw-r--r-- | dev-php5/php-gtk/metadata.xml | 2 | ||||
-rw-r--r-- | dev-php5/php-gtk/php-gtk-2.0.0_alpha.ebuild | 73 |
3 files changed, 40 insertions, 41 deletions
diff --git a/dev-php5/php-gtk/ChangeLog b/dev-php5/php-gtk/ChangeLog index b30dc2b9859e..524a7aa1b28d 100644 --- a/dev-php5/php-gtk/ChangeLog +++ b/dev-php5/php-gtk/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for dev-php5/php-gtk # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-php5/php-gtk/ChangeLog,v 1.2 2007/03/09 21:04:11 anant Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-php5/php-gtk/ChangeLog,v 1.3 2007/03/18 01:41:15 chtekk Exp $ + + 18 Mar 2007; Luca Longinotti <chtekk@gentoo.org> metadata.xml, + php-gtk-2.0.0_alpha.ebuild: + Cleanup, make it concurrentmodphp compatible. *php-gtk-2.0.0_alpha (20 Feb 2007) diff --git a/dev-php5/php-gtk/metadata.xml b/dev-php5/php-gtk/metadata.xml index 38a7a57d2a4c..e777db1d008b 100644 --- a/dev-php5/php-gtk/metadata.xml +++ b/dev-php5/php-gtk/metadata.xml @@ -3,7 +3,7 @@ <pkgmetadata> <herd>php</herd> <maintainer> - <email>anant@gentoo.org</email> + <email>anant@gentoo.org</email> <name>Anant Narayanan</name> </maintainer> <longdescription> diff --git a/dev-php5/php-gtk/php-gtk-2.0.0_alpha.ebuild b/dev-php5/php-gtk/php-gtk-2.0.0_alpha.ebuild index 52d0a7d5e96b..28317620746e 100644 --- a/dev-php5/php-gtk/php-gtk-2.0.0_alpha.ebuild +++ b/dev-php5/php-gtk/php-gtk-2.0.0_alpha.ebuild @@ -1,41 +1,47 @@ # Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-php5/php-gtk/php-gtk-2.0.0_alpha.ebuild,v 1.1 2007/02/20 16:40:23 anant Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-php5/php-gtk/php-gtk-2.0.0_alpha.ebuild,v 1.2 2007/03/18 01:41:15 chtekk Exp $ PHP_EXT_NAME="php_gtk2" +PHP_EXT_INI="yes" +PHP_EXT_ZENDEXT="no" + inherit php-ext-source-r1 -DESCRIPTION="PHP 5 bindings for the Gtk+ 2 library" +KEYWORDS="~amd64 ~x86" + +DESCRIPTION="PHP 5 bindings for the Gtk+ 2 library." HOMEPAGE="http://gtk.php.net/" SRC_URI="http://gtk.php.net/distributions/${PN}-${PV/_alpha/}alpha.tar.gz" - LICENSE="PHP" SLOT="2" -KEYWORDS="~x86" IUSE="debug mozembed nolibglade sourceview" -S="${WORKDIR}/${PN}-${PV/_alpha/}alpha" - RDEPEND=">=dev-lang/php-5.1.2 - >=x11-libs/gtk+-2.6.0 - >=dev-libs/glib-2.6.0 - >=x11-libs/pango-1.8.0 - >=dev-libs/atk-1.6.0 - !nolibglade? ( >=gnome-base/libglade-2.5.0 ) - mozembed? ( || ( >=www-client/mozilla-1.7.0 >=www-client/mozilla-firefox-1.5.0 ) ) - sourceview? ( >=x11-libs/gtksourceview-1.6.0 )" + >=x11-libs/gtk+-2.6.0 + >=dev-libs/glib-2.6.0 + >=x11-libs/pango-1.8.0 + >=dev-libs/atk-1.6.0 + !nolibglade? ( >=gnome-base/libglade-2.5.0 ) + mozembed? ( || ( >=www-client/mozilla-1.7.0 >=www-client/mozilla-firefox-1.5.0 ) ) + sourceview? ( >=x11-libs/gtksourceview-1.6.0 )" DEPEND="${RDEPEND} - >=dev-util/pkgconfig-0.9" + >=dev-util/pkgconfig-0.9" + +S="${WORKDIR}/${PN}-${PV/_alpha/}alpha" pkg_setup() { + has_php require_php_cli - if use debug; then + if use debug ; then require_php_with_use cli pcre debug else - if has_debug; then - # PHP has debug enabled, but PHP-GTK doesn't - eerror "Please enable the debug USE flag!" - die + if has_debug ; then + # PHP has debug enabled, but PHP-GTK doesn't! + eerror "Please enable the 'debug' USE flag in" + eerror "PHP-GTK, this is needed to work with" + eerror "the debug version of PHP." + die "Enable 'debug' USE flag" fi require_php_with_use cli pcre fi @@ -44,45 +50,34 @@ pkg_setup() { src_unpack() { unpack ${A} cd "${S}" + # Allow building against firefox epatch "${FILESDIR}/gtkmozembed.patch" } src_compile() { - # Can't use php-ext-source-r1_src_compile + # Can't use php-ext-source-r1_src_compile, # because PHP-GTK 2 uses buildconf and not autoconf ./buildconf - if use nolibglade; then + if use nolibglade ; then GLCONF=" --disable-libglade" else GLCONF="" fi econf \ - $(use_enable debug ) \ - $(use_enable mozembed ) \ + $(use_enable debug) \ + $(use_enable mozembed) \ $(use_enable sourceview) \ - $GLCONF \ - || die "Configure failed!" + ${GLCONF} \ + || die "econf failed" - emake || die "Compilation failed!" + emake || die "emake failed" } src_install() { - # Can't use php-ext-source-r1_src_install - # because it looks for {ext}-default.so, - # that too in the wrong location - insinto "${EXT_DIR}" - newins "${S}/modules/${PHP_EXT_NAME}.so" "${PHP_EXT_NAME}.so" + php-ext-source-r1_src_install dodoc-php AUTHORS ChangeLog INSTALL NEWS README README.KNOWN-ISSUES TODO2 } - -pkg_postinst() { - ewarn "Portage has not enabled this extension automatically!" - ewarn "You must add the line: 'extension=php_gtk2.so' in the" - ewarn "appropriate ini file, usually found in:" - ewarn "/etc/php/cli-php/php.ini" - epause -} |