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

Contents of /dev-java/java-gnome/java-gnome-4.0.19-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Fri May 4 16:09:26 2012 UTC (2 years, 2 months ago) by sera
Branch: MAIN
Version bump.
Require python2 for building. #390103

(Portage version: 2.1.10.57/cvs/Linux x86_64)

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

  ViewVC Help
Powered by ViewVC 1.1.20