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

Contents of /dev-java/java-gnome/java-gnome-2.8.2-r3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Wed Jun 29 15:11:51 2005 UTC (9 years, 2 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/java-gnome/java-gnome-2.8.2-r3.ebuild,v 1.3 2005/02/17 17:33:53 luckyduck Exp $
4
5 inherit eutils java-pkg
6
7 DESCRIPTION="A meta package for all the bindings libraries necessary to write GNOME/GTK applicatons in Java"
8 HOMEPAGE="http://java-gnome.sourceforge.net/"
9 DEPEND="!<dev-java/java-gnome-2.8
10 >=dev-java/libgtk-java-2.4.7.2
11 >=dev-java/libgnome-java-2.8.2-r1
12 >=dev-java/libgconf-java-2.8.2
13 >=dev-java/libglade-java-2.8.2.2
14 doc? ( >=virtual/jdk-1.2 )
15 app-arch/unzip"
16
17 SLOT="2.8"
18 LICENSE="as-is"
19 KEYWORDS="~x86 ~ppc"
20 IUSE="doc"
21
22 pkg_setup() {
23
24 einfo ""
25 einfo "The java-gnome project has made considerably changes to its internal"
26 einfo "structure. Instead of one monolithic java-gnome package, there are"
27 einfo "now indiviudal builds for libgtk-java, libgnome-java, libglade-java, etc"
28 einfo ""
29 einfo "This java-gnome ebuild is now a meta package which simply depends on"
30 einfo "the various new ebuilds"
31 einfo ""
32 ewarn "While this ebuild is slotted 2.8, it is marked as being blocked by"
33 ewarn "the presence of older versions of java-gnome if they exist on your"
34 ewarn "system. Not only were the 2.6 bindings really buggy, but with the"
35 ewarn "major re-organization of this package into modular pieces, the"
36 ewarn "risk of library and/or jar naming collisions is too high."
37 einfo ""
38 einfo "By the time you see this message, the above issues have been"
39 einfo "resolved (ie the new lib*-java packages will all be merged,"
40 einfo "and any old java-gnome packages are now removed)."
41 einfo ""
42 }
43
44 src_compile() {
45 use doc || return
46
47 #
48 # Upstream's reorg led to a total mess with the generated Javadoc.
49 # This attempts to replace it for the time being, creating Javadoc
50 # for all the java-gnome libraries at one go (which makes way more sense
51 # than one per library scattered all over)
52 #
53
54 cd ${WORKDIR}
55
56 # Yes, this is terrible hard coding. I'd welcome someone telling me
57 # how to do this better.
58
59 unzip -o -q /usr/share/libgtk-java-2.4/src/libgtk-java-2.4.7.2.src.zip -d java
60 unzip -o -q /usr/share/libgnome-java-2.8/src/libgnome-java-2.8.2.src.zip -d java
61 unzip -o -q /usr/share/libgconf-java-2.8/src/libgconf-java-2.8.2.src.zip -d java
62 unzip -o -q /usr/share/libglade-java-2.8/src/libglade-java-2.8.2.2.src.zip -d java
63
64 mkdir api
65 javadoc \
66 -public -use -version -author \
67 -windowtitle "java-gnome ${PV} API Reference" \
68 -doctitle "API reference for <B><TT>java-gnome</TT></B>, version ${PV}" \
69 -d api \
70 -sourcepath java \
71 org.gnu.glib \
72 org.gnu.pango \
73 org.gnu.atk \
74 org.gnu.gdk \
75 org.gnu.gtk \
76 org.gnu.gtk.event \
77 org.gnu.gnome \
78 org.gnu.gnome.event \
79 org.gnu.glade \
80 org.gnu.gconf
81 }
82
83 src_install() {
84 einfo "creating symlinks for convenience and backwards compatability"
85
86 #
87 # This is just here for convenience and for legacy compatability.
88 #
89 # This isn't meant to be Java policy compliant. There is no
90 # package.env file for this ebuild because the individual libraries
91 # it depends on all have proper package.env (which this uses, in fact).
92 #
93
94 dodir /usr/share/java-gnome/lib
95 cd ${D}/usr/share/java-gnome/lib
96
97 gtk_jar=`java-config -p libgtk-java-2.4`
98 ln -s $gtk_jar `basename $gtk_jar`
99
100 gnome_jar=`java-config -p libgnome-java-2.8`
101 ln -s $gnome_jar `basename $gnome_jar`
102
103 glade_jar=`java-config -p libglade-java-2.8`
104 ln -s $glade_jar `basename $glade_jar`
105
106 gconf_jar=`java-config -p libgconf-java-2.8`
107 ln -s $gconf_jar `basename $gconf_jar`
108
109
110 if use doc; then
111 dodir ${D}/usr/share/doc/${PF}
112 java-pkg_dohtml -r ${WORKDIR}/api
113 fi
114 }

  ViewVC Help
Powered by ViewVC 1.1.20