diff options
author | Karl Trygve Kalleberg <karltk@gentoo.org> | 2004-12-04 13:42:25 +0000 |
---|---|---|
committer | Karl Trygve Kalleberg <karltk@gentoo.org> | 2004-12-04 13:42:25 +0000 |
commit | 43dcb05f24dace472457e4c2898fdcb8f2794dc2 (patch) | |
tree | 92dd55cba9f58744990374aeee8b9ff31d2a0ec4 /dev-java/libglade-java | |
parent | Added gcj to dev-java/libglade-java (diff) | |
download | gentoo-2-43dcb05f24dace472457e4c2898fdcb8f2794dc2.tar.gz gentoo-2-43dcb05f24dace472457e4c2898fdcb8f2794dc2.tar.bz2 gentoo-2-43dcb05f24dace472457e4c2898fdcb8f2794dc2.zip |
Initial import. Fixes #70561.
Diffstat (limited to 'dev-java/libglade-java')
-rw-r--r-- | dev-java/libglade-java/ChangeLog | 15 | ||||
-rw-r--r-- | dev-java/libglade-java/Manifest | 5 | ||||
-rw-r--r-- | dev-java/libglade-java/files/digest-libglade-java-2.8.2 | 1 | ||||
-rw-r--r-- | dev-java/libglade-java/files/libglade-java-2.8.2_gentoo-PN-SLOT.patch | 35 | ||||
-rw-r--r-- | dev-java/libglade-java/libglade-java-2.8.2.ebuild | 104 | ||||
-rw-r--r-- | dev-java/libglade-java/metadata.xml | 33 |
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..0313fd7ee57b --- /dev/null +++ b/dev-java/libglade-java/Manifest @@ -0,0 +1,5 @@ +MD5 6d330480ad1ef929f702c9eb54526648 libglade-java-2.8.2.ebuild 3113 +MD5 41c62dd3c6f9945f2d9d571668d170e6 ChangeLog 436 +MD5 2100fe78182f86a483d116c518d5dafc metadata.xml 1478 +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> |