diff options
author | Caleb Tennis <caleb@gentoo.org> | 2007-08-09 20:17:28 +0000 |
---|---|---|
committer | Caleb Tennis <caleb@gentoo.org> | 2007-08-09 20:17:28 +0000 |
commit | 4a77fa268fb8f9458650ac4f3684594c12a3f33e (patch) | |
tree | fe4727df4c294fd4caff14d186b4870e70315379 /dev-java | |
parent | Stable on ppc64; bug #176297 (diff) | |
download | gentoo-2-4a77fa268fb8f9458650ac4f3684594c12a3f33e.tar.gz gentoo-2-4a77fa268fb8f9458650ac4f3684594c12a3f33e.tar.bz2 gentoo-2-4a77fa268fb8f9458650ac4f3684594c12a3f33e.zip |
Version bump
(Portage version: 2.1.2.7)
Diffstat (limited to 'dev-java')
-rw-r--r-- | dev-java/qtjambi/ChangeLog | 7 | ||||
-rw-r--r-- | dev-java/qtjambi/files/digest-qtjambi-4.3.1_p1 | 3 | ||||
-rw-r--r-- | dev-java/qtjambi/qtjambi-4.3.1_p1.ebuild | 106 |
3 files changed, 115 insertions, 1 deletions
diff --git a/dev-java/qtjambi/ChangeLog b/dev-java/qtjambi/ChangeLog index 125a10d6188b..bb6a752b2ffa 100644 --- a/dev-java/qtjambi/ChangeLog +++ b/dev-java/qtjambi/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for dev-java/qtjambi # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-java/qtjambi/ChangeLog,v 1.4 2007/06/18 12:01:21 caleb Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-java/qtjambi/ChangeLog,v 1.5 2007/08/09 20:17:27 caleb Exp $ + +*qtjambi-4.3.1_p1 (09 Aug 2007) + + 09 Aug 2007; Caleb Tennis <caleb@gentoo.org> +qtjambi-4.3.1_p1.ebuild: + Version bump *qtjambi-4.3.0_p1-r2 (18 Jun 2007) diff --git a/dev-java/qtjambi/files/digest-qtjambi-4.3.1_p1 b/dev-java/qtjambi/files/digest-qtjambi-4.3.1_p1 new file mode 100644 index 000000000000..d77eae597e4b --- /dev/null +++ b/dev-java/qtjambi/files/digest-qtjambi-4.3.1_p1 @@ -0,0 +1,3 @@ +MD5 b482d90f31d5270659e84f3ae4c2d71d qtjambi-gpl-src-4.3.1_01.tar.gz 3752087 +RMD160 fd1e1a99b787f9cd0a92f3e45148be701980d53c qtjambi-gpl-src-4.3.1_01.tar.gz 3752087 +SHA256 bef26d5d3b04e0eb6505bbd784854536c8b128306059945fe71359963bd6c844 qtjambi-gpl-src-4.3.1_01.tar.gz 3752087 diff --git a/dev-java/qtjambi/qtjambi-4.3.1_p1.ebuild b/dev-java/qtjambi/qtjambi-4.3.1_p1.ebuild new file mode 100644 index 000000000000..1be0e60eca06 --- /dev/null +++ b/dev-java/qtjambi/qtjambi-4.3.1_p1.ebuild @@ -0,0 +1,106 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/qtjambi/qtjambi-4.3.1_p1.ebuild,v 1.1 2007/08/09 20:17:27 caleb Exp $ + +inherit eutils java-pkg-2 + +QTVERSION=4.3.1 +PATCHRELEASE=01 + +DESCRIPTION="QtJambi is a set of Java bindings and utilities for the Qt C++ toolkit." +HOMEPAGE="http://www.trolltech.com/" + +MY_PV=${QTVERSION}_${PATCHRELEASE} + +SRC_URI="ftp://ftp.trolltech.com/pub/qtjambi/source/qtjambi-gpl-src-${MY_PV}.tar.gz" +S=${WORKDIR}/qtjambi-gpl-src-${MY_PV} + +LICENSE="GPL-2" +SLOT="4" +KEYWORDS="~x86" + +IUSE="" + +DEPEND="~x11-libs/qt-${QTVERSION} + >=virtual/jdk-1.5" + +RDEPEND="~x11-libs/qt-${QTVERSION} + >=virtual/jre-1.5" + +src_unpack() { + unpack ${A} + cd ${S} + epatch ${FILESDIR}/generator.patch + epatch ${FILESDIR}/qtjambi_base.pri.diff + epatch ${FILESDIR}/jambi.pri.diff + + # If Qt wasn't built with accessibility use flag, then we needto remove some files from + # the list. + if ! built_with_use =x11-libs/qt-4* accessibility; then + epatch ${FILESDIR}/java_files_remove_accessibility.diff + fi + if ! built_with_use =x11-libs/qt-4* ssl; then + epatch ${FILESDIR}/java_files_remove_ssl.diff + fi +} + +src_compile() { + + # Step 1, build the source generator + einfo "Building the source generator" + cd ${S}/generator + /usr/bin/qmake && make || die "Error building generator" + + # Step 2, run the generator + einfo "Running the generator. This may take a few minutes." + QTDIR=/usr/include/qt4 ./generator + + # Step 3, build the generated sources + export JAVADIR=$JDK_HOME + einfo "Building the generated sources." + cd ${S} && /usr/bin/qmake && make || die "Error building generated sources" + + # Step 4, generate Ui_.java files + einfo "Running juic" + cd ${S} && ./bin/juic -cp . + + # Step 5, compiling java files + einfo "Compiling java files" + mkdir -p ${S}/class + cd ${S} && ejavac -d class @java_files + + # Step 6, build the jar file + cd ${S}/class && jar cf ../qtjambi.jar com/trolltech/qt com/trolltech/tools + # copy built classes for demos and examples + cd ${S}/class && cp -r com/trolltech/demos com/trolltech/examples com/trolltech/launcher ../com/trolltech + cd ${S} && jar cf qtjambi-src.jar com + + # generate start scripts + jcp="/usr/share/qtjambi-4/lib" + cd ${S} && echo "#!/bin/sh" > bin/jambi-designer + cd ${S} && echo "LD_LIBRARY_PATH=/usr/lib/qt4 CLASSPATH=${jcp}/qtjambi.jar:${jcp}/qtjambi-src.jar:$CLASSPATH /usr/bin/designer" >> bin/jambi-designer + + cd ${S} && echo "#!/bin/sh" > bin/jambi + cd ${S} && echo "LD_LIBRARY_PATH=/usr/lib/qt4 java -cp ${jcp}/qtjambi.jar:${jcp}/qtjambi-src.jar com.trolltech.launcher.Launcher" >> bin/jambi +} + +src_install() { + # Install built jar + java-pkg_dojar qtjambi.jar + java-pkg_dojar qtjambi-src.jar + + # Install designer plugins + insinto /usr/$(get_libdir)/qt4/plugins/designer + insopts -m0755 + doins plugins/designer/*.so + + cp -dpPR ${S}/lib/* ${D}/usr/$(get_libdir)/qt4 + + # Install binaries + dobin bin/* + + einfo "eclipse - Project->Properties->Java Build Path->Libraries:" + einfo "library: /usr/share/qtjambi-4/lib/qtjambi.jar" + einfo "source (& demos): /usr/share/qtjambi-4/lib/qtjambi-src.jar" + einfo "native library location: /usr/$(get_libdir)/qt4/" +} |