summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlistair Bush <ali_bush@gentoo.org>2008-12-24 04:48:53 +0000
committerAlistair Bush <ali_bush@gentoo.org>2008-12-24 04:48:53 +0000
commitbb8cbe3061e88949394d8162fbdcd786467400d8 (patch)
treec3b12a3e731815d7f0fc6404be2aaf0dccd0335c /dev-java
parentPatch version to build and work with gcc 4.3 wrt to bugs #198121 and bug #251... (diff)
downloadhistorical-bb8cbe3061e88949394d8162fbdcd786467400d8.tar.gz
historical-bb8cbe3061e88949394d8162fbdcd786467400d8.tar.bz2
historical-bb8cbe3061e88949394d8162fbdcd786467400d8.zip
Version Bump qtjambi. Thanks to allthe good work done by Fabian Koster <koesterreich@gmx.net>.
Package-Manager: portage-2.1.6.2/cvs/Linux 2.6.27-gentoo-r4 x86_64
Diffstat (limited to 'dev-java')
-rw-r--r--dev-java/qtjambi/ChangeLog9
-rw-r--r--dev-java/qtjambi/Manifest16
-rw-r--r--dev-java/qtjambi/metadata.xml8
-rw-r--r--dev-java/qtjambi/qtjambi-4.4.3.ebuild148
4 files changed, 167 insertions, 14 deletions
diff --git a/dev-java/qtjambi/ChangeLog b/dev-java/qtjambi/ChangeLog
index be6137308f05..d17cdec3e5ea 100644
--- a/dev-java/qtjambi/ChangeLog
+++ b/dev-java/qtjambi/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for dev-java/qtjambi
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-java/qtjambi/ChangeLog,v 1.14 2008/05/21 16:48:00 ingmar Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-java/qtjambi/ChangeLog,v 1.15 2008/12/24 04:48:53 ali_bush Exp $
+
+*qtjambi-4.4.3 (24 Dec 2008)
+
+ 24 Dec 2008; Alistair Bush <ali_bush@gentoo.org> metadata.xml,
+ +qtjambi-4.4.3.ebuild:
+ Version Bump qtjambi. Thanks to all the good work done by Fabian Koster
+ <koesterreich@gmx.net>.
21 May 2008; Ingmar Vanhassel <ingmar@gentoo.org>
-files/generator-4.3.2.patch, -qtjambi-4.3.2_p1.ebuild:
diff --git a/dev-java/qtjambi/Manifest b/dev-java/qtjambi/Manifest
index bbcd5ff3ea24..9cc702972db9 100644
--- a/dev-java/qtjambi/Manifest
+++ b/dev-java/qtjambi/Manifest
@@ -1,19 +1,11 @@
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
-
AUX generator-4.3.3.patch 489 RMD160 a6b576b6198ca5623a55ee36c93cb6b913bc92ef SHA1 abc82c760d76b2f9632f1a5734ecde59f066632a SHA256 e73eae66273c052ab19fb1b475c166d84533451788d2e248b88d6aa87e244ad9
AUX jambi.pri.diff 378 RMD160 21d23395801cd0c0818fd9dd1efb09e53f746877 SHA1 ecc1f8333a966a90b5023e84aa0f0b69aa74790c SHA256 67fdf9d6199906dfdd769b73e1ebf281109de892b3b1a377d70c7746249b3b46
AUX java_files_remove_accessibility.diff 977 RMD160 c3d7e199f41561d2d39a64143934fbde2cef38cc SHA1 a6b78e27d5c608a1d7eef6cfc943ecf9202c95ec SHA256 3e2cfb1d84c3d85f87d6bb9e585973d8a37c351d569ec081eeaf81e710146131
AUX java_files_remove_ssl.diff 449 RMD160 0cf00a60176830b698fbbba51fb4dace5029bf53 SHA1 654221169dce14e3304515a4590855c070d643a2 SHA256 1bcf75cc5d175d16c8f55950e958a8a9214a1e86bcb36430334ab361e0085c5c
AUX qtjambi_base.pri.diff 315 RMD160 3843aac6fe19d84f7b5f92040e73592fa477b79d SHA1 479a12fc5a1b932ee3c794086d5a3683502702b5 SHA256 04a90f77b9045309b187078163ee752f9f04298fba79751f0f129789964a5566
DIST qtjambi-gpl-src-4.3.3_01.tar.gz 3797578 RMD160 b94d3102035d8e6fa51188e4bcf5e4149ab2fbc8 SHA1 47240cbb7bc8998189a7a92aa15035cb1bd7545e SHA256 ada8f18f91b28079c7743fb3687571113a6682485855672340c8d82923348182
+DIST qtjambi-src-gpl-4.4.3_01.tar.gz 4909835 RMD160 2d5b014e5fa3e012d84b2b2557b3332135ff11d1 SHA1 58c5b90eb16c82ff80626ee30d0fe0405cca6e71 SHA256 4a938ab1fb75a119ad61fa6d5a5bee813a0d95b9b93cf1a3383616c3a44f4531
EBUILD qtjambi-4.3.3_p1.ebuild 3299 RMD160 dcc25a797662832512c12b7358829d992cab3067 SHA1 0f60252800d9864b2e106882350b2284fe1d89d6 SHA256 41210a96ef69a7d521ad66a4a3928756cee7d30e492ec8c05f84e7797a8e5889
-MISC ChangeLog 2434 RMD160 c61cde79c6ebb5b24b6e885f53283908f5fbce5c SHA1 c4f77f19b7df134bd67b7f89fa77f56ea42ca5fa SHA256 d5ee0219ac5b71c98d063a0399382819cd14fb5922b12d511a65ffebe33a68c2
-MISC metadata.xml 156 RMD160 d76590850d56864c8d99e6877ed15841b55ef1fc SHA1 e872bab086832a9db3f0fa9b1897c70577d3af21 SHA256 94c4f580c1a55f8a5e1a1dcdd6dedfea0b8bd78c1d7137c354938d73c49e4448
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v2.0.9 (GNU/Linux)
-
-iEYEARECAAYFAkg0UhYACgkQB18eXLOpYdkDBwCfalLc4HwODPwaRCpnixfcnxbw
-sgsAoIZBu2QEARU/VDm4j3eaxNE97FYA
-=9kk5
------END PGP SIGNATURE-----
+EBUILD qtjambi-4.4.3.ebuild 4273 RMD160 f51b3c42182ed4f30d4dd841fe5c5db3011fc25d SHA1 010835aa21fd445cbe69d7269dba1dc3d19558e0 SHA256 77c0a03c4ef3401401abb83682e3acdd80b8393ca985630b05507cbe388c0872
+MISC ChangeLog 2657 RMD160 1f1e1d0ca8c27fc66a3196c0a918c94b2e707506 SHA1 a7535f9208ff1eb38179ce2e006000ecfa2d8dc3 SHA256 f1ef764cf16ef160952e2573f43ecabfc81fa28c8ecdd105b6225387dfee3531
+MISC metadata.xml 374 RMD160 554c518b96dd5681f778395c1888891649e6ed55 SHA1 ae068aac6ddef644ebcd32899ec79e6bcc879282 SHA256 5e303995da64782af3b8e13149e0d4ba849fdd84c4967ac4a429b12e5a9ac50f
diff --git a/dev-java/qtjambi/metadata.xml b/dev-java/qtjambi/metadata.xml
index 01a5c2875e0d..e5d6f265cd54 100644
--- a/dev-java/qtjambi/metadata.xml
+++ b/dev-java/qtjambi/metadata.xml
@@ -1,5 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
-<herd>qt</herd>
+ <herd>qt</herd>
+ <herd>java</herd>
+ <use>
+ <flag name="phonon">Enable bindings to QT Phonon</flag>
+ <flag name="webkit">Enable bindings to QT Webkit</flag>
+ <flag name="xmlpatterns">Enable bindings to QT xmlpatterns</flag>
+ </use>
</pkgmetadata>
diff --git a/dev-java/qtjambi/qtjambi-4.4.3.ebuild b/dev-java/qtjambi/qtjambi-4.4.3.ebuild
new file mode 100644
index 000000000000..da7191df5fac
--- /dev/null
+++ b/dev-java/qtjambi/qtjambi-4.4.3.ebuild
@@ -0,0 +1,148 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/qtjambi/qtjambi-4.4.3.ebuild,v 1.1 2008/12/24 04:48:53 ali_bush Exp $
+
+JAVA_PKG_IUSE="doc source"
+
+inherit eutils java-pkg-2 java-ant-2
+
+QTVERSION=4.4.2
+PATCHRELEASE=01
+
+DESCRIPTION="QtJambi is a set of Java bindings and utilities for the Qt C++ toolkit."
+HOMEPAGE="http://www.trolltech.com/"
+
+MY_PV=${PV}_${PATCHRELEASE}
+
+SRC_URI="ftp://ftp.trolltech.no/qtjambi/source/qtjambi-src-gpl-${MY_PV}.tar.gz"
+S=${WORKDIR}/qtjambi-src-gpl-${MY_PV}
+
+LICENSE="GPL-2"
+SLOT="4"
+KEYWORDS="~amd64 ~x86"
+
+IUSE="debug sqlite opengl phonon webkit xmlpatterns examples"
+
+DEPEND="~x11-libs/qt-${QTVERSION}
+ >=virtual/jdk-1.5
+ dev-java/ant-trax
+ sqlite? ( dev-db/sqlite )
+ opengl? ( >=x11-libs/qt-opengl-${QTVERSION} )
+ phonon? ( >=x11-libs/qt-phonon-${QTVERSION} )
+ webkit? ( >=x11-libs/qt-webkit-${QTVERSION} )
+ xmlpatterns? ( >=x11-libs/qt-xmlpatterns-${QTVERSION} )"
+
+RDEPEND="~x11-libs/qt-${QTVERSION}
+ >=virtual/jre-1.5
+ sqlite? ( dev-db/sqlite )
+ opengl? ( >=x11-libs/qt-opengl-${QTVERSION} )
+ phonon? ( >=x11-libs/qt-phonon-${QTVERSION} )
+ webkit? ( >=x11-libs/qt-webkit-${QTVERSION} )
+ xmlpatterns? ( >=x11-libs/qt-xmlpatterns-${QTVERSION} )"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}/generator-${PV}.patch"
+ epatch "${FILESDIR}/configuration-${PV}.patch"
+ java-ant_rewrite-classpath
+}
+
+src_compile() {
+
+ cd "${S}"
+
+ # Set build configuration
+ local extraArgs="-Dgentoo.qtdir=/usr/$(get_libdir)/qt4"
+
+ use debug && extraArgs="${extraArgs} -Dqtjambi.config=debug"
+
+ if use sqlite ; then
+ extraArgs="${extraArgs} -Dgentoo.sqlite=true"
+ else
+ extraArgs="${extraArgs} -Dgentoo.sqlite=false"
+ fi
+
+ if use opengl ; then
+ extraArgs="${extraArgs} -Dgentoo.opengl=true"
+ else
+ extraArgs="${extraArgs} -Dgentoo.opengl=false"
+ fi
+
+ if use phonon ; then
+ extraArgs="${extraArgs} -Dgentoo.phonon=true"
+ else
+ extraArgs="${extraArgs} -Dgentoo.phonon=false"
+ fi
+
+ if use webkit ; then
+ extraArgs="${extraArgs} -Dgentoo.webkit=true"
+ else
+ extraArgs="${extraArgs} -Dgentoo.webkit=false"
+ fi
+
+ if use xmlpatterns ; then
+ extraArgs="${extraArgs} -Dgentoo.xmlpatterns=true"
+ else
+ extraArgs="${extraArgs} -Dgentoo.xmlpatterns=false"
+ fi
+
+ # Step 1, Build and run the Qt Jambi generator. The generator relies on QTDIR for include.
+ einfo "Building and running the Qt Jambi generator"
+ ANT_TASKS="ant-trax" QTDIR="/usr/include/qt4" eant -Dgentoo.classpath="$(java-pkg_getjar --build-only ant-core ant.jar)" ${extraArgs} generator
+
+ # Step 2, Build the native library
+ einfo "Building the native library"
+ eant ${extraArgs} library.native.qmake library.native.compile
+
+ # Step 3, Build the Java library
+ einfo "Building the Java library"
+ eant ${extraArgs} library.java
+
+ # Step 4, Build the Examples
+ use examples && einfo "Building Examples" && eant ${extraArgs} examples
+
+ # Step 5, Build API documentation
+ use doc && einfo "Generating Javadoc" && javadoc -J-Xmx128m -d javadoc -subpackages com
+
+ # Step 6, generate start script for jambi-designer
+ cat > bin/jambi-designer <<-EOF
+ #! /bin/sh
+ LD_LIBRARY_PATH=/usr/lib/qt4 CLASSPATH=/usr/share/qtjambi-4/lib/qtjambi.jar:\${CLASSPATH} /usr/bin/designer
+ EOF
+}
+
+src_install() {
+
+ # Install built jar
+ java-pkg_newjar qtjambi-${MY_PV}.jar
+
+ # Install examples jar
+ use examples && java-pkg_newjar qtjambi-examples-${MY_PV}.jar ${PN}-examples.jar
+
+ # Install designer plugins
+ insinto "/usr/$(get_libdir)/qt4/plugins/designer"
+ insopts -m0755
+ doins plugins/designer/*.so
+
+ # Install native library
+ #java-pkg_doso "${S}"/lib/* # does not work see #251500
+ java-pkg_doso "${S}"/lib/*.so.1.0.0 "${S}"/lib/*.so.1.0 "${S}"/lib/*.so.1 "${S}"/lib/*.so # works
+
+ # Install sources
+ use source && java-pkg_dosrc "${S}"/com
+
+ # Install javadoc
+ use doc && java-pkg_dojavadoc "${S}"/javadoc
+
+ # Install other documentation
+ use doc && dohtml "${S}"/readme.html
+
+ # Install examples
+ use examples && java-pkg_doexamples "${S}"/com/trolltech/examples
+
+ # Install launcher-scripts
+ dobin "${S}"/bin/*
+ use examples && java-pkg_dolauncher jambi --main com.trolltech.launcher.Launcher \
+ --java_args "-Djava.library.path=/usr/$(get_libdir)/qt4:/usr/$(get_libdir)/qtjambi-4"
+}