/[gentoo-x86]/dev-java/libglade-java/libglade-java-2.12.2.ebuild
Gentoo

Contents of /dev-java/libglade-java/libglade-java-2.12.2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Sun Oct 15 15:58:22 2006 UTC (12 years, 8 months ago) by nichoj
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Pruned old revisions.
(Portage version: 2.1.2_pre2-r6)
 (Unsigned Manifest commit)

1 # Copyright 1999-2006 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-java/libglade-java/libglade-java-2.12.2.ebuild,v 1.2 2006/09/14 20:15:46 nichoj Exp $
4
5 # Must be before the gnome.org inherit
6 GNOME_TARBALL_SUFFIX="gz"
7 inherit java-pkg eutils gnome.org
8
9 DESCRIPTION="Java bindings for Glade"
10 HOMEPAGE="http://java-gnome.sourceforge.net/"
11
12 # Not on gnome.org mirrors yet :-(
13 SRC_URI="http://research.operationaldynamics.com/linux/java-gnome/dist/${PF}.tar.gz"
14
15 LICENSE="LGPL-2.1"
16 SLOT="2.12"
17 KEYWORDS="~amd64 ~ppc ~x86"
18 IUSE="doc gcj gnome"
19
20 DEPS=">=gnome-base/libglade-2.5.1
21 >=dev-java/glib-java-0.2.3
22 >=dev-java/libgnome-java-2.8.0
23 gnome? ( >=gnome-base/libgnomeui-2.12.0 >=gnome-base/libgnomecanvas-2.12.0 )"
24
25 DEPEND=">=virtual/jdk-1.4
26 ${DEPS}"
27 RDEPEND=">=virtual/jre-1.4
28 ${DEPS}"
29
30 pkg_setup() {
31 java-pkg_pkg_setup
32 if use gcj ; then
33 if ! built_with_use sys-devel/gcc gcj ; then
34 ewarn
35 ewarn "You must build gcc with the gcj support to build with gcj"
36 ewarn
37 ebeep 5
38 die "No GCJ support found!"
39 fi
40 fi
41 }
42
43 src_compile() {
44 # JARDIR is a hack for java-config
45 econf $(use_with gcj gcj-compile) \
46 $(use_with doc javadocs) \
47 $(use_with gnome) \
48 --with-jardir=/usr/share/${PN}-${SLOT}/lib \
49 || die "configure failed"
50
51 emake || die "compile failed"
52
53 # Fix the broken pkgconfig file
54 sed -i \
55 -e "s:classpath.*$:classpath=\${prefix}/share/${PN}-${SLOT}/lib/${PF}.jar:" \
56 ${S}/glade-java.pc
57 }
58
59 src_install() {
60 emake DESTDIR=${D} install || die "install failed"
61
62 # Examples as documentation
63 use doc || rm -rf ${D}/usr/share/doc/${PF}/examples
64
65 # use java-pkg_dojar to install the jar
66 rm -rf ${D}/usr/share/${PN}-${SLOT}
67
68 mv ${S}/glade${SLOT}.jar ${S}/${PF}.jar
69 java-pkg_dojar ${S}/${PF}.jar
70
71 if use doc ; then
72 java-pkg_dohtml -r ${S}/doc
73 fi
74 }

  ViewVC Help
Powered by ViewVC 1.1.20