summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Trygve Kalleberg <karltk@gentoo.org>2004-11-16 18:40:33 +0000
committerKarl Trygve Kalleberg <karltk@gentoo.org>2004-11-16 18:40:33 +0000
commit9ca7b3928ff9434c10577d5d71d565345fd4783f (patch)
tree5adb766bba511df7ca68a5753649605c1e118a2f /dev-java/libgtk-java
parentAdded to ~ppc. (Manifest recommit) (diff)
downloadgentoo-2-9ca7b3928ff9434c10577d5d71d565345fd4783f.tar.gz
gentoo-2-9ca7b3928ff9434c10577d5d71d565345fd4783f.tar.bz2
gentoo-2-9ca7b3928ff9434c10577d5d71d565345fd4783f.zip
Initial import. Fixes #70559.
Diffstat (limited to 'dev-java/libgtk-java')
-rw-r--r--dev-java/libgtk-java/ChangeLog24
-rw-r--r--dev-java/libgtk-java/Manifest5
-rw-r--r--dev-java/libgtk-java/files/digest-libgtk-java-2.4.6-r11
-rw-r--r--dev-java/libgtk-java/files/libgtk-java-2.4.6_gcj-autoconf-macro-fix.patch20
-rw-r--r--dev-java/libgtk-java/files/libgtk-java-2.4.6_gentoo-PN-SLOT.patch42
-rw-r--r--dev-java/libgtk-java/files/libgtk-java-2.4.6_install-doc.patch12
-rw-r--r--dev-java/libgtk-java/files/libgtk-java-2.4.6_no-docbook-autoconf-macro.patch11
-rw-r--r--dev-java/libgtk-java/libgtk-java-2.4.6-r1.ebuild100
-rw-r--r--dev-java/libgtk-java/metadata.xml25
9 files changed, 240 insertions, 0 deletions
diff --git a/dev-java/libgtk-java/ChangeLog b/dev-java/libgtk-java/ChangeLog
new file mode 100644
index 000000000000..b4e35f9a9bbf
--- /dev/null
+++ b/dev-java/libgtk-java/ChangeLog
@@ -0,0 +1,24 @@
+# ChangeLog for dev-java/libgtk-java
+# Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/libgtk-java/ChangeLog,v 1.1 2004/11/16 18:40:33 karltk Exp $
+
+*libgtk-java-2.4.6-r1 (16 Nov 2004)
+
+ 16 Nov 2004; <karltk@gentoo.org> +metadata.xml,
+ +files/libgtk-java-2.4.6_gcj-autoconf-macro-fix.patch,
+ +files/libgtk-java-2.4.6_gentoo-PN-SLOT.patch,
+ +files/libgtk-java-2.4.6_install-doc.patch,
+ +files/libgtk-java-2.4.6_no-docbook-autoconf-macro.patch,
+ +libgtk-java-2.4.6-r1.ebuild:
+ Initial import into Portage. Ebuild and patches by Andrew Cowie
+ <andrew@operationaldynamics.com>. Fixes #70559.
+
+*libgtk-java-2.4.6 (07 Nov 2004)
+
+ 07 Nov 2004; Andrew Cowie <andrew@operationaldynamics.com>
+ New ebuild. What used to be java-gnome is now multiplexed into various modular
+ subcomponents. Upstream CVS was all re-arranged, and now there is a release
+ tarball for each piece. This ebuild is the java binding around the core GTK
+ libraries (and is the only one of the new pieces which doesn't need the rest of
+ GNOME installed).
+
diff --git a/dev-java/libgtk-java/Manifest b/dev-java/libgtk-java/Manifest
new file mode 100644
index 000000000000..339a5b636a12
--- /dev/null
+++ b/dev-java/libgtk-java/Manifest
@@ -0,0 +1,5 @@
+MD5 0d9270b97faefc285a6407774e04dd02 libgtk-java-2.4.6.ebuild 2959
+MD5 1defc6f20e4684f13955e28a28e47e1f files/libgtk-java-2.4.6_install-doc.patch 740
+MD5 d5868ac77f6fa3fcf16ec100095cb0af files/digest-libgtk-java-2.4.6 70
+MD5 1f2599c8fd250432f6e6b43d598e75db files/libgtk-java-2.4.6_gentoo-PN-SLOT.patch 2013
+MD5 40956547f4eb0b797359f67f6c6910bb files/libgtk-java-2.4.6_gcj-autoconf-macro-fix.patch 689
diff --git a/dev-java/libgtk-java/files/digest-libgtk-java-2.4.6-r1 b/dev-java/libgtk-java/files/digest-libgtk-java-2.4.6-r1
new file mode 100644
index 000000000000..1f417fd76435
--- /dev/null
+++ b/dev-java/libgtk-java/files/digest-libgtk-java-2.4.6-r1
@@ -0,0 +1 @@
+MD5 3f4533073d2c51cb444d16ecf91e9d08 libgtk-java-2.4.6.tar.bz2 438133
diff --git a/dev-java/libgtk-java/files/libgtk-java-2.4.6_gcj-autoconf-macro-fix.patch b/dev-java/libgtk-java/files/libgtk-java-2.4.6_gcj-autoconf-macro-fix.patch
new file mode 100644
index 000000000000..eaaff0df5498
--- /dev/null
+++ b/dev-java/libgtk-java/files/libgtk-java-2.4.6_gcj-autoconf-macro-fix.patch
@@ -0,0 +1,20 @@
+diff -Nuar libgtk-java-2.4.6-orig/macros/am_path_gcj.m4 libgtk-java-2.4.6/macros/am_path_gcj.m4
+--- libgtk-java-2.4.6-orig/macros/am_path_gcj.m4 2004-11-07 15:35:08.296300000 +1100
++++ libgtk-java-2.4.6/macros/am_path_gcj.m4 2004-11-07 15:37:39.916147374 +1100
+@@ -96,14 +96,14 @@
+ GCJ_HOME=`which gcj | sed 's/\(.*\).bin.*gcj/\1/'`
+ fi
+
+- cat << \EOF > Test.java
++ cat << EOF > Test.java
+ /* [#]line __oline__ "configure" */
+ public class Test {
+ public static void main(String[[]] args) {
+ System.out.println(System.getProperty("sun.boot.class.path"));
+ }
+ }
+-EOF
++EOF
+ GCJ_JAR=`gcj -C Test.java && gij Test`
+ rm Test.java Test.class
+ if test x$GCJ_JAR == x ; then
diff --git a/dev-java/libgtk-java/files/libgtk-java-2.4.6_gentoo-PN-SLOT.patch b/dev-java/libgtk-java/files/libgtk-java-2.4.6_gentoo-PN-SLOT.patch
new file mode 100644
index 000000000000..20dc164db15a
--- /dev/null
+++ b/dev-java/libgtk-java/files/libgtk-java-2.4.6_gentoo-PN-SLOT.patch
@@ -0,0 +1,42 @@
+diff -Nuar libgtk-java-2.4.6-ORIG/Makefile.in libgtk-java-2.4.6-EDIT/Makefile.in
+--- libgtk-java-2.4.6-ORIG/Makefile.in 2004-10-07 04:54:44.000000000 +1000
++++ libgtk-java-2.4.6-EDIT/Makefile.in 2004-11-08 16:39:29.876740128 +1100
+@@ -46,8 +46,8 @@
+ -for f in $(DOCUMENTS); do $(INSTALL) -m644 $$f $(DESTDIR)$(datadir)/doc/libgtk$(gtkapiversion)-java || exit 1; done;
+ -$(INSTALL) -d $(DESTDIR)$(libdir)/pkgconfig/
+ $(INSTALL) -m644 gtk2-java.pc $(DESTDIR)$(libdir)/pkgconfig/
+- -$(INSTALL) -d $(DESTDIR)$(datadir)/libgtk-java/macros/
+- $(INSTALL) -m644 macros/*.m4 $(DESTDIR)$(datadir)/libgtk-java/macros/
++ -$(INSTALL) -d $(DESTDIR)@INSTALLED_MACRO_DIR@
++ $(INSTALL) -m644 macros/*.m4 $(DESTDIR)@INSTALLED_MACRO_DIR@
+ $(MAKE) -C doc install
+
+ # install native (gcj compiled) libraries
+diff -Nuar libgtk-java-2.4.6-ORIG/configure.in libgtk-java-2.4.6-EDIT/configure.in
+--- libgtk-java-2.4.6-ORIG/configure.in 2004-11-01 23:04:59.000000000 +1100
++++ libgtk-java-2.4.6-EDIT/configure.in 2004-11-08 15:53:21.000000000 +1100
+@@ -23,9 +23,9 @@
+ gtkapiversion="2.4"
+ AC_SUBST(gtkapiversion)
+
+-INSTALLED_CLASSPATH=\${prefix}/share/java/gtk${gtkapiversion}-${gtkversion}.jar
+-INSTALLED_JNI_DIR=\${prefix}/lib/jni/
+-INSTALLED_MACRO_DIR=\${prefix}/share/libgtk-java/macros/
++INSTALLED_CLASSPATH=\${prefix}/share/${PN}-${SLOT}/lib/gtk${gtkapiversion}-${gtkversion}.jar
++INSTALLED_JNI_DIR=\${prefix}/lib/
++INSTALLED_MACRO_DIR=\${prefix}/share/${PN}-${SLOT}/macros/
+ AC_SUBST(INSTALLED_CLASSPATH)
+ AC_SUBST(INSTALLED_JNI_DIR)
+ AC_SUBST(INSTALLED_MACRO_DIR)
+diff -Nuar libgtk-java-2.4.6-ORIG/src/Makefile.in libgtk-java-2.4.6-EDIT/src/Makefile.in
+--- libgtk-java-2.4.6-ORIG/src/Makefile.in 2004-07-28 22:31:30.000000000 +1000
++++ libgtk-java-2.4.6-EDIT/src/Makefile.in 2004-11-08 15:03:09.000000000 +1100
+@@ -15,7 +15,7 @@
+ # the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
+ #
+
+-CLASSPATH = @CLASSPATH@:java:
++CLASSPATH = java
+
+ OBJECTS:= \
+ $(shell ls jni/*.c | sort | sed -e 's=\.c=\.o=g')
diff --git a/dev-java/libgtk-java/files/libgtk-java-2.4.6_install-doc.patch b/dev-java/libgtk-java/files/libgtk-java-2.4.6_install-doc.patch
new file mode 100644
index 000000000000..0a1f36c1fad2
--- /dev/null
+++ b/dev-java/libgtk-java/files/libgtk-java-2.4.6_install-doc.patch
@@ -0,0 +1,12 @@
+diff -Nuar libgtk-java-2.4.6-ORIG/Makefile.in libgtk-java-2.4.6-EDIT/Makefile.in
+--- libgtk-java-2.4.6-ORIG/Makefile.in 2004-10-07 04:54:44.000000000 +1000
++++ libgtk-java-2.4.6-EDIT/Makefile.in 2004-11-08 16:51:29.352689812 +1100
+@@ -37,7 +37,7 @@
+ # Install core gtk java libraries and required libraries
+ install: @GCJ_INSTALL_TARGETS@
+ -$(INSTALL) -d $(DESTDIR)$(datadir)/java/
+- -$(INSTALL) -d $(DESTDIR)$(datadir)/doc/libgtk$(apiversion)-java/
++ -$(INSTALL) -d $(DESTDIR)$(datadir)/doc/libgtk$(gtkapiversion)-java/
+ -$(INSTALL) -d $(DESTDIR)$(libdir)/
+ $(INSTALL) -s -m644 lib/libgtkjava$(gtkapiversion).so.$(gtkversion) $(DESTDIR)$(libdir)/
+ $(INSTALL) -m644 lib/gtk$(gtkapiversion)-$(gtkversion).jar $(DESTDIR)$(datadir)/java/
diff --git a/dev-java/libgtk-java/files/libgtk-java-2.4.6_no-docbook-autoconf-macro.patch b/dev-java/libgtk-java/files/libgtk-java-2.4.6_no-docbook-autoconf-macro.patch
new file mode 100644
index 000000000000..3bc3a655e057
--- /dev/null
+++ b/dev-java/libgtk-java/files/libgtk-java-2.4.6_no-docbook-autoconf-macro.patch
@@ -0,0 +1,11 @@
+diff -Nuar libgtk-java-2.4.6-orig/macros/jg_common.m4 libgtk-java-2.4.6/macros/jg_common.m4
+--- libgtk-java-2.4.6-orig/macros/jg_common.m4 2004-07-11 04:39:42.000000000 -0400
++++ libgtk-java-2.4.6/macros/jg_common.m4 2004-11-16 09:33:03.000000000 -0500
+@@ -6,7 +6,6 @@
+ dnl Checks for programs.
+ AC_PROG_CC
+ AC_PROG_INSTALL
+-AM_PATH_DOCBOOK
+ AC_PROG_JAVAC
+ AC_PROG_JAVAC_WORKS
+ AC_PROG_JAVADOC
diff --git a/dev-java/libgtk-java/libgtk-java-2.4.6-r1.ebuild b/dev-java/libgtk-java/libgtk-java-2.4.6-r1.ebuild
new file mode 100644
index 000000000000..a7faef8bb077
--- /dev/null
+++ b/dev-java/libgtk-java/libgtk-java-2.4.6-r1.ebuild
@@ -0,0 +1,100 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/libgtk-java/libgtk-java-2.4.6-r1.ebuild,v 1.1 2004/11/16 18:40:33 karltk Exp $
+
+#
+# WARNING: Because java-gnome is a set of bindings to native GNOME libraries,
+# it has, like any GNOME project, a massive autoconf setup, and unlike many
+# other java libraries, it has its own [necessary] `make install` step.
+# As a result, this ebuild is VERY sensitive to the internal layout of the
+# upstream project. Because these issues are currently evolving upstream,
+# simply version bumping this ebuild is not likely to work but FAILURES WILL
+# BE VERY SUBTLE IF IT DOESN NOT WORK.
+#
+
+inherit eutils gnome.org
+
+DESCRIPTION="Java bindings for GTK libraries (allow GTK applications to be written in Java)"
+HOMEPAGE="http://java-gnome.sourceforge.net/"
+RDEPEND=">=x11-libs/gtk+-2.4
+ >=virtual/jre-1.2"
+
+#
+# Unfortunately we need to run autogen to do the variable substitutions, so
+# regardless of whether or not there is an upstream ./configure [at time of
+# writing there isn't] we need to recreate it
+#
+
+DEPEND="${RDEPEND}
+ >=virtual/jdk-1.2
+ app-arch/zip
+ sys-devel/autoconf
+ sys-devel/automake"
+
+#
+# Critical that this match gtkapiversion
+#
+SLOT="2.4"
+LICENSE="LGPL-2.1"
+KEYWORDS="~x86 ~ppc"
+IUSE="gcj"
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ epatch ${FILESDIR}/libgtk-java-2.4.6_gcj-autoconf-macro-fix.patch
+ epatch ${FILESDIR}/libgtk-java-2.4.6_gentoo-PN-SLOT.patch
+ epatch ${FILESDIR}/libgtk-java-2.4.6_install-doc.patch
+ epatch ${FILESDIR}/libgtk-java-2.4.6_no-docbook-autoconf-macro.patch
+}
+
+src_compile() {
+ local conf
+
+ use gcj || conf="${conf} --without-gcj-compile"
+
+ cd ${S}
+
+ #
+ # Ordinarily, moving things around post `make install` would do
+ # the trick, but there are paths hard coded in .pc files and in the
+ # `make install` step itself that need to be influenced.
+ #
+ # NOTE: THIS RELIES ON PORTAGE PASSING $PN AND $SLOT IN THE ENVIRONMENT
+ #
+
+ ./autogen.sh \
+ --host=${CHOST} \
+ --prefix=/usr \
+ ${conf} || die "./configure failed"
+ make || die
+}
+
+src_install() {
+ make prefix=${D}/usr install || die
+
+ mv ${D}/usr/share/doc/libgtk${SLOT}-java ${D}/usr/share/doc/${PF}
+
+ # the upstream install scatters things around a bit. The following cleans
+ # that up to make it policy compliant.
+
+ # I originally tried java-pkg_dojar here, but it has a few glitches
+ # like not copying symlinks as symlinks which makes a mess.
+
+ dodir /usr/share/${PN}-${SLOT}/lib
+ mv ${D}/usr/share/java/*.jar ${D}/usr/share/${PN}-${SLOT}/lib
+ rm -rf ${D}/usr/share/java
+
+ mkdir ${D}/usr/share/${PN}-${SLOT}/src
+ cd ${S}/src/java
+ zip -r ${D}/usr/share/${PN}-${SLOT}/src/libgtk-java-${PV}.src.zip *
+
+ # again, with dojar misbehaving, better do to this manually for the
+ # time being.
+
+ echo "DESCRIPTION=${DESCRIPTION}" \
+ > ${D}/usr/share/${PN}-${SLOT}/package.env
+
+ echo "CLASSPATH=/usr/share/${PN}-${SLOT}/lib/gtk${SLOT}.jar" \
+ >> ${D}/usr/share/${PN}-${SLOT}/package.env
+}
diff --git a/dev-java/libgtk-java/metadata.xml b/dev-java/libgtk-java/metadata.xml
new file mode 100644
index 000000000000..0ea025b89a5e
--- /dev/null
+++ b/dev-java/libgtk-java/metadata.xml
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>java</herd>
+ <maintainer>
+ <email>andrew@operationaldynamics.com</email>
+ <name>Andrew Cowie</name>
+ </maintainer>
+ <longdescription>
+ An elegant set of language bindings to allow you to write
+ native GTK applications in Java. Works in both normal Java VMs
+ and also with GCJ allowing the creation of native Linux
+ executable binaries.
+
+ This library comes from the java-gnome project, which in turn
+ is part of the official suite of GNOME language bindings.
+
+ These are the Java bindings for GTK, the only one of the
+ java-gnome libraries which doesn't need the rest of GNOME
+ installed. If you *do* have GNOME installed, then you probably
+ want to emerge java-gnome which is a meta package which depends
+ on the various libraries which make up the complete java-gnome
+ language binding suite.
+ </longdescription>
+</pkgmetadata>