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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (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.4: +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.10.1.ebuild,v 1.4 2006/09/14 20:15:46 nichoj Exp $
4
5 #
6 # WARNING: Because java-gnome is a set of bindings to native GNOME libraries,
7 # it has, like any GNOME project, a massive autoconf setup, and unlike many
8 # other java libraries, it has its own [necessary] `make install` step.
9 # As a result, this ebuild is VERY sensitive to the internal layout of the
10 # upstream project. Because these issues are currently evolving upstream,
11 # simply version bumping this ebuild is not likely to work but FAILURES WILL
12 # BE VERY SUBTLE IF IT DOES NOT WORK.
13 #
14
15 inherit eutils gnome.org
16
17 DESCRIPTION="Java bindings for [Lib]Glade"
18 HOMEPAGE="http://java-gnome.sourceforge.net/"
19 RDEPEND=">=gnome-base/libglade-2.5.1
20 gnome? ( >=gnome-base/libgnomeui-2.10.0 )
21 gnome? ( >=gnome-base/libgnomecanvas-2.10.0 )
22 >=dev-java/libgtk-java-2.6.2
23 gnome? ( >=dev-java/libgnome-java-2.10.1 )
24 >=virtual/jre-1.2"
25
26
27 DEPEND=">=virtual/jdk-1.2
28 ${RDEPEND}
29 app-arch/zip"
30
31 #
32 # Critical that this match glade's apiversion
33 #
34 SLOT="2.10"
35 LICENSE="LGPL-2.1"
36 KEYWORDS="~ppc ~x86"
37 IUSE="gcj gnome"
38
39 src_unpack() {
40 unpack ${A}
41 cd ${S}
42
43 epatch ${FILESDIR}/libglade-java-2.10.0_fix-install-dir.patch
44
45 sed -i \
46 -e "s:/share/${PN}/:/share/${PN}-${SLOT}/:" \
47 -e "s:/share/java/:/share/${PN}-${SLOT}/lib/:" \
48 configure || die "sed configure error"
49
50 rm -f ${S}/config.cache
51 }
52
53 src_compile() {
54 local conf
55
56 use gcj || conf="${conf} --without-gcj-compile"
57 use gnome || conf="${conf} --without-gnome"
58
59 cd ${S}
60
61 #
62 # Ordinarily, moving things around post `make install` would do
63 # the trick, but there are paths hard coded in .pc files and in the
64 # `make install` step itself that need to be influenced.
65 #
66
67 ./configure \
68 --host=${CHOST} \
69 --prefix=/usr \
70 --with-jardir=/usr/share/${PN}-${SLOT}/lib \
71 ${conf} || die "./configure failed"
72 make || die
73 }
74
75 src_install() {
76
77 make DESTDIR=${D} install || die "install failed"
78
79 # the upstream install scatters things around a bit. The following cleans
80 # that up to make it policy compliant.
81
82 mkdir ${D}/usr/share/${PN}-${SLOT}/src
83 cd ${S}/src/java
84 find . -name '*.java' | xargs zip ${D}/usr/share/${PN}-${SLOT}/src/libglade-java-${PV}.src.zip
85
86 # with dojar misbehaving, better do to this manually for the
87 # time being. Yes, this is bad hard coding, but what in this ebuild isn't?
88
89 echo "DESCRIPTION=${DESCRIPTION}" \
90 > ${D}/usr/share/${PN}-${SLOT}/package.env
91
92 echo "CLASSPATH=/usr/share/${PN}-${SLOT}/lib/glade${SLOT}.jar" \
93 >> ${D}/usr/share/${PN}-${SLOT}/package.env
94 }

  ViewVC Help
Powered by ViewVC 1.1.20