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

Contents of /dev-java/libglade-java/libglade-java-2.8.2-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Wed Jun 29 15:11:18 2005 UTC (13 years, 11 months ago) by axxo
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
remove older + keyword x86
(Portage version: 2.0.51.22-r1)

1 # Copyright 1999-2005 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.8.2-r1.ebuild,v 1.3 2005/03/31 18:59:34 luckyduck 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 (allows GNOME/GTK applications writen in Java to be generate their user interface based on Glade description files)"
18 HOMEPAGE="http://java-gnome.sourceforge.net/"
19 RDEPEND=">=gnome-base/libglade-2.3.6
20 >=dev-java/libgtk-java-2.4.6-r2
21 >=dev-java/libgnome-java-2.8.2-r1
22 >=gnome-base/libgnomecanvas-2.8.0
23 >=virtual/jre-1.2"
24
25 #
26 # Unfortunately we need to run autogen to do the variable substitutions, so
27 # regardless of whether or not there is an upstream ./configure [at time of
28 # writing there isn't] we need to recreate it
29 #
30
31 DEPEND="${RDEPEND}
32 >=virtual/jdk-1.2
33 app-arch/zip"
34
35 #
36 # Critical that this match gtkapiversion
37 #
38 SLOT="2.8"
39 LICENSE="LGPL-2.1"
40 KEYWORDS="~x86 ~ppc"
41 IUSE="gcj"
42
43 src_unpack() {
44 unpack ${A}
45 cd ${S}
46 epatch ${FILESDIR}/libglade-java-2.8.2_gentoo-PN-SLOT.patch
47 epatch ${FILESDIR}/libglade-java-2.8.2_signal-connection-fix.patch
48 }
49
50 src_compile() {
51 local conf
52
53 use gcj || conf="${conf} --without-gcj-compile"
54
55 cd ${S}
56
57 #
58 # Ordinarily, moving things around post `make install` would do
59 # the trick, but there are paths hard coded in .pc files and in the
60 # `make install` step itself that need to be influenced.
61 #
62
63 ./autogen.sh \
64 --host=${CHOST} \
65 --prefix=/usr \
66 ${conf} || die "./configure failed"
67 make || die "compile failed"
68 }
69
70 src_install() {
71 # workaround Makefile bug not creating necessary parent directories
72 mkdir -p ${D}/usr/lib
73 mkdir -p ${D}/usr/share/java
74 mkdir -p ${D}/usr/lib/pkgconfig
75 mkdir -p ${D}/usr/share/doc/libglade${SLOT}-java
76
77 make prefix=${D}/usr install || die
78
79 # actually, at time of writing, there were no DOCUMENTS, but leave it here...
80 mv ${D}/usr/share/doc/libglade${SLOT}-java ${D}/usr/share/doc/${PF}
81
82 # the upstream install scatters things around a bit. The following cleans
83 # that up to make it policy compliant.
84
85 # I originally tried java-pkg_dojar here, but it has a few glitches
86 # like not copying symlinks as symlinks which makes a mess.
87
88 dodir /usr/share/${PN}-${SLOT}/lib
89 mv ${D}/usr/share/java/*.jar ${D}/usr/share/${PN}-${SLOT}/lib
90 rm -rf ${D}/usr/share/java
91
92 mkdir ${D}/usr/share/${PN}-${SLOT}/src
93 cd ${S}/src/java
94 zip -r ${D}/usr/share/${PN}-${SLOT}/src/libglade-java-${PV}.src.zip *
95
96 # again, with dojar misbehaving, better do to this manually for the
97 # time being. Yes, this is bad hard coding, but what in this ebuild isn't?
98
99 echo "DESCRIPTION=${DESCRIPTION}" \
100 > ${D}/usr/share/${PN}-${SLOT}/package.env
101
102 echo "CLASSPATH=/usr/share/${PN}-${SLOT}/lib/glade${SLOT}.jar" \
103 >> ${D}/usr/share/${PN}-${SLOT}/package.env
104 }

  ViewVC Help
Powered by ViewVC 1.1.20