summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Trygve Kalleberg <karltk@gentoo.org>2004-12-04 13:42:25 +0000
committerKarl Trygve Kalleberg <karltk@gentoo.org>2004-12-04 13:42:25 +0000
commitd1ae3c126b7ee97c98791f66bbb64ea713e4be6e (patch)
tree6eff4ca483a212837a866f0dc79fe30177a5cc6d /dev-java
parentAdded gcj to dev-java/libglade-java (diff)
downloadhistorical-d1ae3c126b7ee97c98791f66bbb64ea713e4be6e.tar.gz
historical-d1ae3c126b7ee97c98791f66bbb64ea713e4be6e.tar.bz2
historical-d1ae3c126b7ee97c98791f66bbb64ea713e4be6e.zip
Initial import. Fixes #70561.
Diffstat (limited to 'dev-java')
-rw-r--r--dev-java/libglade-java/ChangeLog15
-rw-r--r--dev-java/libglade-java/Manifest5
-rw-r--r--dev-java/libglade-java/files/digest-libglade-java-2.8.21
-rw-r--r--dev-java/libglade-java/files/libglade-java-2.8.2_gentoo-PN-SLOT.patch35
-rw-r--r--dev-java/libglade-java/libglade-java-2.8.2.ebuild104
-rw-r--r--dev-java/libglade-java/metadata.xml33
6 files changed, 193 insertions, 0 deletions
diff --git a/dev-java/libglade-java/ChangeLog b/dev-java/libglade-java/ChangeLog
new file mode 100644
index 000000000000..35d214c8be8f
--- /dev/null
+++ b/dev-java/libglade-java/ChangeLog
@@ -0,0 +1,15 @@
+# ChangeLog for dev-java/libgtk-java
+# Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/libglade-java/ChangeLog,v 1.1 2004/12/04 13:42:25 karltk Exp $
+
+* libglade-java-2.8.2 (04 Dec 2004)
+
+ 04 Dec 2004; <karltk@gentoo.org> :
+ Initial import. Fixes #70561.
+
+ 08 Nov 2004; Andrew Cowie <andrew@operationaldynamics.com>
+ libglade-java-2.8.8.ebuild:
+ 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 is the Java binding for LibGlade.
+
diff --git a/dev-java/libglade-java/Manifest b/dev-java/libglade-java/Manifest
new file mode 100644
index 000000000000..9800d07c7f1e
--- /dev/null
+++ b/dev-java/libglade-java/Manifest
@@ -0,0 +1,5 @@
+MD5 af8505b511150249c7a4362d44ad4d99 libglade-java-2.8.2.ebuild 3281
+MD5 719aa77815e0cfb7fdc65248fc7288bf ChangeLog 639
+MD5 25131e29d5a6eb23196ff70fdf259706 metadata.xml 1306
+MD5 eda99aeb347c072151e20c330b8cc3c4 files/digest-libglade-java-2.8.2 71
+MD5 c068d53842b2d7d7efdca61acf5d72ca files/libglade-java-2.8.2_gentoo-PN-SLOT.patch 1190
diff --git a/dev-java/libglade-java/files/digest-libglade-java-2.8.2 b/dev-java/libglade-java/files/digest-libglade-java-2.8.2
new file mode 100644
index 000000000000..6998c06972dd
--- /dev/null
+++ b/dev-java/libglade-java/files/digest-libglade-java-2.8.2
@@ -0,0 +1 @@
+MD5 428aad7b148cb2e4d695a04593b52435 libglade-java-2.8.2.tar.bz2 31557
diff --git a/dev-java/libglade-java/files/libglade-java-2.8.2_gentoo-PN-SLOT.patch b/dev-java/libglade-java/files/libglade-java-2.8.2_gentoo-PN-SLOT.patch
new file mode 100644
index 000000000000..b58bf46a1550
--- /dev/null
+++ b/dev-java/libglade-java/files/libglade-java-2.8.2_gentoo-PN-SLOT.patch
@@ -0,0 +1,35 @@
+diff -Nuar libglade-java-2.8.2-ORIG/configure.in libglade-java-2.8.2-EDIT/configure.in
+--- libglade-java-2.8.2-ORIG/configure.in 2004-11-01 23:11:40.000000000 +1100
++++ libglade-java-2.8.2-EDIT/configure.in 2004-11-08 22:35:46.538385619 +1100
+@@ -23,8 +23,8 @@
+ apiversion="2.8"
+
+
+-INSTALLED_CLASSPATH=\${prefix}/share/java/glade${apiversion}-${version}.jar
+-INSTALLED_JNI_DIR=\${prefix}/lib/jni/
++INSTALLED_CLASSPATH=\${prefix}/share/${PN}-${SLOT}/lib/glade${apiversion}-${version}.jar
++INSTALLED_JNI_DIR=\${prefix}/lib/
+ AC_SUBST(INSTALLED_CLASSPATH)
+ AC_SUBST(INSTALLED_JNI_DIR)
+
+@@ -33,7 +33,7 @@
+
+ JG_GTK_JAVA(2.4)
+
+-JG_GNOME_JAVA(2.7)
++JG_GNOME_JAVA(2.8)
+
+ JG_COMMON
+
+diff -Nuar libglade-java-2.8.2-ORIG/src/Makefile.in libglade-java-2.8.2-EDIT/src/Makefile.in
+--- libglade-java-2.8.2-ORIG/src/Makefile.in 2004-10-06 22:36:27.000000000 +1000
++++ libglade-java-2.8.2-EDIT/src/Makefile.in 2004-11-08 22:36:28.197995367 +1100
+@@ -15,7 +15,7 @@
+ # the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
+ #
+
+-CLASSPATH = @GTKJAR@:@GNOMEJAR@:@CLASSPATH@:java
++CLASSPATH = @GTKJAR@:@GNOMEJAR@:java
+ NATIVEGTKJAR = @NATIVEGTKJAR@
+ NATIVEGNOMEJAR = @NATIVEGNOMEJAR@
+
diff --git a/dev-java/libglade-java/libglade-java-2.8.2.ebuild b/dev-java/libglade-java/libglade-java-2.8.2.ebuild
new file mode 100644
index 000000000000..d4bce9b6e09b
--- /dev/null
+++ b/dev-java/libglade-java/libglade-java-2.8.2.ebuild
@@ -0,0 +1,104 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/libglade-java/libglade-java-2.8.2.ebuild,v 1.1 2004/12/04 13:42:25 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 [Lib]Glade (allows GNOME/GTK applications writen in Java to be generate their user interface based on Glade description files)"
+HOMEPAGE="http://java-gnome.sourceforge.net/"
+RDEPEND=">=gnome-base/libglade-2.3.6
+ >=dev-java/libgnome-java-2.8.2
+ >=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.8"
+LICENSE="LGPL-2.1"
+KEYWORDS="~x86 ~ppc"
+IUSE="gcj"
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ epatch ${FILESDIR}/libglade-java-2.8.2_gentoo-PN-SLOT.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.
+ #
+
+ ./autogen.sh \
+ --host=${CHOST} \
+ --prefix=/usr \
+ ${conf} || die "./configure failed"
+ make || die
+}
+
+src_install() {
+ # workaround Makefile bug not creating necessary parent directories
+ mkdir -p ${D}/usr/lib
+ mkdir -p ${D}/usr/share/java
+ mkdir -p ${D}/usr/lib/pkgconfig
+ mkdir -p ${D}/usr/share/doc/libglade${SLOT}-java
+
+ make prefix=${D}/usr install || die
+
+ # actually, at time of writing, there were no DOCUMENTS, but leave it here...
+ mv ${D}/usr/share/doc/libglade${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/libglade-java-${PV}.src.zip *
+
+ # again, with dojar misbehaving, better do to this manually for the
+ # time being. Yes, this is bad hard coding, but what in this ebuild isn't?
+
+ # karltk: Missing generation of dependencies, should be fixed.
+ echo "DESCRIPTION=${DESCRIPTION}" \
+ > ${D}/usr/share/${PN}-${SLOT}/package.env
+
+ echo "CLASSPATH=/usr/share/${PN}-${SLOT}/lib/glade${SLOT}.jar" \
+ >> ${D}/usr/share/${PN}-${SLOT}/package.env
+}
diff --git a/dev-java/libglade-java/metadata.xml b/dev-java/libglade-java/metadata.xml
new file mode 100644
index 000000000000..a2cde9581845
--- /dev/null
+++ b/dev-java/libglade-java/metadata.xml
@@ -0,0 +1,33 @@
+<?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 GNOME applications in Java. Works with both traditional
+ 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.
+
+ This ebuild contains the Java bindings around the LibGlade
+ library. LibGlade allows a program to read in an interface
+ description file, created by Glade, and generate its graphical
+ user interface based on that file - at runtime!
+
+ [Hint: this coupled with the Eclipse IDE makes for awesome
+ Rapid Application Development on the GTK/GNOME platform]
+
+ If you're interested in this you probably want to emerge
+ java-gnome - a meta package which in turn depends on the
+ various GNOME libraries which comprise the complete java-gnome
+ language binding suite. More probably, some program that uses
+ java-gnome libraries will be bringing it in for you.
+ </longdescription>
+</pkgmetadata>