summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuli Suominen <ssuominen@gentoo.org>2011-02-05 12:36:20 +0000
committerSamuli Suominen <ssuominen@gentoo.org>2011-02-05 12:36:20 +0000
commitc9e828378cbdd729ca1c96e2e8a7dce5575fa0da (patch)
tree5064fb860bc9d8ca550202cefe9c84ac919a0047 /dev-java/java-gnome
parentAdded patch to fix sudo policy. (diff)
downloadgentoo-2-c9e828378cbdd729ca1c96e2e8a7dce5575fa0da.tar.gz
gentoo-2-c9e828378cbdd729ca1c96e2e8a7dce5575fa0da.tar.bz2
gentoo-2-c9e828378cbdd729ca1c96e2e8a7dce5575fa0da.zip
Fix compability with x11-libs/libnotify >= 0.7.
(Portage version: 2.2.0_alpha19/cvs/Linux x86_64)
Diffstat (limited to 'dev-java/java-gnome')
-rw-r--r--dev-java/java-gnome/ChangeLog10
-rw-r--r--dev-java/java-gnome/files/java-gnome-4.0.18-libnotify-0.7.patch231
-rw-r--r--dev-java/java-gnome/java-gnome-4.0.15.ebuild5
-rw-r--r--dev-java/java-gnome/java-gnome-4.0.16.ebuild5
-rw-r--r--dev-java/java-gnome/java-gnome-4.0.17.ebuild5
-rw-r--r--dev-java/java-gnome/java-gnome-4.0.18-r1.ebuild75
-rw-r--r--dev-java/java-gnome/java-gnome-4.0.18.ebuild5
7 files changed, 326 insertions, 10 deletions
diff --git a/dev-java/java-gnome/ChangeLog b/dev-java/java-gnome/ChangeLog
index 62a17cb16ec5..5d0e3a1668e8 100644
--- a/dev-java/java-gnome/ChangeLog
+++ b/dev-java/java-gnome/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-java/java-gnome
-# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-java/java-gnome/ChangeLog,v 1.103 2010/12/29 23:06:59 ken69267 Exp $
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/java-gnome/ChangeLog,v 1.104 2011/02/05 12:36:20 ssuominen Exp $
+
+*java-gnome-4.0.18-r1 (05 Feb 2011)
+
+ 05 Feb 2011; Samuli Suominen <ssuominen@gentoo.org>
+ +java-gnome-4.0.18-r1.ebuild, +files/java-gnome-4.0.18-libnotify-0.7.patch:
+ Fix compability with x11-libs/libnotify >= 0.7.
*java-gnome-4.0.18 (29 Dec 2010)
diff --git a/dev-java/java-gnome/files/java-gnome-4.0.18-libnotify-0.7.patch b/dev-java/java-gnome/files/java-gnome-4.0.18-libnotify-0.7.patch
new file mode 100644
index 000000000000..adfe937338f5
--- /dev/null
+++ b/dev-java/java-gnome/files/java-gnome-4.0.18-libnotify-0.7.patch
@@ -0,0 +1,231 @@
+# Bazaar merge directive format 2 (Bazaar 0.90)
+# revision_id: serkan@gentoo.org-20110131175810-2wn3gvabeesq0b3x
+# target_branch: ../mainline
+# testament_sha1: dd22e2db4f450dde1d4a5128da7833d50c34ab69
+# timestamp: 2011-01-31 20:04:36 +0200
+# base_revision_id: andrew@operationaldynamics.com-20101224023849-\
+# u859g3kgg2y9ybx4
+#
+# Begin patch
+=== modified file 'configure'
+--- configure 2010-12-22 11:23:13 +0000
++++ configure 2011-01-31 17:58:10 +0000
+@@ -787,7 +787,7 @@
+ "gtkspell");
+
+ check_system_library(@gnomedev_libs,
+- "libnotify >= 0.4.5",
++ "libnotify >= 0.7.0",
+ "LibNotify",
+ "libnotify");
+
+@@ -835,7 +835,7 @@
+ "FIXME");
+
+ check_system_library(@gnomedev_libs,
+- "libnotify >= 0.4.5",
++ "libnotify >= 0.7.0",
+ "LibNotify",
+ "FIXME");
+
+@@ -897,7 +897,7 @@
+ "libgtksourceview2.0-dev");
+
+ check_system_library(@gnomedev_libs,
+- "libnotify >= 0.4.5",
++ "libnotify >= 0.7.0",
+ "LibNotify",
+ "libnotify-dev");
+
+@@ -943,7 +943,7 @@
+ "FIXME");
+
+ check_system_library(@gnomedev_libs,
+- "libnotify >= 0.4.5",
++ "libnotify >= 0.7.0",
+ "LibNotify",
+ "FIXME");
+
+@@ -989,7 +989,7 @@
+ "FIXME");
+
+ check_system_library(@gnomedev_libs,
+- "libnotify >= 0.4.5",
++ "libnotify >= 0.7.0",
+ "LibNotify",
+ "FIXME");
+
+@@ -1050,7 +1050,7 @@
+ "FIXME");
+
+ check_system_library(@gnomedev_libs,
+- "libnotify >= 0.4.5",
++ "libnotify >= 0.7.0",
+ "LibNotify",
+ "FIXME");
+
+
+=== modified file 'src/bindings/org/gnome/notify/Notification.java'
+--- src/bindings/org/gnome/notify/Notification.java 2010-01-06 06:28:28 +0000
++++ src/bindings/org/gnome/notify/Notification.java 2011-01-31 17:58:10 +0000
+@@ -71,8 +71,7 @@
+ * <p>
+ * The summary appears on the titlebar of notification and body appears as
+ * its text. Icon may be a string defining a theme icon or the filename
+- * identifying the icon that appears next to text. Attach identifies the
+- * widget that the notification relates to.
++ * identifying the icon that appears next to text.
+ *
+ * <p>
+ * Note that all but summary can be <code>null</code>.
+@@ -80,19 +79,8 @@
+ * @since 4.0.12
+ */
+
+- public Notification(String summary, String body, String icon, Widget attach) {
+- super(NotifyNotification.createNotification(summary, body, icon, attach));
+- }
+-
+- /**
+- * Create a new notification attached to a {@link StatusIcon}. See
+- * {@link #Notification(String,String,String,Widget) Notification()} for
+- * other parameters.
+- *
+- * @since 4.0.12
+- */
+- public Notification(String summary, String body, String icon, StatusIcon statusIcon) {
+- super(NotifyNotification.createNotificationWithStatusIcon(summary, body, icon, statusIcon));
++ public Notification(String summary, String body, String icon) {
++ super(NotifyNotification.createNotification(summary, body, icon));
+ }
+
+ /**
+@@ -109,34 +97,6 @@
+ }
+
+ /**
+- * Attaches Notification to a Widget setting hints to its location.
+- *
+- * @since 4.0.12
+- */
+- public void attach(Widget attach) {
+- NotifyNotification.attachToWidget(this, attach);
+- }
+-
+- /**
+- * Attaches Notification to a {@link StatusIcon} setting hints to its
+- * location.
+- *
+- * @since 4.0.12
+- */
+- public void attach(StatusIcon statusIcon) {
+- NotifyNotification.attachToStatusIcon(this, statusIcon);
+- }
+-
+- /**
+- * Sets the position of the notification to display on screen.
+- *
+- * @since 4.0.12
+- */
+- public void setGeometryHints(Screen screen, int x, int y) {
+- NotifyNotification.setGeometryHints(this, screen, x, y);
+- }
+-
+- /**
+ * Display the notification on screen.
+ *
+ * @since 4.0.12
+
+=== modified file 'src/defs/NotifyNotification.defs'
+--- src/defs/NotifyNotification.defs 2009-05-16 05:46:28 +0000
++++ src/defs/NotifyNotification.defs 2011-01-31 17:58:10 +0000
+@@ -15,19 +15,6 @@
+ '("const-gchar*" "summary")
+ '("const-gchar*" "body" (null-ok))
+ '("const-gchar*" "icon" (null-ok))
+- '("GtkWidget*" "attach" (null-ok))
+- )
+-)
+-
+-(define-function notify_notification_new_with_status_icon
+- (is-constructor-of "NotifyNotification")
+- (c-name "notify_notification_new_with_status_icon")
+- (return-type "NotifyNotification*")
+- (parameters
+- '("const-gchar*" "summary")
+- '("const-gchar*" "body" (null-ok))
+- '("const-gchar*" "icon" (null-ok))
+- '("GtkStatusIcon*" "status_icon")
+ )
+ )
+
+@@ -42,35 +29,6 @@
+ )
+ )
+
+-(define-method attach_to_widget
+- (of-object "NotifyNotification")
+- (c-name "notify_notification_attach_to_widget")
+- (return-type "none")
+- (parameters
+- '("GtkWidget*" "attach")
+- )
+-)
+-
+-(define-method attach_to_status_icon
+- (of-object "NotifyNotification")
+- (c-name "notify_notification_attach_to_status_icon")
+- (return-type "none")
+- (parameters
+- '("GtkStatusIcon*" "status_icon")
+- )
+-)
+-
+-(define-method set_geometry_hints
+- (of-object "NotifyNotification")
+- (c-name "notify_notification_set_geometry_hints")
+- (return-type "none")
+- (parameters
+- '("GdkScreen*" "screen")
+- '("gint" "x")
+- '("gint" "y")
+- )
+-)
+-
+ (define-method show
+ (of-object "NotifyNotification")
+ (c-name "notify_notification_show")
+
+# Begin bundle
+IyBCYXphYXIgcmV2aXNpb24gYnVuZGxlIHY0CiMKQlpoOTFBWSZTWQgyxQcAA4nfg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2y1WT6pFEG/JpDHCyUzBGFuyWJxWPEHUPVc6wbLQqX8i
+xYIrMLFqUESYkxv/zoCYKxdvBm4IOLgbOeGD6UwAuBCm+vNAJhgsJC0yFwrDbqZqoHxy8NV6dsKc
+92WlKOUzHsQx3KddeHf6L7VSCyKFpS8WRuQ3EFRBBuZdPWE4VI2/fERpFA1szpyxDniHW/nmhzYe
+FSKBdAits/xdyRThQkAgyxQc
diff --git a/dev-java/java-gnome/java-gnome-4.0.15.ebuild b/dev-java/java-gnome/java-gnome-4.0.15.ebuild
index cecca1ae02eb..64b6362e9fb1 100644
--- a/dev-java/java-gnome/java-gnome-4.0.15.ebuild
+++ b/dev-java/java-gnome/java-gnome-4.0.15.ebuild
@@ -1,6 +1,6 @@
-# Copyright 1999-2010 Gentoo Foundation
+# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-java/java-gnome/java-gnome-4.0.15.ebuild,v 1.5 2010/10/24 15:50:00 ranger Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-java/java-gnome/java-gnome-4.0.15.ebuild,v 1.6 2011/02/05 12:36:20 ssuominen Exp $
EAPI=2
JAVA_PKG_IUSE="doc examples source"
@@ -28,6 +28,7 @@ RDEPEND=">=dev-libs/glib-2.22
>=x11-libs/gtksourceview-2.6.2
>=app-text/gtkspell-2.0.15-r1
>=x11-libs/libnotify-0.4.5
+ <x11-libs/libnotify-0.7
>=dev-libs/libunique-1.0.8
>=virtual/jre-1.5"
DEPEND="${RDEPEND}
diff --git a/dev-java/java-gnome/java-gnome-4.0.16.ebuild b/dev-java/java-gnome/java-gnome-4.0.16.ebuild
index 3fddc9014eca..e622dc20ed18 100644
--- a/dev-java/java-gnome/java-gnome-4.0.16.ebuild
+++ b/dev-java/java-gnome/java-gnome-4.0.16.ebuild
@@ -1,6 +1,6 @@
-# Copyright 1999-2010 Gentoo Foundation
+# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-java/java-gnome/java-gnome-4.0.16.ebuild,v 1.4 2010/12/15 16:26:50 phajdan.jr Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-java/java-gnome/java-gnome-4.0.16.ebuild,v 1.5 2011/02/05 12:36:20 ssuominen Exp $
EAPI=2
JAVA_PKG_IUSE="doc examples source"
@@ -28,6 +28,7 @@ RDEPEND=">=dev-libs/glib-2.22
>=x11-libs/gtksourceview-2.6.2
>=app-text/gtkspell-2.0.15-r1
>=x11-libs/libnotify-0.4.5
+ <x11-libs/libnotify-0.7
>=dev-libs/libunique-1.0.8
>=virtual/jre-1.5"
DEPEND="${RDEPEND}
diff --git a/dev-java/java-gnome/java-gnome-4.0.17.ebuild b/dev-java/java-gnome/java-gnome-4.0.17.ebuild
index 1d2a22b11df2..f7457f9023e9 100644
--- a/dev-java/java-gnome/java-gnome-4.0.17.ebuild
+++ b/dev-java/java-gnome/java-gnome-4.0.17.ebuild
@@ -1,6 +1,6 @@
-# Copyright 1999-2010 Gentoo Foundation
+# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-java/java-gnome/java-gnome-4.0.17.ebuild,v 1.1 2010/11/18 06:42:43 ken69267 Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-java/java-gnome/java-gnome-4.0.17.ebuild,v 1.2 2011/02/05 12:36:20 ssuominen Exp $
EAPI=2
JAVA_PKG_IUSE="doc examples source"
@@ -28,6 +28,7 @@ RDEPEND=">=dev-libs/glib-2.22
>=x11-libs/gtksourceview-2.6.2
>=app-text/gtkspell-2.0.15-r1
>=x11-libs/libnotify-0.4.5
+ <x11-libs/libnotify-0.7
>=dev-libs/libunique-1.0.8
>=virtual/jre-1.5"
DEPEND="${RDEPEND}
diff --git a/dev-java/java-gnome/java-gnome-4.0.18-r1.ebuild b/dev-java/java-gnome/java-gnome-4.0.18-r1.ebuild
new file mode 100644
index 000000000000..d1986eff5067
--- /dev/null
+++ b/dev-java/java-gnome/java-gnome-4.0.18-r1.ebuild
@@ -0,0 +1,75 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/java-gnome/java-gnome-4.0.18-r1.ebuild,v 1.1 2011/02/05 12:36:20 ssuominen Exp $
+
+EAPI=2
+JAVA_PKG_IUSE="doc examples source"
+
+inherit eutils versionator java-pkg-2 multilib
+
+MY_PV="${PV/_/-}"
+MY_P="${PN}-${MY_PV}"
+
+DESCRIPTION="Java bindings for GTK and GNOME"
+HOMEPAGE="http://java-gnome.sourceforge.net/"
+SRC_URI="mirror://gnome/sources/${PN}/$(get_version_component_range 1-2)/${MY_P}.tar.bz2"
+
+LICENSE="GPL-2-with-linking-exception"
+SLOT="4.0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE=""
+
+RDEPEND=">=dev-libs/glib-2.22
+ >=x11-libs/gtk+-2.22.0
+ >=gnome-base/libglade-2.6.4
+ >=gnome-base/libgnome-2.22.0
+ >=gnome-base/gnome-desktop-2.22.0:2
+ >=x11-libs/cairo-1.10.0[svg]
+ >=x11-libs/gtksourceview-2.6.2
+ >=app-text/gtkspell-2.0.15-r1
+ >=x11-libs/libnotify-0.7
+ >=dev-libs/libunique-1.0.8
+ >=gnome-base/librsvg-2.32.1
+ >=virtual/jre-1.5"
+DEPEND="${RDEPEND}
+ dev-java/junit:0
+ dev-lang/perl
+ dev-util/pkgconfig
+ >=virtual/jdk-1.5"
+
+# Needs X11
+RESTRICT="test"
+
+S="${WORKDIR}/${MY_P}"
+
+src_prepare() {
+ #fix dependency typo in configure
+ sed -i -e "s/librsvg-2.0atk/librsvg-2.0 atk/" configure || die
+ epatch "${FILESDIR}"/${P}-libnotify-0.7.patch
+}
+
+src_configure() {
+ # Handwritten in perl so not using econf
+ ./configure prefix=/usr libdir=/usr/$(get_libdir)/${PN}-${SLOT} jardir=/usr/share/${PN}-${SLOT}/lib || die
+}
+
+src_compile() {
+ # Fails parallel build in case GCJ is detected
+ # See https://bugs.gentoo.org/show_bug.cgi?id=200550
+ emake -j1 || die "Compilation of java-gnome failed"
+
+ if use doc; then
+ DISPLAY= emake -j1 doc || die "Making documentation failed"
+ fi
+}
+
+src_install(){
+ emake -j1 DESTDIR="${D}" install || die
+ java-pkg_regjar /usr/share/${PN}-${SLOT}/lib/gtk-${SLOT}.jar
+ java-pkg_regjar /usr/share/${PN}-${SLOT}/lib/gtk.jar
+
+ dodoc AUTHORS HACKING NEWS README || die
+ use doc && java-pkg_dojavadoc doc/api
+ use examples && java-pkg_doexamples doc/examples
+ use source && java-pkg_dosrc src/bindings/org
+}
diff --git a/dev-java/java-gnome/java-gnome-4.0.18.ebuild b/dev-java/java-gnome/java-gnome-4.0.18.ebuild
index 71d1f4f2d831..253afe5208e4 100644
--- a/dev-java/java-gnome/java-gnome-4.0.18.ebuild
+++ b/dev-java/java-gnome/java-gnome-4.0.18.ebuild
@@ -1,6 +1,6 @@
-# Copyright 1999-2010 Gentoo Foundation
+# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-java/java-gnome/java-gnome-4.0.18.ebuild,v 1.1 2010/12/29 23:06:59 ken69267 Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-java/java-gnome/java-gnome-4.0.18.ebuild,v 1.2 2011/02/05 12:36:20 ssuominen Exp $
EAPI=2
JAVA_PKG_IUSE="doc examples source"
@@ -28,6 +28,7 @@ RDEPEND=">=dev-libs/glib-2.22
>=x11-libs/gtksourceview-2.6.2
>=app-text/gtkspell-2.0.15-r1
>=x11-libs/libnotify-0.4.5
+ <x11-libs/libnotify-0.7
>=dev-libs/libunique-1.0.8
>=gnome-base/librsvg-2.32.1
>=virtual/jre-1.5"