summaryrefslogtreecommitdiff
path: root/x11-libs
diff options
context:
space:
mode:
authorsss <sss@4d9a9b59-111c-4e0b-8f7a-7640551abb98>2009-04-12 19:14:13 +0000
committersss <sss@4d9a9b59-111c-4e0b-8f7a-7640551abb98>2009-04-12 19:14:13 +0000
commit1872e1fd037bb31de2642ef4ce5ac614a67f3922 (patch)
treeb9d18ec7793ddff64579bdbb6225eee77ee81913 /x11-libs
parenta8c842b71bf8ec2ff3c84c388050fcbce4807f3b (diff)
git-svn-id: http://172.18.13.13/svn/sss_overlay@10 4d9a9b59-111c-4e0b-8f7a-7640551abb98
Diffstat (limited to 'x11-libs')
-rw-r--r--x11-libs/qtscriptgenerator/files/gcc4.4.patch12
-rw-r--r--x11-libs/qtscriptgenerator/qtscriptgenerator-9999.ebuild76
2 files changed, 88 insertions, 0 deletions
diff --git a/x11-libs/qtscriptgenerator/files/gcc4.4.patch b/x11-libs/qtscriptgenerator/files/gcc4.4.patch
new file mode 100644
index 0000000..3e464da
--- /dev/null
+++ b/x11-libs/qtscriptgenerator/files/gcc4.4.patch
@@ -0,0 +1,12 @@
+diff --git a/generator/parser/rpp/pp-internal.h b/generator/parser/rpp/pp-internal.h
+index bb1abde..0326faf 100644
+--- a/generator/parser/rpp/pp-internal.h
++++ b/generator/parser/rpp/pp-internal.h
+@@ -16,6 +16,7 @@
+ #define PP_INTERNAL_H
+
+ #include <algorithm>
++#include <cstdio>
+
+ namespace rpp {
+
diff --git a/x11-libs/qtscriptgenerator/qtscriptgenerator-9999.ebuild b/x11-libs/qtscriptgenerator/qtscriptgenerator-9999.ebuild
new file mode 100644
index 0000000..99adde4
--- /dev/null
+++ b/x11-libs/qtscriptgenerator/qtscriptgenerator-9999.ebuild
@@ -0,0 +1,76 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="2"
+
+inherit multilib git qt4
+
+DESCRIPTION="Tool for generating Qt bindings for Qt Script"
+HOMEPAGE="http://code.google.com/p/qtscriptgenerator/"
+EGIT_REPO_URI="git://labs.trolltech.com/qtscriptgenerator"
+
+LICENSE="GPL-2"
+KEYWORDS=""
+SLOT="0"
+IUSE="debug"
+
+DEPEND="
+ x11-libs/qt-dbus:4
+ x11-libs/qt-gui:4
+ x11-libs/qt-opengl:4
+ || (
+ x11-libs/qt-phonon:4
+ media-sound/phonon
+ )
+ x11-libs/qt-script:4
+ x11-libs/qt-sql:4
+ x11-libs/qt-svg:4
+ x11-libs/qt-xmlpatterns:4
+"
+RDEPEND="${DEPEND}"
+
+PLUGINS="core gui network opengl sql svg uitools webkit xml xmlpatterns"
+
+src_unpack() {
+ git_src_unpack
+ cd ${S}
+ epatch ${FILESDIR}/gcc4.4.patch
+}
+
+pkg_setup(){
+ QTDIR="/usr/include/qt4"
+ QTLIBDIR="/usr/$(get_libdir)/qt4/"
+}
+src_prepare() {
+ # remove phonon
+ sed -i \
+ -e "/typesystem_phonon.xml/d" \
+ generator/generator.qrc || die "sed failed"
+ sed -i \
+ -e "/qtscript_phonon/d" \
+ qtbindings/qtbindings.pro || die "sed failed"
+ git_src_prepare
+ qt4_src_prepare
+}
+
+src_configure() {
+ cd "${S}"/generator
+ eqmake4 generator.pro
+ cd "${S}"/qtbindings
+ eqmake4 qtbindings.pro
+}
+
+src_compile() {
+ cd "${S}"/generator
+ emake || die "emake generator failed"
+ ./generator --include-paths="/usr/include/qt4/" || die "running generator failed"
+ cd "${S}"/qtbindings
+ emake || die "make qtbindings failed"
+}
+
+src_install() {
+ insinto "${QTLIBDIR}"/plugins/script/
+ insopts -m0755
+ doins -r "${S}"/plugins/script/*.so || die "doins failed"
+}