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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sat Mar 7 14:51:31 2009 UTC (5 years, 4 months ago) by betelgeuse
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Remove old ebuild.
(Portage version: 2.2_rc20/cvs/Linux 2.6.29-rc6 i686)

1 # Copyright 1999-2008 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.7-r2.ebuild,v 1.1 2008/10/05 11:06:46 serkan Exp $
4
5 EAPI=1
6 JAVA_PKG_IUSE="doc examples source"
7
8 inherit eutils versionator java-pkg-2
9
10 DESCRIPTION="Java bindings for GTK and GNOME"
11 HOMEPAGE="http://java-gnome.sourceforge.net/"
12 SRC_URI="mirror://gnome/sources/${PN}/$(get_version_component_range 1-2)/${P}.tar.bz2"
13
14 LICENSE="GPL-2-with-linking-exception"
15 SLOT="4.0"
16 KEYWORDS="~amd64 ~ppc ~x86"
17 IUSE=""
18
19 RDEPEND=">=dev-libs/glib-2.12.13
20 >=x11-libs/gtk+-2.12
21 >=gnome-base/libglade-2.6.1
22 >=gnome-base/libgnome-2.18.0
23 >=gnome-base/gnome-desktop-2.18.0
24 >=virtual/jre-1.5"
25 DEPEND="${RDEPEND}
26 dev-java/junit:0
27 dev-lang/python
28 >=virtual/jdk-1.5
29 dev-util/pkgconfig"
30
31 # Needs X11
32 RESTRICT="test"
33
34 src_unpack() {
35 unpack ${A}
36 cd "${S}" || die
37 epatch "${FILESDIR}/${PN}-gtk-214.patch"
38 }
39
40 pkg_setup() {
41 if ! built_with_use x11-libs/cairo svg; then
42 echo
43 eerror "x11-libs/cairo has not been built with svg support."
44 eerror "Please re-emerge cairo with the svg use-flag enabled."
45 die "missing svg flag for x11-libs/cairo"
46 fi
47 java-pkg-2_pkg_setup
48 }
49
50 src_compile() {
51 # Handwritten in perl so not using econf
52 ./configure --prefix=/usr || die
53
54 # Fails parallel build in case GCJ is detected
55 # See https://bugs.gentoo.org/show_bug.cgi?id=200550
56 emake -j1 || die "Compilation of java-gnome failed"
57
58 if use doc; then
59 emake -j1 doc || die "Making documentation failed"
60 fi
61 }
62
63 src_install(){
64 java-pkg_doso tmp/*.so
65 java-pkg_dojar tmp/*.jar
66
67 dodoc AUTHORS HACKING NEWS README || die
68
69 use doc && java-pkg_dojavadoc doc/api
70 use examples && java-pkg_doexamples doc/examples
71 use source && java-pkg_dosrc src/bindings/org
72 }

  ViewVC Help
Powered by ViewVC 1.1.20