/[gentoo-x86]/dev-java/java-gnome/java-gnome-4.0.18-r2.ebuild
Gentoo

Contents of /dev-java/java-gnome/java-gnome-4.0.18-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Thu May 3 07:42:51 2012 UTC (2 years, 3 months ago) by jdhore
Branch: MAIN
Changes since 1.3: +3 -3 lines
dev-util/pkgconfig -> virtual/pkgconfig

(Portage version: 2.2.0_alpha101/cvs/Linux i686)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-java/java-gnome/java-gnome-4.0.18-r2.ebuild,v 1.3 2011/10/27 06:15:04 tetromino Exp $
4
5 EAPI=2
6 JAVA_PKG_IUSE="doc examples source"
7
8 inherit eutils versionator java-pkg-2 multilib
9
10 MY_PV="${PV/_/-}"
11 MY_P="${PN}-${MY_PV}"
12
13 DESCRIPTION="Java bindings for GTK and GNOME"
14 HOMEPAGE="http://java-gnome.sourceforge.net/"
15 SRC_URI="mirror://gnome/sources/${PN}/$(get_version_component_range 1-2)/${MY_P}.tar.bz2"
16
17 LICENSE="GPL-2-with-linking-exception"
18 SLOT="4.0"
19 KEYWORDS="~amd64 ~ppc ~x86"
20 IUSE=""
21
22 RDEPEND=">=dev-libs/glib-2.22
23 >=x11-libs/gtk+-2.22.0:2
24 >=gnome-base/libglade-2.6.4
25 >=gnome-base/libgnome-2.22.0
26 >=gnome-base/gnome-desktop-2.22.0:2
27 >=x11-libs/cairo-1.10.0[svg]
28 >=x11-libs/gtksourceview-2.6.2:2.0
29 >=app-text/gtkspell-2.0.15-r1:2
30 >=x11-libs/libnotify-0.4.5
31 >=dev-libs/libunique-1.0.8:1
32 >=gnome-base/librsvg-2.32.1
33 >=virtual/jre-1.5"
34 DEPEND="${RDEPEND}
35 dev-java/junit:0
36 dev-lang/perl
37 virtual/pkgconfig
38 >=virtual/jdk-1.5"
39
40 # Needs X11
41 RESTRICT="test"
42
43 S="${WORKDIR}/${MY_P}"
44
45 java_prepare() {
46 #fix dependency typo in configure
47 sed -i -e "s/librsvg-2.0atk/librsvg-2.0 atk/" configure || die
48 if has_version ">=x11-libs/libnotify-0.7"; then
49 epatch "${FILESDIR}"/${P}-libnotify-0.7.patch
50 fi
51 }
52
53 src_configure() {
54 # Handwritten in perl so not using econf
55 ./configure prefix=/usr libdir=/usr/$(get_libdir)/${PN}-${SLOT} jardir=/usr/share/${PN}-${SLOT}/lib || die
56 }
57
58 src_compile() {
59 # Fails parallel build in case GCJ is detected
60 # See https://bugs.gentoo.org/show_bug.cgi?id=200550
61 emake -j1 || die "Compilation of java-gnome failed"
62
63 if use doc; then
64 DISPLAY= emake -j1 doc || die "Making documentation failed"
65 fi
66 }
67
68 src_install(){
69 emake -j1 DESTDIR="${D}" install || die
70 java-pkg_regjar /usr/share/${PN}-${SLOT}/lib/gtk-${SLOT}.jar
71 java-pkg_regjar /usr/share/${PN}-${SLOT}/lib/gtk.jar
72
73 dodoc AUTHORS HACKING NEWS README || die
74 use doc && java-pkg_dojavadoc doc/api
75 use examples && java-pkg_doexamples doc/examples
76 use source && java-pkg_dosrc src/bindings/org
77 }

  ViewVC Help
Powered by ViewVC 1.1.20