Initial import of glib-java
authorSaleem Abdulrasool <compnerd@gentoo.org>
Sat, 12 Nov 2005 23:28:39 +0000 (23:28 +0000)
committerSaleem Abdulrasool <compnerd@gentoo.org>
Sat, 12 Nov 2005 23:28:39 +0000 (23:28 +0000)
Package-Manager: portage-2.0.53_rc7

dev-java/glib-java/ChangeLog [new file with mode: 0644]
dev-java/glib-java/Manifest [new file with mode: 0644]
dev-java/glib-java/files/aclocal_voodoo.patch [new file with mode: 0644]
dev-java/glib-java/files/digest-glib-java-0.2.1 [new file with mode: 0644]
dev-java/glib-java/files/jg_common-macromagic.patch [new file with mode: 0644]
dev-java/glib-java/glib-java-0.2.1.ebuild [new file with mode: 0644]
dev-java/glib-java/metadata.xml [new file with mode: 0644]

diff --git a/dev-java/glib-java/ChangeLog b/dev-java/glib-java/ChangeLog
new file mode 100644 (file)
index 0000000..0f41090
--- /dev/null
@@ -0,0 +1,11 @@
+# ChangeLog for dev-java/glib-java
+# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/glib-java/ChangeLog,v 1.1 2005/11/12 23:28:39 compnerd Exp $
+
+*glib-java-0.2.1 (12 Nov 2005)
+
+  12 Nov 2005; Saleem Abdulrasool <compnerd@gentoo.org>
+  +files/aclocal_voodoo.patch, +files/jg_common-macromagic.patch,
+  +metadata.xml, +glib-java-0.2.1.ebuild:
+  Initial import of glib-java.
+
diff --git a/dev-java/glib-java/Manifest b/dev-java/glib-java/Manifest
new file mode 100644 (file)
index 0000000..856cb49
--- /dev/null
@@ -0,0 +1,6 @@
+MD5 9f1dc97d56e7adca87f4e9b5fe55b1cd ChangeLog 439
+MD5 6f1550893a37966aca2b2c7ceb220b71 files/aclocal_voodoo.patch 749
+MD5 1d2e28a6488384bd29477c8488017453 files/digest-glib-java-0.2.1 67
+MD5 b1e11a9eba5947c307093c7e951155fe files/jg_common-macromagic.patch 482
+MD5 7ed2be06f236732c5dd1a74c7260fdfe glib-java-0.2.1.ebuild 1955
+MD5 5c652987877650c412fa53be7fdc9210 metadata.xml 351
diff --git a/dev-java/glib-java/files/aclocal_voodoo.patch b/dev-java/glib-java/files/aclocal_voodoo.patch
new file mode 100644 (file)
index 0000000..b0c0b2f
--- /dev/null
@@ -0,0 +1,23 @@
+--- Makefile.am.orig   2005-11-11 22:34:15.000000000 -0600
++++ Makefile.am        2005-11-11 22:36:54.000000000 -0600
+@@ -53,8 +53,8 @@
+ pkgconfig_DATA = glib-java.pc
+ 
+ # install the macros used by other java-gnome packages
+-glibmacrodir = $(datadir)/glib-java/macros
+-glibmacro_DATA = \
++m4datadir = $(datadir)/aclocal
++m4data_DATA= \
+       macros/jg_common.m4 \
+       macros/jg_check_nativecompile.m4 \
+       macros/am_path_gcj.m4 \
+--- glib-java.pc.in  2005-11-11 22:29:40.000000000 -0600
++++ glib-java.pc.in    2005-11-11 22:29:52.000000000 -0600
+@@ -9,7 +9,6 @@
+ Version: @VERSION@
+ api_version=@apiversion@
+ classpath=@INSTALLED_CLASSPATH@
+-macro_dir=@INSTALLED_MACRO_DIR@
+ jnilibs=-L@libdir@ -lglibjni
+ Libs: -L@libdir@ -lglibjava
+ Cflags: -I@includedir@/glib-java
diff --git a/dev-java/glib-java/files/digest-glib-java-0.2.1 b/dev-java/glib-java/files/digest-glib-java-0.2.1
new file mode 100644 (file)
index 0000000..40a59b4
--- /dev/null
@@ -0,0 +1 @@
+MD5 7d332e917db28e4489022927cb67dd5b glib-java-0.2.1.tar.gz 325434
diff --git a/dev-java/glib-java/files/jg_common-macromagic.patch b/dev-java/glib-java/files/jg_common-macromagic.patch
new file mode 100644 (file)
index 0000000..e471b8f
--- /dev/null
@@ -0,0 +1,11 @@
+--- macros/jg_common.m4        2005-04-13 10:35:40.000000000 -0500
++++ macros/jg_common.m4        2005-11-11 00:05:15.000000000 -0600
+@@ -4,7 +4,7 @@
+ 
+ dnl check to see if the user wants to generate javadoc
+ AC_ARG_WITH(javadocs,[  --without-javadocs    Do not build the javadocs for the bindings],
+-        javadocs="no", javadocs="yes")
++        javadocs=$withval, javadocs="yes")
+ AM_CONDITIONAL(BUILD_JAVADOC, test $javadocs = "yes")
+ 
+ AC_ARG_WITH([jardir], AS_HELP_STRING([--with-jardir],
diff --git a/dev-java/glib-java/glib-java-0.2.1.ebuild b/dev-java/glib-java/glib-java-0.2.1.ebuild
new file mode 100644 (file)
index 0000000..7620743
--- /dev/null
@@ -0,0 +1,83 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/glib-java/glib-java-0.2.1.ebuild,v 1.1 2005/11/12 23:28:39 compnerd Exp $
+
+# Must be before the gnome.org inherit
+GNOME_TARBALL_SUFFIX="gz"
+
+inherit java-pkg eutils gnome.org
+
+DESCRIPTION="Java bindings for glib"
+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="0.2"
+KEYWORDS="~x86"
+IUSE="doc gcj"
+
+DEPS=">=dev-libs/glib-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 ; then
+               if ! 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
+       fi
+}
+
+src_unpack() {
+       unpack ${A}
+       cd ${S}
+
+       epatch ${FILESDIR}/jg_common-macromagic.patch
+       epatch ${FILESDIR}/aclocal_voodoo.patch
+
+       # Oh the joys of patching the autotools stuff
+       aclocal -I macros || die "aclocal failed"
+       libtoolize --force --copy || die "libtoolize failed"
+       autoconf || die "autoconf failed"
+       automake || die "automake failed"
+}
+
+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}/${PN}.pc
+}
+
+src_install() {
+       emake DESTDIR=${D} install || die "install failed"
+
+       # use java-pkg_dojar to install the jar
+       rm -rf ${D}/usr/share/${PN}-${SLOT}
+
+       mv ${S}/glib${SLOT}.jar ${S}/${PF}.jar
+       java-pkg_dojar ${S}/${PF}.jar
+
+       if use doc ; then
+               java-pkg_dohtml -r ${S}/doc
+       fi
+}
diff --git a/dev-java/glib-java/metadata.xml b/dev-java/glib-java/metadata.xml
new file mode 100644 (file)
index 0000000..d385ddc
--- /dev/null
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+       <herd>java</herd>
+       <maintainer>
+               <email>compnerd@gentoo.org</email>
+               <name>Saleem Abdulrasool</name>
+       </maintainer>
+       <longdescription lang="en">
+               Core library for JAVA bindings for GNOME
+       </longdescription>
+</pkgmetadata>
+