diff options
author | Karl Trygve Kalleberg <karltk@gentoo.org> | 2005-05-01 16:39:10 +0000 |
---|---|---|
committer | Karl Trygve Kalleberg <karltk@gentoo.org> | 2005-05-01 16:39:10 +0000 |
commit | 225e36b886aa6dc4b45f11b90b47f6d8c2526908 (patch) | |
tree | 7d15316adf77ccfa432eee664297ee5fc5a0ca3b | |
parent | stable on x86 (diff) | |
download | gentoo-2-225e36b886aa6dc4b45f11b90b47f6d8c2526908.tar.gz gentoo-2-225e36b886aa6dc4b45f11b90b47f6d8c2526908.tar.bz2 gentoo-2-225e36b886aa6dc4b45f11b90b47f6d8c2526908.zip |
Updates from Andrew, partial fix for #87978.
(Portage version: 2.0.51.19)
4 files changed, 115 insertions, 1 deletions
diff --git a/dev-java/libglade-java/ChangeLog b/dev-java/libglade-java/ChangeLog index 65b1ba509f3b..5da528976560 100644 --- a/dev-java/libglade-java/ChangeLog +++ b/dev-java/libglade-java/ChangeLog @@ -1,6 +1,14 @@ # ChangeLog for dev-java/libglade-java # Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-java/libglade-java/ChangeLog,v 1.7 2005/03/31 18:59:34 luckyduck Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-java/libglade-java/ChangeLog,v 1.8 2005/05/01 16:39:10 karltk Exp $ + +*libglade-java-2.10.1 (01 May 2005) + + 01 May 2005; Karl Trygve Kalleberg <karltk@gentoo.org> + +files/libglade-java-2.10.0_fix-install-dir.patch, + +libglade-java-2.10.1.ebuild: + Updates from Andrew Cowie <andrew@operationaldynamics.com>, partial fix for + #87978. 31 Mar 2005; Jan Brinkmann <luckyduck@gentoo.org> libglade-java-2.8.2-r1.ebuild, libglade-java-2.8.2.2.ebuild, diff --git a/dev-java/libglade-java/files/digest-libglade-java-2.10.1 b/dev-java/libglade-java/files/digest-libglade-java-2.10.1 new file mode 100644 index 000000000000..b37605f75898 --- /dev/null +++ b/dev-java/libglade-java/files/digest-libglade-java-2.10.1 @@ -0,0 +1 @@ +MD5 edf7e9e113afa9f002f048d62c87920b libglade-java-2.10.1.tar.bz2 251071 diff --git a/dev-java/libglade-java/files/libglade-java-2.10.0_fix-install-dir.patch b/dev-java/libglade-java/files/libglade-java-2.10.0_fix-install-dir.patch new file mode 100644 index 000000000000..fc36bb8d452c --- /dev/null +++ b/dev-java/libglade-java/files/libglade-java-2.10.0_fix-install-dir.patch @@ -0,0 +1,11 @@ +--- libglade-java-2.10.0/Makefile.in 2005-03-06 16:57:51.000000000 -0500 ++++ fixed/Makefile.in 2005-04-04 00:37:47.000000000 -0400 +@@ -1688,7 +1688,7 @@ + @BUILD_JAVADOC_TRUE@ touch doc-stamp + + install-data-hook: +- cd $(DESTDIR)$(datadir)/java && \ ++ cd $(DESTDIR)$(jardir) && \ + mv -f glade$(apiversion).jar glade$(apiversion)-$(VERSION).jar && \ + $(LN_S) glade$(apiversion)-$(VERSION).jar glade$(apiversion).jar + diff --git a/dev-java/libglade-java/libglade-java-2.10.1.ebuild b/dev-java/libglade-java/libglade-java-2.10.1.ebuild new file mode 100644 index 000000000000..ebb02c699b2c --- /dev/null +++ b/dev-java/libglade-java/libglade-java-2.10.1.ebuild @@ -0,0 +1,94 @@ +# Copyright 1999-2005 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.10.1.ebuild,v 1.1 2005/05/01 16:39:10 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 DOES 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.5.1 + gnome? ( >=gnome-base/libgnomeui-2.10.0 ) + gnome? ( >=gnome-base/libgnomecanvas-2.10.0 ) + >=dev-java/libgtk-java-2.6.2 + gnome? ( >=dev-java/libgnome-java-2.10.1 ) + >=virtual/jre-1.2" + + +DEPEND="${RDEPEND} + >=virtual/jdk-1.2 + app-arch/zip" + +# +# Critical that this match glade's apiversion +# +SLOT="2.10" +LICENSE="LGPL-2.1" +KEYWORDS="~x86 ~ppc" +IUSE="gcj gnome" + +src_unpack() { + unpack ${A} + cd ${S} + + epatch ${FILESDIR}/libglade-java-2.10.0_fix-install-dir.patch + + sed -i \ + -e "s:/share/${PN}/:/share/${PN}-${SLOT}/:" \ + -e "s:/share/java/:/share/${PN}-${SLOT}/lib/:" \ + configure || die "sed configure error" + + rm -f ${S}/config.cache +} + +src_compile() { + local conf + + use gcj || conf="${conf} --without-gcj-compile" + use gnome || conf="${conf} --without-gnome" + + 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. + # + + ./configure \ + --host=${CHOST} \ + --prefix=/usr \ + --with-jardir=/usr/share/${PN}-${SLOT}/lib \ + ${conf} || die "./configure failed" + make || die +} + +src_install() { + + make DESTDIR=${D} install || die "install failed" + + # the upstream install scatters things around a bit. The following cleans + # that up to make it policy compliant. + + mkdir ${D}/usr/share/${PN}-${SLOT}/src + cd ${S}/src/java + find . -name '*.java' | xargs zip ${D}/usr/share/${PN}-${SLOT}/src/libglade-java-${PV}.src.zip + + # 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? + + 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 +} |