# ChangeLog for dev-java/libgnome-java
# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-java/libgnome-java/ChangeLog,v 1.11 2005/09/11 11:25:31 axxo Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-java/libgnome-java/ChangeLog,v 1.12 2005/11/12 23:40:45 compnerd Exp $
+
+*libgnome-java-2.12.1 (12 Nov 2005)
+
+ 12 Nov 2005; Saleem Abdulrasool <compnerd@gentoo.org> metadata.xml,
+ +libgnome-java-2.12.1.ebuild:
+ Version bump with mask
11 Sep 2005; Thomas Matthijs <axxo@gentoo.org>
libgnome-java-2.8.3.1.ebuild:
--- /dev/null
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/libgnome-java/libgnome-java-2.12.1.ebuild,v 1.1 2005/11/12 23:40:45 compnerd Exp $
+
+# Must be before the gnome.org inherit
+GNOME_TARBALL_SUFFIX="gz"
+
+inherit java-pkg eutils gnome.org
+
+DESCRIPTION="Java bindings for GNOME"
+HOMEPAGE="http://java-gnome.sourceforge.net/"
+
+# Not on gnome.org mirrors yet :-(
+SRC_URI="http://research.operationaldynamics.com/linux/java-gnome/dist/${PF}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="2.12"
+KEYWORDS="~x86"
+IUSE="doc gcj"
+
+DEPS=">=gnome-base/libgnome-2.10.0
+ >=gnome-base/libgnomeui-2.12.0
+ >=gnome-base/libgnomecanvas-2.12.0
+ >=dev-java/glib-java-0.2.1
+ >=dev-java/libgtk-java-2.8.1
+ dev-util/pkgconfig"
+
+DEPEND=">=virtual/jdk-1.4
+ >=sys-apps/sed-4
+ ${DEPS}"
+RDEPEND=">=virtual/jre-1.4
+ ${DEPS}"
+
+pkg_setup() {
+ if use gcj -a ! built_with_use sys-devel/gcc gcc ; then
+ ewarn
+ ewarn "You must build gcc with the gcj support to build with gcj"
+ ewarn
+ ebeep 5
+ die "No GCJ support found!"
+ fi
+}
+
+src_compile() {
+ # JARDIR is a hack for java-config
+ econf $(use_with gcj gcj-compile) \
+ $(use_with doc javadocs) \
+ --with-jardir=/usr/share/${PN}-${SLOT}/lib \
+ || die "configure failed"
+
+ emake || die "compile failed"
+
+ # Fix the broken pkgconfig file
+ sed -i \
+ -e "s:classpath.*$:classpath=\${prefix}/share/${PN}-${SLOT}/lib/${PF}.jar:" \
+ ${S}/gnome2-java.pc
+}
+
+src_install() {
+ emake DESTDIR=${D} install || die "install failed"
+
+ # Examples and tutorial as documentation
+ use doc || rm -rf ${D}/usr/share/doc/${PF}/{examples,tutorial}
+
+ # use java-pkg_dojar to install the jar
+ rm -rf ${D}/usr/share/${PN}-${SLOT}
+
+ mv ${S}/gnome${SLOT}.jar ${S}/${PF}.jar
+ java-pkg_dojar ${S}/${PF}.jar
+
+ if use doc ; then
+ java-pkg_dohtml -r ${S}/doc
+ fi
+}