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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Fri May 4 16:09:26 2012 UTC (23 months, 2 weeks ago) by sera
Branch: MAIN
CVS Tags: HEAD
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 virtualx
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.1"
21 KEYWORDS="~amd64 ~ppc ~x86"
22 IUSE=""
23
24 COMMON_DEP="
25 app-text/enchant:0
26 dev-libs/atk:0
27 >=dev-libs/glib-2.28:2
28 dev-libs/libunique:3
29 gnome-base/librsvg:2
30 >=x11-libs/cairo-1.10.0[svg]
31 x11-libs/gdk-pixbuf:2
32 x11-libs/gtk+:3
33 x11-libs/gtksourceview:3.0
34 >=x11-libs/libnotify-0.7.0
35 x11-libs/pango:0"
36 RDEPEND="${COMMON_DEP}
37 >=virtual/jre-1.5"
38 DEPEND="${COMMON_DEP}
39 dev-java/junit:0
40 dev-lang/perl
41 >=virtual/jdk-1.5
42 virtual/pkgconfig"
43
44 S="${WORKDIR}/${MY_P}"
45
46 pkg_setup() {
47 python_set_active_version 2 #390103
48 python_pkg_setup
49 java-pkg-2_pkg_setup
50 }
51
52 src_configure() {
53 # Handwritten in perl so not using econf
54 ./configure prefix=/usr libdir=/usr/$(get_libdir)/${PN}-${SLOT} jardir=/usr/share/${PN}-${SLOT}/lib || die
55 }
56
57 src_compile() {
58 emake
59 use doc && DISPLAY= emake doc
60 }
61
62 # Needs X11, fails even then
63 RESTRICT="test"
64 src_test() {
65 Xemake test
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