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

Contents of /dev-java/java-gnome/java-gnome-4.0.10.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Sat Jul 25 15:51:07 2009 UTC (4 years, 8 months ago) by serkan
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
Version bump. Remove old.
(Portage version: 2.2_rc33/cvs/Linux x86_64, RepoMan options: --force)

1 # Copyright 1999-2009 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.10.ebuild,v 1.3 2009/03/22 18:33:56 josejx 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.16.1
23 >=x11-libs/gtk+-2.14
24 >=gnome-base/libglade-2.6.3
25 >=gnome-base/libgnome-2.22.0
26 >=gnome-base/gnome-desktop-2.22.0
27 >=x11-libs/cairo-1.6.4[svg]
28 >=virtual/jre-1.5"
29 DEPEND="${RDEPEND}
30 dev-java/junit:0
31 dev-lang/perl
32 dev-util/pkgconfig
33 >=virtual/jdk-1.5"
34
35 # Needs X11
36 RESTRICT="test"
37
38 S="${WORKDIR}/${MY_P}"
39
40 src_prepare() {
41 epatch "${FILESDIR}"/${P}-i18n-javadoc.patch
42 java-pkg-2_src_prepare
43 }
44
45 src_configure() {
46 # Handwritten in perl so not using econf
47 ./configure prefix=/usr libdir=/usr/$(get_libdir)/${PN}-${SLOT} jardir=/usr/share/${PN}-${SLOT}/lib || die
48 }
49
50 src_compile() {
51 # Fails parallel build in case GCJ is detected
52 # See https://bugs.gentoo.org/show_bug.cgi?id=200550
53 emake -j1 || die "Compilation of java-gnome failed"
54
55 if use doc; then
56 DISPLAY= emake -j1 doc || die "Making documentation failed"
57 fi
58 }
59
60 src_install(){
61 emake -j1 DESTDIR="${D}" install || die
62 java-pkg_regjar /usr/share/${PN}-${SLOT}/lib/gtk-${SLOT}.jar
63 java-pkg_regjar /usr/share/${PN}-${SLOT}/lib/gtk.jar
64
65 dodoc AUTHORS HACKING NEWS README || die
66 use doc && java-pkg_dojavadoc doc/api
67 use examples && java-pkg_doexamples doc/examples
68 use source && java-pkg_dosrc src/bindings/org
69 }

  ViewVC Help
Powered by ViewVC 1.1.20