summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSaleem Abdulrasool <compnerd@gentoo.org>2005-11-12 23:34:27 +0000
committerSaleem Abdulrasool <compnerd@gentoo.org>2005-11-12 23:34:27 +0000
commit51e8a41c8df2a95e9a8689508d93bf04e957053c (patch)
tree8586015f3daf08769106c59f980ec00bce561006
parentFixing name typo in package.mask (diff)
downloadgentoo-2-51e8a41c8df2a95e9a8689508d93bf04e957053c.tar.gz
gentoo-2-51e8a41c8df2a95e9a8689508d93bf04e957053c.tar.bz2
gentoo-2-51e8a41c8df2a95e9a8689508d93bf04e957053c.zip
Initial import of cairo-java
(Portage version: 2.0.53_rc7)
-rw-r--r--dev-java/cairo-java/ChangeLog10
-rw-r--r--dev-java/cairo-java/Manifest3
-rw-r--r--dev-java/cairo-java/cairo-java-1.0.1.ebuild83
-rw-r--r--dev-java/cairo-java/files/cairo_jni_includes.patch17
-rw-r--r--dev-java/cairo-java/files/digest-cairo-java-1.0.11
-rw-r--r--dev-java/cairo-java/metadata.xml13
6 files changed, 127 insertions, 0 deletions
diff --git a/dev-java/cairo-java/ChangeLog b/dev-java/cairo-java/ChangeLog
new file mode 100644
index 000000000000..f8ebacff3439
--- /dev/null
+++ b/dev-java/cairo-java/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for dev-java/cairo-java
+# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/cairo-java/ChangeLog,v 1.1 2005/11/12 23:34:27 compnerd Exp $
+
+*cairo-java-1.0.1 (12 Nov 2005)
+
+ 12 Nov 2005; Saleem Abdulrasool <compnerd@gentoo.org>
+ +files/cairo_jni_includes.patch, +metadata.xml, +cairo-java-1.0.1.ebuild:
+ Initial import of cairo-java
+
diff --git a/dev-java/cairo-java/Manifest b/dev-java/cairo-java/Manifest
new file mode 100644
index 000000000000..31355f9cb5b0
--- /dev/null
+++ b/dev-java/cairo-java/Manifest
@@ -0,0 +1,3 @@
+MD5 4a080402ac6effe2074ba3c7870ea0a7 cairo-java-1.0.1.ebuild 1872
+MD5 f629db15b5df144efde17453c0c98c34 files/cairo_jni_includes.patch 841
+MD5 a74a4781b3ab4f8d361c0b71dd4fae6d files/digest-cairo-java-1.0.1 68
diff --git a/dev-java/cairo-java/cairo-java-1.0.1.ebuild b/dev-java/cairo-java/cairo-java-1.0.1.ebuild
new file mode 100644
index 000000000000..b68116646615
--- /dev/null
+++ b/dev-java/cairo-java/cairo-java-1.0.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/cairo-java/cairo-java-1.0.1.ebuild,v 1.1 2005/11/12 23:34:27 compnerd Exp $
+
+# Must be before the gnome.org inherit
+GNOME_TARBALL_SUFFIX="gz"
+
+inherit java-pkg eutils gnome.org
+
+DESCRIPTION="Java bindings for cairo"
+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="1.0"
+KEYWORDS="~x86"
+IUSE="doc gcj"
+
+DEPS=">=x11-libs/cairo-1.0.0-r2
+ >=dev-java/glib-java-0.2.1
+ >=media-libs/fontconfig-2.3.1
+ >=dev-libs/glib-2.6.0
+ 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_unpack() {
+ unpack ${A}
+ cd ${S}
+
+ epatch ${FILESDIR}/cairo_jni_includes.patch
+
+ # Oh the joys of patching the autotools stuff
+ aclocal || 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}/cairo${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/cairo-java/files/cairo_jni_includes.patch b/dev-java/cairo-java/files/cairo_jni_includes.patch
new file mode 100644
index 000000000000..a5144c9daa4c
--- /dev/null
+++ b/dev-java/cairo-java/files/cairo_jni_includes.patch
@@ -0,0 +1,17 @@
+--- Makefile.am.orig 2005-11-12 14:02:19.000000000 -0600
++++ Makefile.am 2005-11-12 14:02:42.000000000 -0600
+@@ -74,11 +74,11 @@
+ libcairojava_la_SOURCES = $(java_cairo_source_files)
+ libcairojava_la_GCJFLAGS = -fjni -I$(srcdir)/src/java -Isrc/java --classpath=$(JGJAR):$(srcdir)/src/java
+ libcairojava_la_LDFLAGS = $(JGJAVA_LIBS) -release $(apiversion)
+-endif
+-
++else
+ libcairojni_la_SOURCES = $(jni_cairo_source_files)
+-libcairojni_la_CFLAGS = $(CAIRO_CFLAGS) $(FONTCONFIG_CFLAGS) $(GLIB_CFLAGS) $(JGJAVA_CFLAGS) -I$(includedir)
++libcairojni_la_CFLAGS = $(CAIRO_CFLAGS) $(FONTCONFIG_CFLAGS) $(GLIB_CFLAGS) $(JGJAVA_CFLAGS) -I$(includedir) $(JNI_INCLUDES)
+ libcairojni_la_LDFLAGS = $(CAIRO_LIBS) $(FONTCONFIG_LIBS) $(JGJNI_LIBS) -release $(apiversion)
++endif
+
+ # automake should support generating versioned jars
+ cairo_jardir = $(jardir)
diff --git a/dev-java/cairo-java/files/digest-cairo-java-1.0.1 b/dev-java/cairo-java/files/digest-cairo-java-1.0.1
new file mode 100644
index 000000000000..9aaab392eeb8
--- /dev/null
+++ b/dev-java/cairo-java/files/digest-cairo-java-1.0.1
@@ -0,0 +1 @@
+MD5 3822e7d4dca5294e5d41c9a9cebbb914 cairo-java-1.0.1.tar.gz 356725
diff --git a/dev-java/cairo-java/metadata.xml b/dev-java/cairo-java/metadata.xml
new file mode 100644
index 000000000000..e3cc8f4cf36c
--- /dev/null
+++ b/dev-java/cairo-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">
+ JAVA bindings for CAIRO.
+ </longdescription>
+</pkgmetadata>
+