summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSerkan Kaba <serkan@gentoo.org>2008-11-28 05:18:29 +0000
committerSerkan Kaba <serkan@gentoo.org>2008-11-28 05:18:29 +0000
commit3db295c994a1423b92191283ca483304001a984d (patch)
treeafc583a2ed371ce2c94f5c336f3212e815bd1ab4 /dev-java/dbus-java/dbus-java-2.5.1.ebuild
parentFix building w/ gcc-4.3. Bug #228839. (diff)
downloadgentoo-2-3db295c994a1423b92191283ca483304001a984d.tar.gz
gentoo-2-3db295c994a1423b92191283ca483304001a984d.tar.bz2
gentoo-2-3db295c994a1423b92191283ca483304001a984d.zip
Version bump. Remove old.
(Portage version: 2.2_rc14/cvs/Linux 2.6.27-gentoo-r2 x86_64)
Diffstat (limited to 'dev-java/dbus-java/dbus-java-2.5.1.ebuild')
-rw-r--r--dev-java/dbus-java/dbus-java-2.5.1.ebuild89
1 files changed, 89 insertions, 0 deletions
diff --git a/dev-java/dbus-java/dbus-java-2.5.1.ebuild b/dev-java/dbus-java/dbus-java-2.5.1.ebuild
new file mode 100644
index 000000000000..ddceba281375
--- /dev/null
+++ b/dev-java/dbus-java/dbus-java-2.5.1.ebuild
@@ -0,0 +1,89 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/dbus-java/dbus-java-2.5.1.ebuild,v 1.1 2008/11/28 05:18:29 serkan Exp $
+
+JAVA_PKG_IUSE="doc source"
+inherit eutils java-pkg-2
+
+DESCRIPTION="Java bindings for the D-Bus messagebus."
+HOMEPAGE="http://dbus.freedesktop.org/"
+SRC_URI="http://dbus.freedesktop.org/releases/dbus-java/${P}.tar.gz"
+
+LICENSE="|| ( GPL-2 AFL-2.1 )"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
+IUSE="debug"
+
+RDEPEND=">=virtual/jre-1.5
+ >=dev-java/libmatthew-java-0.7-r1"
+
+DEPEND=">=virtual/jdk-1.5
+ app-text/docbook-sgml-utils
+ dev-java/libmatthew-java
+ sys-devel/gettext
+ doc? (
+ dev-tex/tex4ht
+ dev-texlive/texlive-latexextra
+ )"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}" || die
+ epatch "${FILESDIR}/${P}-jarfixes.patch"
+}
+
+src_compile() {
+ local debug="disable"
+ use debug && debug="enable"
+ local libdir=$(dirname $(java-pkg_getjar libmatthew-java unix.jar))
+ emake -j1 JCFLAGS="$(java-pkg_javac-args)" \
+ STRIP=echo DEBUG=${debug} JAVAUNIXJARDIR=${libdir} bin || die "emake failed"
+
+ for i in *.sgml; do
+ docbook2man $i || die;
+ mv DBUS-JAVA.1 $(echo $i | sed 's/sgml/1/g') || die;
+ done
+
+ if use doc; then
+ emake doc || die "emake doc failed"
+ fi
+}
+
+src_install() {
+ local debug="disable"
+ use debug && debug="enable"
+ for jar in unix debug-${debug}; do
+ java-pkg_register-dependency libmatthew-java ${jar}.jar
+ done
+ java-pkg_newjar lib${P}.jar dbus.jar
+ java-pkg_newjar dbus-java-viewer-${PV}.jar dbus-java-viewer.jar
+ java-pkg_newjar dbus-java-bin-${PV}.jar dbus-java-bin.jar
+ local javaargs='-DPid=$$'
+ javaargs="${javaargs} -DVersion=${PV}"
+
+ java-pkg_dolauncher CreateInterface \
+ --main org.freedesktop.dbus.bin.CreateInterface \
+ --java_args "${javaargs}"
+
+ java-pkg_dolauncher DBusViewer \
+ --main org.freedesktop.dbus.viewer.DBusViewer \
+ --java_args "${javaargs}"
+
+ java-pkg_dolauncher ListDBus \
+ --main org.freedesktop.dbus.bin.ListDBus \
+ --java_args "${javaargs}"
+
+ java-pkg_dolauncher DBusDaemon \
+ --main org.freedesktop.dbus.bin.DBusDaemon \
+ --java_args "${javaargs}"
+
+ java-pkg_dolauncher DBusCall \
+ --main org.freedesktop.dbus.bin.Caller \
+ --java_args "${javaargs}"
+
+ doman *.1
+ dodoc INSTALL changelog AUTHORS README || die
+ use source && java-pkg_dosrc org/
+ use doc && java-pkg_dojavadoc doc/api
+ use doc && java-pkg_dohtml doc/dbus-java/*
+}