summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatti Bickel <mabi@gentoo.org>2011-12-14 22:53:28 +0000
committerMatti Bickel <mabi@gentoo.org>2011-12-14 22:53:28 +0000
commit16865b62865db337179d7fa6df985ebb084675cc (patch)
tree5c49282bb1f47adc6353dfa92e606c0895dc94fc /dev-php
parentMerging categories dev-php5 and dev-php (bug #324665) (diff)
downloadgentoo-2-16865b62865db337179d7fa6df985ebb084675cc.tar.gz
gentoo-2-16865b62865db337179d7fa6df985ebb084675cc.tar.bz2
gentoo-2-16865b62865db337179d7fa6df985ebb084675cc.zip
Moving package from dev-php5 to dev-php category (bug #324665)
(Portage version: 2.2.0_alpha79/cvs/Linux x86_64, RepoMan options: --force)
Diffstat (limited to 'dev-php')
-rw-r--r--dev-php/php-gtk/ChangeLog130
-rw-r--r--dev-php/php-gtk/files/no-cli-check.patch14
-rw-r--r--dev-php/php-gtk/files/php-gtk-2.0.0-no-cli-check.patch14
-rw-r--r--dev-php/php-gtk/files/php-gtk-2.0.1-gtkhtml314.patch32
-rw-r--r--dev-php/php-gtk/metadata.xml15
-rw-r--r--dev-php/php-gtk/php-gtk-2.0.1-r4.ebuild127
6 files changed, 332 insertions, 0 deletions
diff --git a/dev-php/php-gtk/ChangeLog b/dev-php/php-gtk/ChangeLog
new file mode 100644
index 000000000000..8438975f109e
--- /dev/null
+++ b/dev-php/php-gtk/ChangeLog
@@ -0,0 +1,130 @@
+# ChangeLog for dev-php5/php-gtk
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-php/php-gtk/ChangeLog,v 1.10 2011/12/14 22:53:28 mabi Exp $
+
+ 27 Oct 2011; Alexandre Rostovtsev <tetromino@gentoo.org>
+ php-gtk-2.0.1-r4.ebuild:
+ Slot gtkspell dependency to 2 in preparation for gtkspell-3.
+
+ 18 Feb 2011; Tomáš Chvátal <scarabeus@gentoo.org>
+ -php-gtk-2.0.1-r2.ebuild, -php-gtk-2.0.1-r3.ebuild:
+ QA: Drop eapi1 ebuilds so virtualx eclass can require eapi2 unconditionally.
+
+*php-gtk-2.0.1-r4 (04 Nov 2010)
+
+ 04 Nov 2010; Matti Bickel <mabi@gentoo.org> +php-gtk-2.0.1-r4.ebuild:
+ add version supporting minor version slotting
+
+ 25 Jul 2010; Nirbheek Chauhan <nirbheek@gentoo.org>
+ php-gtk-2.0.1-r2.ebuild, php-gtk-2.0.1-r3.ebuild:
+ Fix deps for pkgmove from www-client/mozilla-firefox -> www-client/firefox
+
+ 21 Jun 2010; <mabi@gentoo.org> php-gtk-2.0.1-r3.ebuild:
+ run phpize after applying patches (bug #323721)
+
+*php-gtk-2.0.1-r3 (11 Jun 2010)
+
+ 11 Jun 2010; <mabi@gentoo.org> +php-gtk-2.0.1-r3.ebuild:
+ php-gtk does not compile with php-5.3 (bug #318061), thanks to Ole Markus
+ With for testing, update to EAPI=2
+
+ 06 Mar 2010; Sebastian Pipping <sping@gentoo.org> php-gtk-2.0.1-r2.ebuild:
+ Make use of virtualx eclass. Patch for bug #213037 by Myckel Habets
+
+*php-gtk-2.0.1-r2 (21 Feb 2010)
+
+ 21 Feb 2010; Pacho Ramos <pacho@gentoo.org> -php-gtk-2.0.0.ebuild,
+ -php-gtk-2.0.1.ebuild, -php-gtk-2.0.1-r1.ebuild, +php-gtk-2.0.1-r2.ebuild,
+ metadata.xml:
+ Dropping 'extra' USE flag since x11-libs/gtk+extra is going to be removed,
+ see bug 292211
+
+*php-gtk-2.0.1-r1 (13 Sep 2009)
+
+ 13 Sep 2009; Gilles Dartiguelongue <eva@gentoo.org>
+ +php-gtk-2.0.1-r1.ebuild, +files/php-gtk-2.0.1-gtkhtml314.patch:
+ Re-add gtkhtml support, thanks to Yaakov S. suggested patch, bug #280961.
+
+ 12 Sep 2009; Gilles Dartiguelongue <eva@gentoo.org> php-gtk-2.0.0.ebuild,
+ php-gtk-2.0.1.ebuild, metadata.xml:
+ Remove deprecated gtkhtml:3.8 support, bug #280961.
+
+ 20 Mar 2009; Jorge Manuel B. S. Vicetto <jmbsvicetto@gentoo.org>
+ metadata.xml:
+ Removing anant as a maintainer since he was retired.
+
+ 04 Dec 2008; Gilles Dartiguelongue <eva@gentoo.org> php-gtk-2.0.0.ebuild,
+ php-gtk-2.0.1.ebuild:
+ Use slotted gtkhtml dependency, bug #247636.
+
+*php-gtk-2.0.1 (22 Jul 2008)
+
+ 22 Jul 2008; Christian Hoffmann <hoffie@gentoo.org>
+ -php-gtk-2.0.0_beta-r1.ebuild, +php-gtk-2.0.1.ebuild:
+ version bump to 2.0.1, fixing the build problems with libtool-2.2* (bug
+ 232538, many thanks to Rafał Mużyło <galtgendo@o2.pl> again), fixing
+ --with-debug (it's --enable-debug now)
+
+ 07 Mar 2008; Raúl Porcel <armin76@gentoo.org>
+ +files/php-gtk-2.0.0-no-cli-check.patch, php-gtk-2.0.0.ebuild:
+ import from the php overlay
+
+ 07 Mar 2008; Jakub Moc <jakub@gentoo.org> php-gtk-2.0.0.ebuild:
+ Remove sourceview use flag wrt Bug 212595
+
+*php-gtk-2.0.0 (04 Mar 2008)
+
+ 04 Mar 2008; Markus Ullmann <jokey@gentoo.org> +php-gtk-2.0.0.ebuild:
+ Version bump from project overlay
+
+ 03 Mar 2008; Jakub Moc <jakub@gentoo.org>
+ +files/php-gtk-2.0.0-no-cli-check.patch, +php-gtk-2.0.0.ebuild:
+ Version bump
+
+*php-gtk-2.0.0_beta-r1 (06 Dec 2007)
+
+ 06 Dec 2007; Markus Ullmann <jokey@gentoo.org> -php-gtk-2.0.0_beta.ebuild,
+ +php-gtk-2.0.0_beta-r1.ebuild:
+ LICENSE fix from project overlay and version bump
+
+ 30 Nov 2007; Jakub Moc <jakub@gentoo.org> +php-gtk-2.0.0_beta-r1.ebuild:
+ Add USE=doc to install the manual, get rid of eclass duplication in
+ src_install() and set PHPSAPILIST instead, get rid of nolibglade flag and
+ replace it with USE=glade (enabled by default via EAPI-1). Ebuild cleanup.
+ Fix LICENSE.
+
+ 12 Oct 2007; Rémi Cardona <remi@gentoo.org> php-gtk-2.0.0_beta.ebuild:
+ update gtksourceview deps (see bug #195366)
+
+*php-gtk-2.0.0_beta (17 Jun 2007)
+
+ 17 Jun 2007; Anant Narayanan <anant@gentoo.org> -files/gtkmozembed.patch,
+ +files/no-cli-check.patch, -php-gtk-2.0.0_alpha.ebuild,
+ +php-gtk-2.0.0_beta.ebuild:
+ bump to 2.0.0beta.
+
+ 18 Apr 2007; Anant Narayanan <anant@gentoo.org>
+ php-gtk-2.0.0_alpha.ebuild:
+ Fixed sandbox violation in case sharedmem is enabled in PHP.
+
+ 26 Mar 2007; Raúl Porcel <armin76@gentoo.org> php-gtk-2.0.0_alpha.ebuild:
+ Remove www-client/mozilla from DEPEND, as it was p.masked and removed
+
+ 19 Mar 2007; Anant Narayanan <anant@gentoo.org>
+ php-gtk-2.0.0_alpha.ebuild:
+ Revert back to manually copying .so until concurrentmodphp is sorted out
+
+ 18 Mar 2007; Luca Longinotti <chtekk@gentoo.org>
+ php-gtk-2.0.0_alpha.ebuild:
+ Fix SLOT.
+
+ 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)
+
+ 20 Feb 2007; Anant Narayanan <anant@gentoo.org> +files/gtkmozembed.patch, +metadata.xml,
+ +php-gtk-2.0.0_alpha.ebuild:
+ Initial ebuild, closes bug #149670
+
diff --git a/dev-php/php-gtk/files/no-cli-check.patch b/dev-php/php-gtk/files/no-cli-check.patch
new file mode 100644
index 000000000000..8c7ab18dafc7
--- /dev/null
+++ b/dev-php/php-gtk/files/no-cli-check.patch
@@ -0,0 +1,14 @@
+--- config.m4.old 2007-06-17 09:27:39.000000000 +0530
++++ config.m4 2007-06-17 09:27:47.000000000 +0530
+@@ -27,11 +27,6 @@
+ AC_MSG_ERROR(Could not locate PHP executable)
+ fi
+
+- PHP_SAPI=`$PHP --version | sed -n 's/.*(\(...\)).*/\1/p'`
+- if test "$PHP_SAPI" != "cli" ; then
+- AC_MSG_ERROR(PHP CLI version is required[,] $PHP_SAPI found)
+- fi
+-
+ AC_PROG_AWK
+ PHP_SUBST(AWK)
+
diff --git a/dev-php/php-gtk/files/php-gtk-2.0.0-no-cli-check.patch b/dev-php/php-gtk/files/php-gtk-2.0.0-no-cli-check.patch
new file mode 100644
index 000000000000..8b8d3aecee37
--- /dev/null
+++ b/dev-php/php-gtk/files/php-gtk-2.0.0-no-cli-check.patch
@@ -0,0 +1,14 @@
+--- config.m4.orig 2008-02-13 06:05:27.000000000 +0100
++++ config.m4 2008-03-03 23:38:00.000000000 +0100
+@@ -27,11 +27,6 @@
+ AC_MSG_ERROR(Could not locate PHP executable)
+ fi
+
+- PHP_SAPI=`$PHP --version | head -1 | sed -n 's/.*(\(...\)).*/\1/p'`
+- if test "$PHP_SAPI" != "cli" ; then
+- AC_MSG_ERROR(PHP CLI version is required[,] $PHP_SAPI found)
+- fi
+-
+ AC_PROG_AWK
+ PHP_SUBST(AWK)
+
diff --git a/dev-php/php-gtk/files/php-gtk-2.0.1-gtkhtml314.patch b/dev-php/php-gtk/files/php-gtk-2.0.1-gtkhtml314.patch
new file mode 100644
index 000000000000..c14526121b68
--- /dev/null
+++ b/dev-php/php-gtk/files/php-gtk-2.0.1-gtkhtml314.patch
@@ -0,0 +1,32 @@
+--- a/ext/html/html.defs 2008-08-17 16:40:39.000000000 +0200
++++ b/ext/html/html.defs 2008-08-17 16:41:10.000000000 +0200
+@@ -103,18 +103,6 @@
+ (return-type "none")
+ )
+
+-(define-method request_paste
+- (of-object "GtkHTML")
+- (c-name "gtk_html_request_paste")
+- (return-type "int")
+- (parameters
+- '("GdkAtom" "selection")
+- '("gint" "type")
+- '("gint32" "time")
+- '("gboolean" "as_cite")
+- )
+-)
+-
+ (define-method begin
+ (of-object "GtkHTML")
+ (c-name "gtk_html_begin")
+--- a/ext/html/config.m4 2008-08-17 16:44:57.000000000 +0200
++++ b/ext/html/config.m4 2008-08-17 16:45:05.000000000 +0200
+@@ -7,7 +7,7 @@
+ [ --with-html Enable GtkHtml support],no)
+
+ if test "$PHP_GTK_HTML" != "no"; then
+- PKG_CHECK_MODULES(HTML, [libgtkhtml-3.8 >= html_required_version],
++ PKG_CHECK_MODULES(HTML, [libgtkhtml-3.14 >= html_required_version],
+ have_html=yes, have_html=no)
+ if test "$have_html" != "yes"; then
+ AC_MSG_RESULT([Unable to locate libgtkhtml version html_required_version or higher: not building])
diff --git a/dev-php/php-gtk/metadata.xml b/dev-php/php-gtk/metadata.xml
new file mode 100644
index 000000000000..4378d99dc5ef
--- /dev/null
+++ b/dev-php/php-gtk/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>php</herd>
+ <longdescription>
+ This PHP5 extension wraps the Gtk+ 2 library thereby
+ providing the ability to write GUI applications in PHP.
+ </longdescription>
+ <use>
+ <flag name="glade">Enable libglade support</flag>
+ <flag name="libsexy">Enable libsexy support</flag>
+ <flag name="mozembed">Enable GtkMozembed support</flag>
+ <flag name="scintilla">Enable Scintilla support</flag>
+ </use>
+</pkgmetadata>
diff --git a/dev-php/php-gtk/php-gtk-2.0.1-r4.ebuild b/dev-php/php-gtk/php-gtk-2.0.1-r4.ebuild
new file mode 100644
index 000000000000..bb0b50dccc3d
--- /dev/null
+++ b/dev-php/php-gtk/php-gtk-2.0.1-r4.ebuild
@@ -0,0 +1,127 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-php/php-gtk/php-gtk-2.0.1-r4.ebuild,v 1.1 2011/12/14 22:53:28 mabi Exp $
+
+EAPI="2"
+
+PHP_EXT_NAME="php_gtk2"
+PHP_EXT_INI="yes"
+PHP_EXT_ZENDEXT="no"
+PHPSAPILIST="cli"
+USE_PHP="php5-2"
+
+DOCS="AUTHORS ChangeLog INSTALL NEWS README README.KNOWN-ISSUES TODO2"
+
+inherit php-ext-source-r2 virtualx
+
+DESCRIPTION="PHP 5 bindings for the Gtk+ 2 library."
+HOMEPAGE="http://gtk.php.net/"
+SRC_URI="http://gtk.php.net/distributions/${P}.tar.gz"
+IUSE="debug doc examples +glade gtkhtml libsexy mozembed scintilla spell"
+LICENSE="PHP-2.02 PHP-3 PHP-3.01 LGPL-2.1 public-domain Scintilla"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+MYDOC_PN="php_gtk_manual"
+MYDOC_PV="20071130"
+
+LANGS="bg en ja pt_BR zh_CN"
+for lang in ${LANGS} ; do
+ IUSE="${IUSE} linguas_${lang}"
+ SRC_URI="${SRC_URI}
+ doc? ( linguas_${lang}? ( http://dev.gentooexperimental.org/~jakub/distfiles/${MYDOC_PN}-${MYDOC_PV}_${lang}.tar.bz2
+ mirror://gentoo/${MYDOC_PN}-${MYDOC_PV}_${lang}.tar.bz2 ) )"
+done
+
+RDEPEND=">=dev-lang/php-5.1.2
+ <dev-lang/php-5.3[pcre,cli,debug=]
+ >=x11-libs/gtk+-2.6.0:2
+ >=dev-libs/glib-2.6.0
+ >=x11-libs/pango-1.8.0
+ >=dev-libs/atk-1.9.0
+ glade? ( >=gnome-base/libglade-2.5.0 )
+ libsexy? ( >=x11-libs/libsexy-0.1.10 )
+ gtkhtml? ( gnome-extra/gtkhtml:3.14 )
+ mozembed? ( >=www-client/firefox-1.5.0 )
+ spell? ( >=app-text/gtkspell-2.0.0:2 )"
+DEPEND="${RDEPEND}
+ >=dev-util/pkgconfig-0.9"
+
+src_unpack() {
+ unpack ${P}.tar.gz
+ for slot in $(php_get_slots) ; do
+ cp -r "${S}" "${WORKDIR}/${slot}"
+ done
+
+ cd "${WORKDIR}"
+ for lang in ${LANGS} ; do
+ if use doc && use linguas_${lang} ; then
+ mkdir ${lang}
+ pushd ${lang} >/dev/null
+ unpack ${MYDOC_PN}-${MYDOC_PV}_${lang}.tar.bz2
+ popd >/dev/null
+ fi
+ done
+}
+
+src_prepare() {
+ for slot in $(php_get_slots) ; do
+ php_init_slot_env ${slot}
+
+ # we already check for CLI and built-in check creates trouble
+ # on suhosin-based installations, so we remove it
+ epatch "${FILESDIR}"/${PN}-2.0.0-no-cli-check.patch
+
+ # depends on newer gtkhtml
+ epatch "${FILESDIR}"/${PN}-2.0.1-gtkhtml314.patch
+
+ # see bug 232538 for details:
+ # this is needed so that autoconf can find the m4 gtk files (non-standard
+ # location)
+ export AT_M4DIR="${WORKDIR}/${slot}"
+ # phpize will invoke autoconf/autoheader (which will fail); we are replacing
+ # these calls with dummies as we call eautoreconf shortly afterwards
+ # anyway
+ export PHP_AUTOCONF="true"
+ export PHP_AUTOHEADER="true"
+ php-ext-source-r2_phpize
+ done
+}
+
+src_configure() {
+ my_conf="--without-extra \
+ $(use_with gtkhtml html) \
+ $(use_with libsexy) \
+ $(use_with mozembed) \
+ $(use_with spell) \
+ $(use_enable debug) \
+ $(use_enable scintilla) \
+ --without-sourceview \
+ $(use glade || echo '--without-libglade')"
+ php-ext-source-r2_src_configure
+}
+
+src_compile() {
+ # call virtualmake to setup an virtual x environment
+ VIRTUALX_COMMAND="php-ext-source-r2_src_compile" virtualmake
+}
+
+src_install() {
+ php-ext-source-r2_src_install
+
+ if use doc; then
+ for lang in ${LANGS} ; do
+ if use linguas_${lang} ; then
+ ebegin "Installing ${lang} manual, will take a while"
+ insinto /usr/share/doc/${CATEGORY}/${PF}/manual-${lang}
+ doins -r "${WORKDIR}"/${lang}/html/*
+ eend $?
+ fi
+ done
+ fi
+
+ if use examples ; then
+ insinto /usr/share/doc/${CATEGORY}/${PF}/examples
+ doins -r "${S}"/demos/*
+ fi
+}