diff options
author | Alistair Bush <ali_bush@gentoo.org> | 2009-07-22 07:29:15 +0000 |
---|---|---|
committer | Alistair Bush <ali_bush@gentoo.org> | 2009-07-22 07:29:15 +0000 |
commit | 71f36735520068dba6100605b949e60c677ff5c6 (patch) | |
tree | 3c179693cbfa4e1a891886ecbf9ae4b346805cef /dev-java/qtjambi | |
parent | Version bump. (diff) | |
download | historical-71f36735520068dba6100605b949e60c677ff5c6.tar.gz historical-71f36735520068dba6100605b949e60c677ff5c6.tar.bz2 historical-71f36735520068dba6100605b949e60c677ff5c6.zip |
Version bump from qtedge.
Package-Manager: portage-2.1.6.13/cvs/Linux x86_64
Diffstat (limited to 'dev-java/qtjambi')
-rw-r--r-- | dev-java/qtjambi/ChangeLog | 17 | ||||
-rw-r--r-- | dev-java/qtjambi/Manifest | 17 | ||||
-rw-r--r-- | dev-java/qtjambi/files/configuration-4.5.0_p1.patch | 107 | ||||
-rw-r--r-- | dev-java/qtjambi/files/gcc4.4-4.5.0_p1.patch | 35 | ||||
-rw-r--r-- | dev-java/qtjambi/files/generator-4.5.0_p1.patch | 29 | ||||
-rw-r--r-- | dev-java/qtjambi/qtjambi-4.5.0_p1.ebuild | 164 |
6 files changed, 357 insertions, 12 deletions
diff --git a/dev-java/qtjambi/ChangeLog b/dev-java/qtjambi/ChangeLog index 9b5b04c10071..2be0ff4bbcc5 100644 --- a/dev-java/qtjambi/ChangeLog +++ b/dev-java/qtjambi/ChangeLog @@ -1,6 +1,21 @@ # ChangeLog for dev-java/qtjambi # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-java/qtjambi/ChangeLog,v 1.19 2009/03/07 14:32:47 betelgeuse Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-java/qtjambi/ChangeLog,v 1.20 2009/07/22 07:29:15 ali_bush Exp $ + + 19 Jul 2009; Dominik Kapusta <d@ayoy.net> qtjambi-4.5.0_p1.ebuild, + +files/gcc4.4-4.5.0_p1.patch, +metadata.xml: + Added patch allowing for compilation with gcc-4.4 (bug #278247) plus + restored + metadata.xml. + +*qtjambi-4.5.0_p1 (15 May 2009) + + 15 May 2009; Davide Pesavento <davidepesa@gmail.com> + +qtjambi-4.5.0_p1.ebuild, +files/configuration-4.5.0_p1.patch, + +files/generator-4.5.0_p1.patch, +metadata.xml: + Version bump (bug #260774). Greatly improved ebuild, mostly rewritten by + me. Also incorporated some nice additions by Kyle Cavin + <kyle.cavin@gmail.com>. 07 Mar 2009; Petteri Räty <betelgeuse@gentoo.org> -qtjambi-4.3.3_p1.ebuild: diff --git a/dev-java/qtjambi/Manifest b/dev-java/qtjambi/Manifest index 17f6110f49e1..d79d4c93bc20 100644 --- a/dev-java/qtjambi/Manifest +++ b/dev-java/qtjambi/Manifest @@ -1,21 +1,16 @@ ------BEGIN PGP SIGNED MESSAGE----- -Hash: SHA1 - AUX configuration-4.4.3.patch 4752 RMD160 51c1e090ac73794444767ce2bb0a873aca966da1 SHA1 5b82fa9d8e1a4837f1387cb4a2670469e38e6709 SHA256 c04b2e5e493448c0859096bba335bcacd164f4c2257bf6014e3902c9dce7e9c4 +AUX configuration-4.5.0_p1.patch 3975 RMD160 4e3e32f4a9c02c977b3fe7416cb8e92ea48289dd SHA1 ab483d3122a5f98d10b321511de6794bd57f5885 SHA256 6fff370711c319a6e070569405172a27af039f1dcdd064d37bbfaf3261e5a0a5 +AUX gcc4.4-4.5.0_p1.patch 1108 RMD160 b0b54f12d32fcc47a4c8846ad2183dcfd0efa3fd SHA1 4c834eb9795fb1e09bd8fe349cc05db4d4caa900 SHA256 eb6669bc0937a3147a4089c9de376b4fc783ff093340453d461fbf08216b0bfe AUX generator-4.3.3.patch 489 RMD160 a6b576b6198ca5623a55ee36c93cb6b913bc92ef SHA1 abc82c760d76b2f9632f1a5734ecde59f066632a SHA256 e73eae66273c052ab19fb1b475c166d84533451788d2e248b88d6aa87e244ad9 AUX generator-4.4.3.patch 435 RMD160 e04e68ec33a0984811a5038d1bf039739d27e7a0 SHA1 36d473e5a85ea36290aa73bfdac40e791fc3a4b3 SHA256 66b7eb929423a1b2d89d96ca1323c8742b38e4667633211fb0ed5d272273077d +AUX generator-4.5.0_p1.patch 1352 RMD160 cdec9732e2a7d5421451b8e7e3e60de1c195fdee SHA1 9bfdca02dc220508ebe7255f8aff9780c99ed824 SHA256 80adfa473b386bcec10b861ba76759b3554167e3a81108b5e8d2d5ffc04d1e57 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-src-gpl-4.4.3_01.tar.gz 4909835 RMD160 2d5b014e5fa3e012d84b2b2557b3332135ff11d1 SHA1 58c5b90eb16c82ff80626ee30d0fe0405cca6e71 SHA256 4a938ab1fb75a119ad61fa6d5a5bee813a0d95b9b93cf1a3383616c3a44f4531 +DIST qtjambi-src-lgpl-4.5.0_01.tar.gz 4949615 RMD160 0590b536a9c7dd680e8730aa512c7935e07bbe46 SHA1 f1e6aa77f5b151fffe4d6d7a1ca468fa01c339f9 SHA256 2e136852e4314fbb1b64e08ad6f173bdf5ebdbdb62cb96de518b0a4e6a7dba2e EBUILD qtjambi-4.4.3.ebuild 4281 RMD160 c81b515da1d70ed75a79ed92c295614af5760da2 SHA1 7257bedc82b374c0b7ae623ccd0f68fd8f13b662 SHA256 d44387e629441920add6bf6d105ad5582014f8ca0cceb419c717d3e71b86907c -MISC ChangeLog 3255 RMD160 c91e3db155c0aaf1ad83b002cedf8118f378bfc5 SHA1 dd8759123054b4c7ac62d914ab08b987f425db8a SHA256 2cc3d43951caf5cd118f68347b865ce521de977ec081e20e9cc165069ac2fbac +EBUILD qtjambi-4.5.0_p1.ebuild 4955 RMD160 8ae814394e8ea07ec25ef6d139e445697996370c SHA1 ae675cf84e31863f1226f4fc2fff458d4ba26f7a SHA256 147dd845d4317a587b55c04657d7acd596096726bd3d8d584f45ba3b32a483cd +MISC ChangeLog 3831 RMD160 88bc795122e5ebe153b0c7c9a5dda39e07e20d69 SHA1 ea9094786081df4a4a133f3640887b31651ce7c6 SHA256 2fb0591a111fa0a22126268f85fd85a7e36f7f68292192bf96bb2f44885f79b4 MISC metadata.xml 374 RMD160 554c518b96dd5681f778395c1888891649e6ed55 SHA1 ae068aac6ddef644ebcd32899ec79e6bcc879282 SHA256 5e303995da64782af3b8e13149e0d4ba849fdd84c4967ac4a429b12e5a9ac50f ------BEGIN PGP SIGNATURE----- -Version: GnuPG v2.0.10 (GNU/Linux) - -iEYEARECAAYFAkmyheoACgkQcxLzpIGCsLQhBgCfevIaYYrNFXzIIoQsoGU6t/gN -L7EAn0TIbq561TI0a3MUKxxarmkrvy3c -=R7+d ------END PGP SIGNATURE----- diff --git a/dev-java/qtjambi/files/configuration-4.5.0_p1.patch b/dev-java/qtjambi/files/configuration-4.5.0_p1.patch new file mode 100644 index 000000000000..134c4b683d74 --- /dev/null +++ b/dev-java/qtjambi/files/configuration-4.5.0_p1.patch @@ -0,0 +1,107 @@ +diff -Naur qtjambi-src-preview-4.5.0_01~orig/build.xml qtjambi-src-preview-4.5.0_01/build.xml +--- qtjambi-src-preview-4.5.0_01~orig/build.xml 2009-05-01 14:37:12.000000000 +0200 ++++ qtjambi-src-preview-4.5.0_01/build.xml 2009-05-01 14:40:17.000000000 +0200 +@@ -293,8 +293,7 @@ + </target> + + <target name="library.designer.bundle" +- depends="library.designer.compile" +- unless="qtjambi.library.cppfiles.uptodate"> ++ depends="library.designer.compile"> + <jar destfile="${outputDir}/qtjambi-designer-${qtjambi.version}.jar" + basedir="${outputDir}"> + <include name="com/trolltech/tools/designer/*"/> +@@ -593,7 +592,9 @@ + <target name="init" + depends="init.ant, init.taskdef" + description="Initializes the Qt Jambi build environment." > +- <qtjambi-initialize verbose="true" configuration="${qtjambi.config}" /> ++ <qtjambi-initialize verbose="true" configuration="${qtjambi.config}" ++ opengl="${gentoo.opengl}" phonon="${gentoo.phonon}" ++ webkit="${gentoo.webkit}" xmlpatterns="${gentoo.xmlpatterns}"/> + </target> + + <target name="generator" +diff -Naur qtjambi-src-preview-4.5.0_01~orig/com/trolltech/tools/ant/InitializeTask.java qtjambi-src-preview-4.5.0_01/com/trolltech/tools/ant/InitializeTask.java +--- qtjambi-src-preview-4.5.0_01~orig/com/trolltech/tools/ant/InitializeTask.java 2009-05-01 14:37:11.000000000 +0200 ++++ qtjambi-src-preview-4.5.0_01/com/trolltech/tools/ant/InitializeTask.java 2009-05-01 14:44:57.000000000 +0200 +@@ -105,6 +105,22 @@ + return configuration; + } + ++ public void setOpengl(String opengl) { ++ this.opengl = opengl; ++ } ++ ++ public void setPhonon(String phonon) { ++ this.phonon = phonon; ++ } ++ ++ public void setWebkit(String webkit) { ++ this.webkit = webkit; ++ } ++ ++ public void setXmlpatterns(String xmlpatterns) { ++ this.xmlpatterns = xmlpatterns; ++ } ++ + public void execute() throws BuildException { + props = PropertyHelper.getPropertyHelper(getProject()); + props.setNewProperty(null, OSNAME, decideOSName()); +@@ -301,7 +317,7 @@ + } + + private String decideLibSubDir() { +- libSubDir = OSInfo.os() == OSInfo.OS.Windows ? "bin" : "lib"; ++ libSubDir = ""; + if (verbose) System.out.println("qtjambi.libsubdir: " + libSubDir); + return libSubDir; + } +@@ -330,8 +346,6 @@ + StringBuilder path = new StringBuilder(); + path.append(props.getProperty(null, QTDIR)); + path.append("/"); +- path.append(props.getProperty(null, LIBSUBDIR)); +- path.append("/"); + path.append(LibraryEntry.formatQtName(name, debug, version)); + return new File(path.toString()).exists(); + } +@@ -353,25 +367,25 @@ + } + + private String decidePhonon() { +- String result = String.valueOf(doesQtLibExist("phonon", 4)); ++ String result = phonon; + if (verbose) System.out.println(PHONON + ": " + result); + return result; + } + + private String decideWebkit() { +- String result = String.valueOf(doesQtLibExist("QtWebKit", 4)); ++ String result = webkit; + if (verbose) System.out.println(WEBKIT + ": " + result); + return result; + } + + private String decideXMLPatterns() { +- String result = String.valueOf(doesQtLibExist("QtXmlPatterns", 4)); ++ String result = xmlpatterns; + if (verbose) System.out.println(XMLPATTERNS + ": " + result); + return result; + } + + private String decideOpenGL() { +- String result = String.valueOf(doesQtLibExist("QtOpenGL", 4)); ++ String result = opengl; + if (verbose) System.out.println(OPENGL + ": " + result); + return result; + } +@@ -385,4 +399,8 @@ + private String qmakespec; + private String qtdir; + private String libSubDir; ++ private String opengl; ++ private String phonon; ++ private String webkit; ++ private String xmlpatterns; + } diff --git a/dev-java/qtjambi/files/gcc4.4-4.5.0_p1.patch b/dev-java/qtjambi/files/gcc4.4-4.5.0_p1.patch new file mode 100644 index 000000000000..564ae718ac6e --- /dev/null +++ b/dev-java/qtjambi/files/gcc4.4-4.5.0_p1.patch @@ -0,0 +1,35 @@ +--- qtjambi-src-lgpl-4.5.0_01.orig/juic/javautils.cpp 2009-07-19 19:17:42.000000000 +0200 ++++ qtjambi-src-lgpl-4.5.0_01/juic/javautils.cpp 2009-07-19 19:10:17.000000000 +0200 +@@ -43,6 +43,8 @@ + #include "javautils.h" + #include <QtCore/QHash> + ++#include <cstdio> ++ + QString javaFixString(const QString &str) + { + const ushort *chars = str.utf16(); +--- qtjambi-src-lgpl-4.5.0_01.orig/generator/parser/rpp/pp-internal.h 2009-07-19 19:17:42.000000000 +0200 ++++ qtjambi-src-lgpl-4.5.0_01/generator/parser/rpp/pp-internal.h 2009-07-19 19:10:17.000000000 +0200 +@@ -46,6 +46,8 @@ + + #include <algorithm> + ++#include <cstdio> ++ + namespace rpp { + + namespace _PP_internal +--- qtjambi-src-lgpl-4.5.0_01.orig/qtjambi/qtjambitypemanager.cpp 2009-07-19 19:17:42.000000000 +0200 ++++ qtjambi-src-lgpl-4.5.0_01/qtjambi/qtjambitypemanager.cpp 2009-07-19 19:10:18.000000000 +0200 +@@ -637,8 +637,8 @@ + jvalue returned; + returned.l = 0; + +- char *methodName; +- char *signature; ++ const char *methodName; ++ const char *signature; + switch (typeId) { + case Integer: + methodName = "intValue"; diff --git a/dev-java/qtjambi/files/generator-4.5.0_p1.patch b/dev-java/qtjambi/files/generator-4.5.0_p1.patch new file mode 100644 index 000000000000..fd7a4a4c3de7 --- /dev/null +++ b/dev-java/qtjambi/files/generator-4.5.0_p1.patch @@ -0,0 +1,29 @@ +diff -Naur qtjambi-src-preview-4.5.0_01.orig/generator/main.h qtjambi-src-preview-4.5.0_01/generator/main.h +--- qtjambi-src-preview-4.5.0_01.orig/generator/main.h 2009-02-10 12:44:47.000000000 +0100 ++++ qtjambi-src-preview-4.5.0_01/generator/main.h 2009-02-25 22:57:37.000000000 +0100 +@@ -68,18 +68,13 @@ + includes += commandLineIncludes.split(path_splitter); + + // Include Qt +- QString qtdir = getenv ("QTDIR"); +- if (qtdir.isEmpty()) { +- qWarning("QTDIR environment variable not set. This may cause problems with finding the necessary include files."); +- } else { +- qtdir += "/include"; +- includes << (qtdir + "/QtXml"); +- includes << (qtdir + "/QtNetwork"); +- includes << (qtdir + "/QtCore"); +- includes << (qtdir + "/QtGui"); +- includes << (qtdir + "/QtOpenGL"); +- includes << qtdir; +- } ++ QString qtdir = "/usr/include/qt4"; ++ includes << (qtdir + "/QtXml"); ++ includes << (qtdir + "/QtNetwork"); ++ includes << (qtdir + "/QtCore"); ++ includes << (qtdir + "/QtGui"); ++ includes << (qtdir + "/QtOpenGL"); ++ includes << qtdir; + + foreach (QString include, includes) + preprocess.push_include_path(QDir::convertSeparators(include).toStdString()); diff --git a/dev-java/qtjambi/qtjambi-4.5.0_p1.ebuild b/dev-java/qtjambi/qtjambi-4.5.0_p1.ebuild new file mode 100644 index 000000000000..eefde0023385 --- /dev/null +++ b/dev-java/qtjambi/qtjambi-4.5.0_p1.ebuild @@ -0,0 +1,164 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/qtjambi/qtjambi-4.5.0_p1.ebuild,v 1.1 2009/07/22 07:29:15 ali_bush Exp $ + +EAPI="2" + +JAVA_PKG_IUSE="doc source" +WANT_ANT_TASKS="ant-trax" + +inherit eutils qt4 java-pkg-2 java-ant-2 toolchain-funcs + +QTVER="${PV%%_p*}" +MY_PV="${PV/p/0}" +MY_P="${PN}-src-lgpl-${MY_PV}" + +DESCRIPTION="QtJambi is a set of Java bindings and utilities for the Qt C++ toolkit." +HOMEPAGE="http://www.qtsoftware.com/" +SRC_URI="http://get.qtsoftware.com/${PN}/source/${MY_P}.tar.gz" + +LICENSE="GPL-2" +SLOT="4" +KEYWORDS="~amd64 ~x86" +IUSE="debug examples opengl phonon webkit xmlpatterns" + +COMMON_DEPS=">=x11-libs/qt-gui-${QTVER}:${SLOT} + >=x11-libs/qt-sql-${QTVER}:${SLOT} + >=x11-libs/qt-svg-${QTVER}:${SLOT} + opengl? ( >=x11-libs/qt-opengl-${QTVER}:${SLOT} ) + phonon? ( >=x11-libs/qt-phonon-${QTVER}:${SLOT} ) + webkit? ( >=x11-libs/qt-webkit-${QTVER}:${SLOT} ) + xmlpatterns? ( >=x11-libs/qt-xmlpatterns-${QTVER}:${SLOT} )" + +DEPEND="${COMMON_DEPS} + >=virtual/jdk-1.6" + +RDEPEND="${COMMON_DEPS} + >=virtual/jre-1.6" + +S="${WORKDIR}/${MY_P}" + +src_prepare() { + epatch "${FILESDIR}/generator-${PV}.patch" + epatch "${FILESDIR}/configuration-${PV}.patch" + + if [[ $(gcc-version) == "4.4" ]] ; then + epatch "${FILESDIR}/gcc4.4-${PV}.patch" + fi + + # Respect MAKEOPTS + sed -i -e "/String arguments =/s|=.*|=\" ${MAKEOPTS}\";|" \ + com/trolltech/tools/ant/MakeTask.java || die + + java-ant_rewrite-classpath +} + +qtjambi_use() { + echo "-Dgentoo.${2:-$1}=$(use $1 && echo true || echo false)" +} + +qt_config_use() { + echo "QT_CONFIG$(use $1 && echo '+' || echo '-')=$1" +} + +src_compile() { + local myconf="-Dqtjambi.config=$(use debug && echo debug || echo release) + -Dlibrary.designer=true + $(qtjambi_use opengl) + $(qtjambi_use phonon) + $(qtjambi_use webkit) + $(qtjambi_use xmlpatterns)" + export QTDIR="/usr/$(get_libdir)/qt4" + + einfo "Initializing Qt Jambi build environment" + eant -Dgentoo.classpath="$(java-pkg_getjar --build-only ant-core ant.jar)" \ + ${myconf} init + + einfo "Merging XML files used by the Qt Jambi generator" + eant ${myconf} generator.xmlmerge + + # Use eqmake4 instead of generator.qmake ant target + eqmake4 generator/generator.pro -o generator/Makefile + + einfo "Building and running the generator" + eant ${myconf} generator.run # implies generator.compile + + # Use eqmake4 instead of library.native.qmake ant target + eqmake4 java.pro -recursive \ + $(qt_config_use opengl) \ + $(qt_config_use phonon) \ + $(qt_config_use webkit) \ + $(qt_config_use xmlpatterns) + + einfo "Building the native library" + eant ${myconf} library.native.compile + + einfo "Building the Java library" + eant ${myconf} library.java + + einfo "Building the Designer library" + eant ${myconf} library.designer + + if use examples; then + einfo "Building examples" + eant ${myconf} examples + fi + + # Build API documentation + if use doc; then + einfo "Generating Javadoc" + javadoc -J-Xmx256m -d javadoc -subpackages com || die + fi + + # Generate start script for jambi-designer + cat > bin/jambi-designer <<-EOF + #!/bin/sh + export LD_LIBRARY_PATH="/usr/$(get_libdir)/qt4:/usr/$(get_libdir)/${PN}-${SLOT}:\${LD_LIBRARY_PATH}" + export CLASSPATH="/usr/share/${PN}-${SLOT}/lib/${PN}.jar:/usr/share/${PN}-${SLOT}/lib/${PN}-designer.jar:\${CLASSPATH}" + export QT_PLUGIN_PATH="/usr/$(get_libdir)/qt4/plugins" + exec /usr/bin/designer "\$@" + EOF +} + +src_install() { + dobin "${S}"/bin/* || die + newbin "${S}"/generator/generator jambi-generator || die + + einfo "Installing jars" + java-pkg_newjar qtjambi-${MY_PV}.jar + java-pkg_newjar qtjambi-designer-${MY_PV}.jar ${PN}-designer.jar + java-pkg_dojar ant-qtjambi.jar + + einfo "Installing native libraries" + # `java-pkg_doso "${S}"/lib/*` does not work (bug #251500) + java-pkg_doso "${S}"/lib/*.so.1.0.0 "${S}"/lib/*.so.1.0 "${S}"/lib/*.so.1 "${S}"/lib/*.so + + einfo "Installing designer plugins" + exeinto /usr/$(get_libdir)/qt4/plugins/${PN} + doexe plugins/designer/*.so || die + # Designer needs these libraries in both directories + dosym /usr/$(get_libdir)/qt4/plugins/${PN}/libJambiCustomWidget.so \ + /usr/$(get_libdir)/qt4/plugins/designer/libJambiCustomWidget.so + dosym /usr/$(get_libdir)/qt4/plugins/${PN}/libJambiLanguage.so \ + /usr/$(get_libdir)/qt4/plugins/designer/libJambiLanguage.so + + if use doc; then + einfo "Installing documentation" + dohtml "${S}"/readme.html + java-pkg_dojavadoc "${S}"/javadoc + fi + + if use examples; then + einfo "Installing examples" + + # Get rid of class files before installing + find "${S}"/com/trolltech/examples -name '*.class' -delete || die + + java-pkg_newjar qtjambi-examples-${MY_PV}.jar ${PN}-examples.jar + java-pkg_doexamples "${S}"/com/trolltech/examples + java-pkg_dolauncher jambi-examples --main com.trolltech.launcher.Launcher \ + --java_args "-Djava.library.path=/usr/$(get_libdir)/qt4:/usr/$(get_libdir)/${PN}-${SLOT}" + fi + + use source && java-pkg_dosrc "${S}"/com +} |