summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaleb Tennis <caleb@gentoo.org>2007-06-07 16:35:40 +0000
committerCaleb Tennis <caleb@gentoo.org>2007-06-07 16:35:40 +0000
commitffec5908c0d3cb0b260efe58fb31a20defbd9c53 (patch)
tree62b8bac053585f7c94d61d554ef10c60aad2ba66 /dev-java/qtjambi
parentStable on ppc64; bug #181110 (diff)
downloadgentoo-2-ffec5908c0d3cb0b260efe58fb31a20defbd9c53.tar.gz
gentoo-2-ffec5908c0d3cb0b260efe58fb31a20defbd9c53.tar.bz2
gentoo-2-ffec5908c0d3cb0b260efe58fb31a20defbd9c53.zip
Initial ebuild
(Portage version: 2.1.2.7)
Diffstat (limited to 'dev-java/qtjambi')
-rw-r--r--dev-java/qtjambi/ChangeLog14
-rw-r--r--dev-java/qtjambi/Manifest48
-rw-r--r--dev-java/qtjambi/files/digest-qtjambi-4.3.0_p13
-rw-r--r--dev-java/qtjambi/files/generator.patch11
-rw-r--r--dev-java/qtjambi/files/jambi.pri.diff12
-rw-r--r--dev-java/qtjambi/files/jambipropertysheet.diff11
-rw-r--r--dev-java/qtjambi/files/java_files_remove_accessibility.diff20
-rw-r--r--dev-java/qtjambi/files/java_files_remove_ssl.diff10
-rw-r--r--dev-java/qtjambi/files/qdesigner_utils_p.h135
-rw-r--r--dev-java/qtjambi/files/qtjambi_base.pri.diff11
-rw-r--r--dev-java/qtjambi/files/shared_global_p.h58
-rw-r--r--dev-java/qtjambi/metadata.xml5
-rw-r--r--dev-java/qtjambi/qtjambi-4.3.0_p1.ebuild94
13 files changed, 432 insertions, 0 deletions
diff --git a/dev-java/qtjambi/ChangeLog b/dev-java/qtjambi/ChangeLog
new file mode 100644
index 000000000000..9a2238c7297c
--- /dev/null
+++ b/dev-java/qtjambi/ChangeLog
@@ -0,0 +1,14 @@
+# 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.1 2007/06/07 16:35:40 caleb Exp $
+
+*qtjambi-4.3.0_p1 (07 Jun 2007)
+
+ 07 Jun 2007; Caleb Tennis <caleb@gentoo.org> +files/generator.patch,
+ +files/jambi.pri.diff, +files/jambipropertysheet.diff,
+ +files/java_files_remove_accessibility.diff,
+ +files/java_files_remove_ssl.diff, +files/qdesigner_utils_p.h,
+ +files/qtjambi_base.pri.diff, +files/shared_global_p.h, +metadata.xml,
+ +qtjambi-4.3.0_p1.ebuild:
+ Initial ebuild
+
diff --git a/dev-java/qtjambi/Manifest b/dev-java/qtjambi/Manifest
new file mode 100644
index 000000000000..7d40d3caa0a2
--- /dev/null
+++ b/dev-java/qtjambi/Manifest
@@ -0,0 +1,48 @@
+AUX generator.patch 363 RMD160 55ab1e84a996a03a51ed22ed6ada300ae5229657 SHA1 d13a2b4d67882eed0a398ad156e789ff4c1393b6 SHA256 357ac7c4c533ae26587233c8e3518fb33b0a2b384506c3aa3b515dd936986749
+MD5 473a08a65c87a18c1f7bd040d26dcf84 files/generator.patch 363
+RMD160 55ab1e84a996a03a51ed22ed6ada300ae5229657 files/generator.patch 363
+SHA256 357ac7c4c533ae26587233c8e3518fb33b0a2b384506c3aa3b515dd936986749 files/generator.patch 363
+AUX jambi.pri.diff 378 RMD160 21d23395801cd0c0818fd9dd1efb09e53f746877 SHA1 ecc1f8333a966a90b5023e84aa0f0b69aa74790c SHA256 67fdf9d6199906dfdd769b73e1ebf281109de892b3b1a377d70c7746249b3b46
+MD5 b88a57370de233e86a620cea3d2f237c files/jambi.pri.diff 378
+RMD160 21d23395801cd0c0818fd9dd1efb09e53f746877 files/jambi.pri.diff 378
+SHA256 67fdf9d6199906dfdd769b73e1ebf281109de892b3b1a377d70c7746249b3b46 files/jambi.pri.diff 378
+AUX jambipropertysheet.diff 354 RMD160 ede1026483f63d4b238daa8fd1f6797579440398 SHA1 5d9ca638b57f16468826782e2dd0c393f6f66230 SHA256 d9125d5898fc65a16caf27fd73ea92fc2acc844797b1d05b145c63579ac36a97
+MD5 d76527fa45c91942f4e7a88a0f60a117 files/jambipropertysheet.diff 354
+RMD160 ede1026483f63d4b238daa8fd1f6797579440398 files/jambipropertysheet.diff 354
+SHA256 d9125d5898fc65a16caf27fd73ea92fc2acc844797b1d05b145c63579ac36a97 files/jambipropertysheet.diff 354
+AUX java_files_remove_accessibility.diff 977 RMD160 c3d7e199f41561d2d39a64143934fbde2cef38cc SHA1 a6b78e27d5c608a1d7eef6cfc943ecf9202c95ec SHA256 3e2cfb1d84c3d85f87d6bb9e585973d8a37c351d569ec081eeaf81e710146131
+MD5 ddce4fc5bffddae92d0c72a87fe71004 files/java_files_remove_accessibility.diff 977
+RMD160 c3d7e199f41561d2d39a64143934fbde2cef38cc files/java_files_remove_accessibility.diff 977
+SHA256 3e2cfb1d84c3d85f87d6bb9e585973d8a37c351d569ec081eeaf81e710146131 files/java_files_remove_accessibility.diff 977
+AUX java_files_remove_ssl.diff 449 RMD160 0cf00a60176830b698fbbba51fb4dace5029bf53 SHA1 654221169dce14e3304515a4590855c070d643a2 SHA256 1bcf75cc5d175d16c8f55950e958a8a9214a1e86bcb36430334ab361e0085c5c
+MD5 b870f1dea2bfbe20b84641e7dd64f239 files/java_files_remove_ssl.diff 449
+RMD160 0cf00a60176830b698fbbba51fb4dace5029bf53 files/java_files_remove_ssl.diff 449
+SHA256 1bcf75cc5d175d16c8f55950e958a8a9214a1e86bcb36430334ab361e0085c5c files/java_files_remove_ssl.diff 449
+AUX qdesigner_utils_p.h 3828 RMD160 2f23059119c40224a0fe6397eba2fe1249af671b SHA1 98394a6da7f62608dffd33b6663385a6eb57f0a1 SHA256 47e6520a62b854b25d7fddc2a48fd8a0e5b7adc8c602c19d6827e804f6c3611e
+MD5 b5f6a68c06fab1484fcc68f40f4e128a files/qdesigner_utils_p.h 3828
+RMD160 2f23059119c40224a0fe6397eba2fe1249af671b files/qdesigner_utils_p.h 3828
+SHA256 47e6520a62b854b25d7fddc2a48fd8a0e5b7adc8c602c19d6827e804f6c3611e files/qdesigner_utils_p.h 3828
+AUX qtjambi_base.pri.diff 315 RMD160 3843aac6fe19d84f7b5f92040e73592fa477b79d SHA1 479a12fc5a1b932ee3c794086d5a3683502702b5 SHA256 04a90f77b9045309b187078163ee752f9f04298fba79751f0f129789964a5566
+MD5 d8ea18503e5c73d6b3587034d8729b7e files/qtjambi_base.pri.diff 315
+RMD160 3843aac6fe19d84f7b5f92040e73592fa477b79d files/qtjambi_base.pri.diff 315
+SHA256 04a90f77b9045309b187078163ee752f9f04298fba79751f0f129789964a5566 files/qtjambi_base.pri.diff 315
+AUX shared_global_p.h 1848 RMD160 38ba966bb930d2ca65e1049e7580530f79e4dc97 SHA1 e7bd65701e1368172bdf5432083ccb3aaa309823 SHA256 bdbb728b1633dad6ead39c62d11c432395d4435434ced6558796f4f61fd2518d
+MD5 df02cb01b4ec84657cda5b0845e21b94 files/shared_global_p.h 1848
+RMD160 38ba966bb930d2ca65e1049e7580530f79e4dc97 files/shared_global_p.h 1848
+SHA256 bdbb728b1633dad6ead39c62d11c432395d4435434ced6558796f4f61fd2518d files/shared_global_p.h 1848
+DIST qtjambi-gpl-src-4.3.0_01.tar.gz 3371479 RMD160 bf9b0ed24abcb831228f4c8de4c7fffdb843255e SHA1 3c567e98734dda169c36739d9674e16a120683bc SHA256 dcbf214c96a39871868e43bef04b552f563359df400d4b05576b60ccb03e7dc3
+EBUILD qtjambi-4.3.0_p1.ebuild 2447 RMD160 c7b20597690fd5509743568194a752ed67ead4e8 SHA1 0bb4f5ee6a5c663261b4c735e8a3a0773746036a SHA256 4a576e4c093e4c4fd71eea0ef52c49609b5e96b617a2a0c5d545bd7b0d3721f1
+MD5 81ce3c9d73277ecd7e5410cb96733fad qtjambi-4.3.0_p1.ebuild 2447
+RMD160 c7b20597690fd5509743568194a752ed67ead4e8 qtjambi-4.3.0_p1.ebuild 2447
+SHA256 4a576e4c093e4c4fd71eea0ef52c49609b5e96b617a2a0c5d545bd7b0d3721f1 qtjambi-4.3.0_p1.ebuild 2447
+MISC ChangeLog 509 RMD160 1286f682851138332cf33334e9634aa025a50c6b SHA1 b329a5ff9048e407a0338564ffb74b12310d8f79 SHA256 5a4883e323118a632210e6c2e2f9b07509c885436282f953fbe716ae3d0bc07a
+MD5 a790328aac2dea436ac955773114559a ChangeLog 509
+RMD160 1286f682851138332cf33334e9634aa025a50c6b ChangeLog 509
+SHA256 5a4883e323118a632210e6c2e2f9b07509c885436282f953fbe716ae3d0bc07a ChangeLog 509
+MISC metadata.xml 156 RMD160 d76590850d56864c8d99e6877ed15841b55ef1fc SHA1 e872bab086832a9db3f0fa9b1897c70577d3af21 SHA256 94c4f580c1a55f8a5e1a1dcdd6dedfea0b8bd78c1d7137c354938d73c49e4448
+MD5 512150b47a904b0240101e319856aab1 metadata.xml 156
+RMD160 d76590850d56864c8d99e6877ed15841b55ef1fc metadata.xml 156
+SHA256 94c4f580c1a55f8a5e1a1dcdd6dedfea0b8bd78c1d7137c354938d73c49e4448 metadata.xml 156
+MD5 cd2e1c67282c8e16f0500760edb6ecb5 files/digest-qtjambi-4.3.0_p1 277
+RMD160 ee6e1f73e8412c6c1e099d46531d81032dd28c30 files/digest-qtjambi-4.3.0_p1 277
+SHA256 d196bb56d25f637ad7fe36ce905ac68b7c6970dfa576741a5c82ccb8a3d03941 files/digest-qtjambi-4.3.0_p1 277
diff --git a/dev-java/qtjambi/files/digest-qtjambi-4.3.0_p1 b/dev-java/qtjambi/files/digest-qtjambi-4.3.0_p1
new file mode 100644
index 000000000000..6811b8d10351
--- /dev/null
+++ b/dev-java/qtjambi/files/digest-qtjambi-4.3.0_p1
@@ -0,0 +1,3 @@
+MD5 513d69812c65bbcc8009e4d4825548d9 qtjambi-gpl-src-4.3.0_01.tar.gz 3371479
+RMD160 bf9b0ed24abcb831228f4c8de4c7fffdb843255e qtjambi-gpl-src-4.3.0_01.tar.gz 3371479
+SHA256 dcbf214c96a39871868e43bef04b552f563359df400d4b05576b60ccb03e7dc3 qtjambi-gpl-src-4.3.0_01.tar.gz 3371479
diff --git a/dev-java/qtjambi/files/generator.patch b/dev-java/qtjambi/files/generator.patch
new file mode 100644
index 000000000000..f2292fae95ee
--- /dev/null
+++ b/dev-java/qtjambi/files/generator.patch
@@ -0,0 +1,11 @@
+--- generator/main.h 2007-05-30 02:46:24.000000000 -0400
++++ generator/main.h 2007-06-07 08:54:54.000000000 -0400
+@@ -57,8 +57,6 @@
+ return false;
+ }
+
+- qtdir += "/include";
+-
+ QString currentDir = QDir::current().absolutePath();
+ QFileInfo sourceInfo(sourceFile);
+ QDir::setCurrent(sourceInfo.absolutePath());
diff --git a/dev-java/qtjambi/files/jambi.pri.diff b/dev-java/qtjambi/files/jambi.pri.diff
new file mode 100644
index 000000000000..39e6e930f46f
--- /dev/null
+++ b/dev-java/qtjambi/files/jambi.pri.diff
@@ -0,0 +1,12 @@
+--- designer-integration/pri/jambi.pri.orig 2007-06-07 11:20:45.000000000 -0400
++++ designer-integration/pri/jambi.pri 2007-06-07 11:20:54.000000000 -0400
+@@ -19,6 +19,9 @@
+ }
+ }
+
++CONFIG-=debug
++CONFIG+=release
++
+ contains(QT_CONFIG, release):contains(QT_CONFIG, debug) {
+ # Qt was configued with both debug and release libs
+ CONFIG += debug_and_release build_all
diff --git a/dev-java/qtjambi/files/jambipropertysheet.diff b/dev-java/qtjambi/files/jambipropertysheet.diff
new file mode 100644
index 000000000000..0747d2a6b1e7
--- /dev/null
+++ b/dev-java/qtjambi/files/jambipropertysheet.diff
@@ -0,0 +1,11 @@
+--- qtjambi_designer/jambipropertysheet.cpp.orig 2007-06-07 10:45:39.000000000 -0400
++++ qtjambi_designer/jambipropertysheet.cpp 2007-06-07 10:45:49.000000000 -0400
+@@ -27,7 +27,7 @@
+ #include "qtjambi_core.h"
+ #include "qtjambi_utils.h"
+
+-#include <QtDesigner/private/qdesigner_utils_p.h>
++#include <qdesigner_utils_p.h>
+
+ jclass class_NamedIntSet;
+
diff --git a/dev-java/qtjambi/files/java_files_remove_accessibility.diff b/dev-java/qtjambi/files/java_files_remove_accessibility.diff
new file mode 100644
index 000000000000..a2132e8f4c12
--- /dev/null
+++ b/dev-java/qtjambi/files/java_files_remove_accessibility.diff
@@ -0,0 +1,20 @@
+--- java_files.orig 2007-06-07 11:30:22.000000000 -0400
++++ java_files 2007-06-07 11:30:30.000000000 -0400
+@@ -186,17 +186,6 @@
+ ./com/trolltech/qt/gui/QAbstractTextDocumentLayout.java
+ ./com/trolltech/qt/gui/QAbstractTextDocumentLayout_PaintContext.java
+ ./com/trolltech/qt/gui/QAbstractTextDocumentLayout_Selection.java
+-./com/trolltech/qt/gui/QAccessible.java
+-./com/trolltech/qt/gui/QAccessible2Interface.java
+-./com/trolltech/qt/gui/QAccessibleBridge.java
+-./com/trolltech/qt/gui/QAccessibleEvent.java
+-./com/trolltech/qt/gui/QAccessibleInterface.java
+-./com/trolltech/qt/gui/QAccessibleInterfaceEx.java
+-./com/trolltech/qt/gui/QAccessibleObject.java
+-./com/trolltech/qt/gui/QAccessibleObjectEx.java
+-./com/trolltech/qt/gui/QAccessibleTableInterface.java
+-./com/trolltech/qt/gui/QAccessibleWidget.java
+-./com/trolltech/qt/gui/QAccessibleWidgetEx.java
+ ./com/trolltech/qt/gui/QAction.java
+ ./com/trolltech/qt/gui/QActionEvent.java
+ ./com/trolltech/qt/gui/QActionGroup.java
diff --git a/dev-java/qtjambi/files/java_files_remove_ssl.diff b/dev-java/qtjambi/files/java_files_remove_ssl.diff
new file mode 100644
index 000000000000..f8569b864734
--- /dev/null
+++ b/dev-java/qtjambi/files/java_files_remove_ssl.diff
@@ -0,0 +1,10 @@
+--- java_files.orig 2007-06-07 12:24:18.000000000 -0400
++++ java_files 2007-06-07 12:24:22.000000000 -0400
+@@ -498,7 +498,6 @@
+ ./com/trolltech/qt/network/QNetworkAddressEntry.java
+ ./com/trolltech/qt/network/QNetworkInterface.java
+ ./com/trolltech/qt/network/QNetworkProxy.java
+-./com/trolltech/qt/network/QSsl.java
+ ./com/trolltech/qt/network/QTcpServer.java
+ ./com/trolltech/qt/network/QTcpSocket.java
+ ./com/trolltech/qt/network/QUdpSocket.java
diff --git a/dev-java/qtjambi/files/qdesigner_utils_p.h b/dev-java/qtjambi/files/qdesigner_utils_p.h
new file mode 100644
index 000000000000..3ec27ee88313
--- /dev/null
+++ b/dev-java/qtjambi/files/qdesigner_utils_p.h
@@ -0,0 +1,135 @@
+/****************************************************************************
+**
+** Copyright (C) 1992-2007 Trolltech ASA. All rights reserved.
+**
+** This file is part of the Qt Designer of the Qt Toolkit.
+**
+** This file may be used under the terms of the GNU General Public
+** License version 2.0 as published by the Free Software Foundation
+** and appearing in the file LICENSE.GPL included in the packaging of
+** this file. Please review the following information to ensure GNU
+** General Public Licensing requirements will be met:
+** http://www.trolltech.com/products/qt/opensource.html
+**
+** If you are unsure which license is appropriate for your use, please
+** review the following information:
+** http://www.trolltech.com/products/qt/licensing.html or contact the
+** sales department at sales@trolltech.com.
+**
+** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
+** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
+**
+****************************************************************************/
+
+//
+// W A R N I N G
+// -------------
+//
+// This file is not part of the Qt API. It exists for the convenience
+// of Qt Designer. This header
+// file may change from version to version without notice, or even be removed.
+//
+// We mean it.
+//
+
+#ifndef QDESIGNER_UTILS_H
+#define QDESIGNER_UTILS_H
+
+#include "shared_global_p.h"
+
+#include <QtDesigner/QDesignerFormWindowInterface>
+
+#include <QtCore/QVariant>
+#include <QtCore/QMap>
+#include <QtGui/QMainWindow>
+
+class QIcon;
+class QPixmap;
+
+namespace qdesigner_internal {
+class ResourceMimeData;
+
+QDESIGNER_SHARED_EXPORT void designerWarning(const QString &message);
+
+class QDESIGNER_SHARED_EXPORT EnumType
+{
+public:
+ typedef QMap<QString, QVariant> ItemMap;
+
+ QString id() const;
+
+ QVariant value;
+ ItemMap items;
+ QStringList names;
+};
+
+
+class QDESIGNER_SHARED_EXPORT FlagType
+{
+public:
+ typedef QMap<QString, QVariant> ItemMap;
+
+ QStringList flags() const;
+ QString flagString() const;
+
+ QVariant value;
+ ItemMap items;
+};
+
+// Convenience to return a dropped icon, normalized to form directory
+QDESIGNER_SHARED_EXPORT QIcon resourceMimeDataToIcon(const ResourceMimeData &rmd, QDesignerFormWindowInterface *fw);
+// Convenience to return an dropped pixmap, normalized to form directory
+QDESIGNER_SHARED_EXPORT QPixmap resourceMimeDataToPixmap(const ResourceMimeData &rmd, QDesignerFormWindowInterface *fw);
+
+// Convenience to run UIC
+enum UIC_Mode { UIC_GenerateCode, UIC_ConvertV3 };
+QDESIGNER_SHARED_EXPORT bool runUIC(const QString &fileName, UIC_Mode mode, QByteArray& ba, QString &errorMessage);
+} // namespace qdesigner_internal
+
+Q_DECLARE_METATYPE(qdesigner_internal::EnumType)
+Q_DECLARE_METATYPE(qdesigner_internal::FlagType)
+
+namespace qdesigner_internal { namespace Utils {
+
+inline int valueOf(const QVariant &value, bool *ok = 0)
+{
+ if (qVariantCanConvert<EnumType>(value))
+ return qVariantValue<EnumType>(value).value.toInt(ok);
+ else if (qVariantCanConvert<FlagType>(value))
+ return qVariantValue<FlagType>(value).value.toInt(ok);
+
+ return value.toInt(ok);
+}
+
+inline bool isObjectAncestorOf(QObject *ancestor, QObject *child)
+{
+ QObject *obj = child;
+ while (obj != 0) {
+ if (obj == ancestor)
+ return true;
+ obj = obj->parent();
+ }
+ return false;
+}
+
+inline bool isCentralWidget(QDesignerFormWindowInterface *fw, QWidget *widget)
+{
+ if (! fw || ! widget)
+ return false;
+
+ if (widget == fw->mainContainer())
+ return true;
+
+ // ### generalize for other containers
+ if (QMainWindow *mw = qobject_cast<QMainWindow*>(fw->mainContainer())) {
+ return mw->centralWidget() == widget;
+ }
+
+ return false;
+}
+
+} // namespace Utils
+
+} // namespace qdesigner_internal
+
+#endif // QDESIGNER_UTILS_H
diff --git a/dev-java/qtjambi/files/qtjambi_base.pri.diff b/dev-java/qtjambi/files/qtjambi_base.pri.diff
new file mode 100644
index 000000000000..a6d197026cf6
--- /dev/null
+++ b/dev-java/qtjambi/files/qtjambi_base.pri.diff
@@ -0,0 +1,11 @@
+--- qtjambi/qtjambi_base.pri.orig 2007-06-07 10:12:14.000000000 -0400
++++ qtjambi/qtjambi_base.pri 2007-06-07 10:12:24.000000000 -0400
+@@ -10,6 +10,8 @@
+ DESTDIR = $$PWD/../lib
+ DLLDESTDIR = $$PWD/../bin
+
++CONFIG-=debug
++CONFIG+=release
+
+ CONFIG(debug, debug|release) {
+ TARGET = $$member(TARGET, 0)_debuglib
diff --git a/dev-java/qtjambi/files/shared_global_p.h b/dev-java/qtjambi/files/shared_global_p.h
new file mode 100644
index 000000000000..5bbbdb8080d2
--- /dev/null
+++ b/dev-java/qtjambi/files/shared_global_p.h
@@ -0,0 +1,58 @@
+/****************************************************************************
+**
+** Copyright (C) 1992-2007 Trolltech ASA. All rights reserved.
+**
+** This file is part of the Qt Designer of the Qt Toolkit.
+**
+** This file may be used under the terms of the GNU General Public
+** License version 2.0 as published by the Free Software Foundation
+** and appearing in the file LICENSE.GPL included in the packaging of
+** this file. Please review the following information to ensure GNU
+** General Public Licensing requirements will be met:
+** http://www.trolltech.com/products/qt/opensource.html
+**
+** If you are unsure which license is appropriate for your use, please
+** review the following information:
+** http://www.trolltech.com/products/qt/licensing.html or contact the
+** sales department at sales@trolltech.com.
+**
+** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
+** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
+**
+****************************************************************************/
+
+//
+// W A R N I N G
+// -------------
+//
+// This file is not part of the Qt API. It exists for the convenience
+// of Qt Designer. This header
+// file may change from version to version without notice, or even be removed.
+//
+// We mean it.
+//
+
+#ifndef SHARED_GLOBAL_H
+#define SHARED_GLOBAL_H
+
+#include <QtCore/qglobal.h>
+
+#ifdef QT_DESIGNER_STATIC
+#define QDESIGNER_SHARED_EXTERN
+#define QDESIGNER_SHARED_IMPORT
+#else
+#define QDESIGNER_SHARED_EXTERN Q_DECL_EXPORT
+#define QDESIGNER_SHARED_IMPORT Q_DECL_IMPORT
+#endif
+
+#ifndef QT_NO_SHARED_EXPORT
+# ifdef QDESIGNER_SHARED_LIBRARY
+# define QDESIGNER_SHARED_EXPORT QDESIGNER_SHARED_EXTERN
+# else
+# define QDESIGNER_SHARED_EXPORT QDESIGNER_SHARED_IMPORT
+# endif
+#else
+# define QDESIGNER_SHARED_EXPORT
+#endif
+
+#endif // SHARED_GLOBAL_H
diff --git a/dev-java/qtjambi/metadata.xml b/dev-java/qtjambi/metadata.xml
new file mode 100644
index 000000000000..01a5c2875e0d
--- /dev/null
+++ b/dev-java/qtjambi/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>qt</herd>
+</pkgmetadata>
diff --git a/dev-java/qtjambi/qtjambi-4.3.0_p1.ebuild b/dev-java/qtjambi/qtjambi-4.3.0_p1.ebuild
new file mode 100644
index 000000000000..9edf1903c208
--- /dev/null
+++ b/dev-java/qtjambi/qtjambi-4.3.0_p1.ebuild
@@ -0,0 +1,94 @@
+# 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.0_p1.ebuild,v 1.1 2007/06/07 16:35:40 caleb Exp $
+
+inherit eutils java-pkg-2
+
+QTVERSION=4.3.0
+PATCHRELEASE=01
+
+SRCTYPE="opensource-src"
+DESCRIPTION="The Qt toolkit is a comprehensive C++ application development framework."
+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-4.3.0
+ >=virtual/jdk-1.5"
+
+RDEPEND="~x11-libs/qt-4.3.0
+ >=virtual/jre-1.5"
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ epatch ${FILESDIR}/generator.patch
+ epatch ${FILESDIR}/qtjambi_base.pri.diff
+ epatch ${FILESDIR}/jambipropertysheet.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
+
+ # These are two private headers from QtDesigner that aren't installed in the normal
+ # Qt distribution, but are needed when building QtJambi
+ cp ${FILESDIR}/qdesigner_utils_p.h ${S}/qtjambi_designer
+ cp ${FILESDIR}/shared_global_p.h ${S}/qtjambi_designer
+}
+
+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"
+ cd ${S} && javac @java_files
+
+ # Step 6, build the jar file
+ cd ${S} && jar cf qtjambi.jar com
+}
+
+src_install() {
+ # Install libraries
+ dolib lib/*
+
+ # Install binaries
+ dobin bin/*
+
+ # Install designer plugins
+ insinto /usr/lib/qt4/designer/plugins
+ doins plugins/designer/*.so
+
+ java-pkg_dojar qtjambi.jar
+}