/[gentoo-x86]/dev-java/dbus-java/dbus-java-2.7-r1.ebuild
Gentoo

Contents of /dev-java/dbus-java/dbus-java-2.7-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Fri May 28 19:32:15 2010 UTC (4 years, 1 month ago) by josejx
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +2 -2 lines
Marked ppc stable for bug #311745.
(Portage version: 2.1.8.3/cvs/Linux x86_64)

1 # Copyright 1999-2010 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-java/dbus-java/dbus-java-2.7-r1.ebuild,v 1.6 2010/05/23 19:52:06 pacho Exp $
4
5 EAPI="2"
6
7 JAVA_PKG_IUSE="doc source"
8 inherit eutils java-pkg-2
9
10 DESCRIPTION="Java bindings for the D-Bus messagebus."
11 HOMEPAGE="http://dbus.freedesktop.org/"
12 SRC_URI="http://dbus.freedesktop.org/releases/dbus-java/${P}.tar.gz"
13
14 LICENSE="|| ( GPL-2 AFL-2.1 )"
15 SLOT="0"
16 KEYWORDS="amd64 ppc ppc64 x86"
17 IUSE="debug"
18
19 RDEPEND=">=virtual/jre-1.5
20 >=dev-java/libmatthew-java-0.7-r1"
21
22 DEPEND=">=virtual/jdk-1.5
23 app-text/docbook-sgml-utils
24 dev-java/libmatthew-java
25 sys-devel/gettext
26 doc? (
27 dev-tex/tex4ht
28 dev-texlive/texlive-latexextra
29 )"
30
31 java_prepare() {
32 epatch "${FILESDIR}/${PN}-2.5.1-jarfixes.patch"
33
34 # dev-tex/tex4ht changed htlatex path, see bug #318963
35 if use doc; then
36 epatch "${FILESDIR}/${PN}-htlatex.patch"
37 fi
38 }
39
40 src_compile() {
41 local debug="disable"
42 use debug && debug="enable"
43 local libdir=$(dirname $(java-pkg_getjar libmatthew-java unix.jar))
44 emake -j1 JCFLAGS="$(java-pkg_javac-args)" \
45 STRIP=echo DEBUG=${debug} JAVAUNIXJARDIR=${libdir} bin || die "emake failed"
46
47 for i in *.sgml; do
48 docbook2man $i || die;
49 mv DBUS-JAVA.1 $(echo $i | sed 's/sgml/1/g') || die;
50 done
51
52 if use doc; then
53 emake doc || die "emake doc failed"
54 fi
55 }
56
57 src_install() {
58 local debug="disable"
59 use debug && debug="enable"
60 for jar in unix hexdump debug-${debug}; do
61 java-pkg_register-dependency libmatthew-java ${jar}.jar
62 done
63 java-pkg_newjar lib${P}.jar dbus.jar
64 java-pkg_newjar dbus-java-viewer-${PV}.jar dbus-java-viewer.jar
65 java-pkg_newjar dbus-java-bin-${PV}.jar dbus-java-bin.jar
66 local javaargs='-DPid=$$'
67 javaargs="${javaargs} -DVersion=${PV}"
68
69 java-pkg_dolauncher CreateInterface \
70 --main org.freedesktop.dbus.bin.CreateInterface \
71 --java_args "${javaargs}"
72
73 java-pkg_dolauncher DBusViewer \
74 --main org.freedesktop.dbus.viewer.DBusViewer \
75 --java_args "${javaargs}"
76
77 java-pkg_dolauncher ListDBus \
78 --main org.freedesktop.dbus.bin.ListDBus \
79 --java_args "${javaargs}"
80
81 java-pkg_dolauncher DBusDaemon \
82 --main org.freedesktop.dbus.bin.DBusDaemon \
83 --java_args "${javaargs}"
84
85 java-pkg_dolauncher DBusCall \
86 --main org.freedesktop.dbus.bin.Caller \
87 --java_args "${javaargs}"
88
89 doman *.1
90 dodoc INSTALL changelog AUTHORS README || die
91 use source && java-pkg_dosrc org/
92 use doc && java-pkg_dojavadoc doc/api
93 use doc && java-pkg_dohtml doc/dbus-java/*
94 }
95
96 src_test() {
97 local debug="disable"
98 use debug && debug="enable"
99 local libdir=$(dirname $(java-pkg_getjar libmatthew-java unix.jar))
100 emake -j1 JCFLAGS="$(java-pkg_javac-args) -encoding UTF-8" \
101 DEBUG=${debug} JAVAUNIXJARDIR=${libdir} JAVAUNIXLIBDIR=/usr/lib/libmatthew-java check || die "emake check failed"
102 }

  ViewVC Help
Powered by ViewVC 1.1.20