1 |
commit: ab6b6706cfef340a742bbc5a48e1fbd8a9a95ebc |
2 |
Author: James Le Cuirot <chewi <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Aug 29 21:58:38 2017 +0000 |
4 |
Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Aug 29 22:00:20 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ab6b6706 |
7 |
|
8 |
dev-java/gnu-classpath: Drop gstreamer and Qt support (#629138) |
9 |
|
10 |
gstreamer:0.10 is going away due to multiple vulnerabilities. Qt4 will |
11 |
also be going sooner or later. Straight to stable as nothing new was |
12 |
added. I was tempted to last-rite this package but it's not become too |
13 |
bothersome yet. |
14 |
|
15 |
Package-Manager: Portage-2.3.8, Repoman-2.3.2 |
16 |
|
17 |
.../gnu-classpath/gnu-classpath-0.98-r6.ebuild | 116 +++++++++++++++++++++ |
18 |
1 file changed, 116 insertions(+) |
19 |
|
20 |
diff --git a/dev-java/gnu-classpath/gnu-classpath-0.98-r6.ebuild b/dev-java/gnu-classpath/gnu-classpath-0.98-r6.ebuild |
21 |
new file mode 100644 |
22 |
index 00000000000..465018f8f62 |
23 |
--- /dev/null |
24 |
+++ b/dev-java/gnu-classpath/gnu-classpath-0.98-r6.ebuild |
25 |
@@ -0,0 +1,116 @@ |
26 |
+# Copyright 1999-2017 Gentoo Foundation |
27 |
+# Distributed under the terms of the GNU General Public License v2 |
28 |
+ |
29 |
+EAPI=5 |
30 |
+ |
31 |
+inherit eutils java-pkg-2 multilib |
32 |
+ |
33 |
+MY_P=${P/gnu-/} |
34 |
+DESCRIPTION="Free core class libraries for use with Java VMs and compilers" |
35 |
+SRC_URI="mirror://gnu/classpath/${MY_P}.tar.gz" |
36 |
+HOMEPAGE="https://www.gnu.org/software/classpath" |
37 |
+ |
38 |
+LICENSE="GPL-2-with-linking-exception" |
39 |
+SLOT="0.98" |
40 |
+KEYWORDS="amd64 ppc64 x86 ~amd64-linux ~x86-linux ~x86-macos" |
41 |
+ |
42 |
+IUSE="alsa debug doc dssi examples gconf +gjdoc gmp gtk xml" |
43 |
+REQUIRED_USE="doc? ( gjdoc )" |
44 |
+ |
45 |
+RDEPEND="alsa? ( media-libs/alsa-lib ) |
46 |
+ dssi? ( >=media-libs/dssi-0.9 ) |
47 |
+ gconf? ( gnome-base/gconf:2= ) |
48 |
+ gjdoc? ( >=dev-java/antlr-2.7.7-r7:0 ) |
49 |
+ gmp? ( >=dev-libs/gmp-4.2.4:0= ) |
50 |
+ gtk? ( |
51 |
+ >=x11-libs/gtk+-2.8:2= |
52 |
+ dev-libs/glib:2= |
53 |
+ media-libs/freetype:2= |
54 |
+ >=x11-libs/cairo-1.1.9:= |
55 |
+ x11-libs/libICE |
56 |
+ x11-libs/libSM |
57 |
+ x11-libs/libX11 |
58 |
+ x11-libs/libXrandr |
59 |
+ x11-libs/libXrender |
60 |
+ x11-libs/libXtst |
61 |
+ x11-libs/pango |
62 |
+ ) |
63 |
+ xml? ( >=dev-libs/libxml2-2.6.8:2= >=dev-libs/libxslt-1.1.11 )" |
64 |
+ |
65 |
+DEPEND="app-arch/zip |
66 |
+ gtk? ( |
67 |
+ x11-libs/libXrender |
68 |
+ >=x11-libs/libXtst-1.1.0 |
69 |
+ x11-proto/xproto |
70 |
+ ) |
71 |
+ >=virtual/jdk-1.5 |
72 |
+ ${RDEPEND}" |
73 |
+ |
74 |
+RDEPEND=">=virtual/jre-1.5 |
75 |
+ ${RDEPEND}" |
76 |
+ |
77 |
+S=${WORKDIR}/${MY_P} |
78 |
+ |
79 |
+java_prepare() { |
80 |
+ epatch "${FILESDIR}"/${P}-freetype-2.5.3-support.patch |
81 |
+} |
82 |
+ |
83 |
+src_configure() { |
84 |
+ # don't use econf, because it ends up putting things under /usr, which may |
85 |
+ # collide with other slots of classpath |
86 |
+ local myconf |
87 |
+ if use gjdoc; then |
88 |
+ local antlr=$(java-pkg_getjar antlr antlr.jar) |
89 |
+ myconf="--with-antlr-jar=${antlr}" |
90 |
+ fi |
91 |
+ |
92 |
+ if use doc; then |
93 |
+ # Avoid a cyclic dependency on gjdoc by building gjdoc before |
94 |
+ # the docs. First we need to trick configure. Hack alert! |
95 |
+ echo -e "#!/bin/sh\necho gjdoc 0.8" > tools/gjdoc.build || die |
96 |
+ chmod 755 tools/gjdoc.build || die |
97 |
+ fi |
98 |
+ |
99 |
+ ANTLR= ./configure \ |
100 |
+ $(use_enable alsa) \ |
101 |
+ $(use_enable debug ) \ |
102 |
+ $(use_enable examples) \ |
103 |
+ $(use_enable gconf gconf-peer) \ |
104 |
+ $(use_enable gjdoc) \ |
105 |
+ $(use_enable gmp) \ |
106 |
+ $(use_enable gtk gtk-peer) \ |
107 |
+ $(use_enable xml xmlj) \ |
108 |
+ $(use_enable dssi ) \ |
109 |
+ $(use_with doc gjdoc "${S}/tools/gjdoc.build") \ |
110 |
+ --enable-jni \ |
111 |
+ --disable-dependency-tracking \ |
112 |
+ --disable-plugin \ |
113 |
+ --host=${CHOST} \ |
114 |
+ --prefix="${EPREFIX}"/usr/${PN}-${SLOT} \ |
115 |
+ --disable-Werror \ |
116 |
+ ${myconf} || die "configure failed" |
117 |
+} |
118 |
+ |
119 |
+src_compile() { |
120 |
+ if use doc; then |
121 |
+ # Build gjdoc before the docs. We need to hack the real gjdoc |
122 |
+ # script to run from the build directory instead. |
123 |
+ sed -r "s:^(tools_dir=).*:\1${S}/tools:" tools/gjdoc > tools/gjdoc.build || die |
124 |
+ emake -C lib |
125 |
+ emake -C tools |
126 |
+ fi |
127 |
+ |
128 |
+ default |
129 |
+} |
130 |
+ |
131 |
+src_install() { |
132 |
+ emake DESTDIR="${D}" install |
133 |
+ dodoc AUTHORS BUGS ChangeLog* HACKING NEWS README THANKYOU TODO |
134 |
+ java-pkg_regjar /usr/${P}/share/classpath/glibj.zip |
135 |
+ |
136 |
+ if use doc; then |
137 |
+ # Strangely the Makefile doesn't install these. |
138 |
+ insinto "/usr/${PN}-${SLOT}/share/classpath/api" |
139 |
+ doins -r doc/api/html/* |
140 |
+ fi |
141 |
+} |