diff options
author | Saleem Abdulrasool <compnerd@gentoo.org> | 2005-11-12 23:28:39 +0000 |
---|---|---|
committer | Saleem Abdulrasool <compnerd@gentoo.org> | 2005-11-12 23:28:39 +0000 |
commit | 1f2695b210a7f43c14fbab7f3af5c4c53843da14 (patch) | |
tree | 62ed45de0ac8d4719c1ec7229d50f80ac7e32ec2 /dev-java | |
parent | Marked ~sh. (diff) | |
download | historical-1f2695b210a7f43c14fbab7f3af5c4c53843da14.tar.gz historical-1f2695b210a7f43c14fbab7f3af5c4c53843da14.tar.bz2 historical-1f2695b210a7f43c14fbab7f3af5c4c53843da14.zip |
Initial import of glib-java
Package-Manager: portage-2.0.53_rc7
Diffstat (limited to 'dev-java')
-rw-r--r-- | dev-java/glib-java/ChangeLog | 11 | ||||
-rw-r--r-- | dev-java/glib-java/Manifest | 6 | ||||
-rw-r--r-- | dev-java/glib-java/files/aclocal_voodoo.patch | 23 | ||||
-rw-r--r-- | dev-java/glib-java/files/digest-glib-java-0.2.1 | 1 | ||||
-rw-r--r-- | dev-java/glib-java/files/jg_common-macromagic.patch | 11 | ||||
-rw-r--r-- | dev-java/glib-java/glib-java-0.2.1.ebuild | 83 | ||||
-rw-r--r-- | dev-java/glib-java/metadata.xml | 13 |
7 files changed, 148 insertions, 0 deletions
diff --git a/dev-java/glib-java/ChangeLog b/dev-java/glib-java/ChangeLog new file mode 100644 index 000000000000..0f41090a70b3 --- /dev/null +++ b/dev-java/glib-java/ChangeLog @@ -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 index 000000000000..856cb4942cc5 --- /dev/null +++ b/dev-java/glib-java/Manifest @@ -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 index 000000000000..b0c0b2f922a7 --- /dev/null +++ b/dev-java/glib-java/files/aclocal_voodoo.patch @@ -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 index 000000000000..40a59b435655 --- /dev/null +++ b/dev-java/glib-java/files/digest-glib-java-0.2.1 @@ -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 index 000000000000..e471b8f4ed9b --- /dev/null +++ b/dev-java/glib-java/files/jg_common-macromagic.patch @@ -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 index 000000000000..7620743abd9d --- /dev/null +++ b/dev-java/glib-java/glib-java-0.2.1.ebuild @@ -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 index 000000000000..d385ddce3bc9 --- /dev/null +++ b/dev-java/glib-java/metadata.xml @@ -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> + |