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

Contents of /dev-java/java-gnome/java-gnome-2.8.3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Sun Oct 8 04:38:22 2006 UTC (8 years, 6 months ago) by nichoj
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Pruned old revisions. Version bump for bug #134860.
(Portage version: 2.1.2_pre2)
 (Unsigned Manifest commit)

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

  ViewVC Help
Powered by ViewVC 1.1.20