diff options
Diffstat (limited to 'dev-java/gnu-classpath')
-rw-r--r-- | dev-java/gnu-classpath/Manifest | 6 | ||||
-rw-r--r-- | dev-java/gnu-classpath/files/gnu-classpath-0.98-freetype-2.5.3-support.patch | 32 | ||||
-rw-r--r-- | dev-java/gnu-classpath/gnu-classpath-0.98-r6.ebuild | 116 | ||||
-rw-r--r-- | dev-java/gnu-classpath/metadata.xml | 17 |
4 files changed, 171 insertions, 0 deletions
diff --git a/dev-java/gnu-classpath/Manifest b/dev-java/gnu-classpath/Manifest new file mode 100644 index 000000000000..09cd0dc1ca9f --- /dev/null +++ b/dev-java/gnu-classpath/Manifest @@ -0,0 +1,6 @@ +AUX gnu-classpath-0.98-freetype-2.5.3-support.patch 1192 SHA256 6c37e672e9994fdc1173da54ff76ab62799ae1f109783a4829a7393b58072baf SHA512 5832a27caf0a064a29fb00a186d116193af98c0f2a97ef868be7ca0cab1aa51bd32df90f32ee43f9ecdbda52ea3b264f6f3bbd48d8b8f7cb4d1e0a1444f716fb WHIRLPOOL 8af4adc984cb914853a91ca9ffe4c863fa29de6a72cff11c9c8e851453fa90263d4fe460e0ea857c36649fbeb04c7017d3ccad1a80f4443b0d2dd6b5fa5360b9 +DIST classpath-0.98.tar.gz 11021342 SHA256 501b5acd4dff79b6100da22cef15080f31071821ce3cea6f1b739bc1b56fac3f SHA512 0d98f87cd78c166d566ecd8d0372f2d6cdf422e8c4c806ca01d3a77dafbdd80ee936de78a2c5d4226174027efdc053fe92669514bdd8acb3290a7b3ec002d31f WHIRLPOOL 1248288af3821fedae226852da41b1a176e0c03f83f95b7e7a123655e3b588f4b1716274aebd1b728b11a63e35c820994bce0293b4bed6ea8837dabb0bf90c7e +EBUILD gnu-classpath-0.98-r6.ebuild 2955 SHA256 f6267aa1cc3d19df2c1bd9f558bc5dcfb1b9aea0deaf80b5a5af63323bb1cb34 SHA512 01f28c3370f304f3a7dc0c9cb847b859fd61857fc40d2a0539d5e2ec62740ec2106953eb384e080be70b5406a82b109c8d20153cb709917552588d54ba30504a WHIRLPOOL 9a3931d50d57052b929bf1b37ed191349e898b9dae310a8d8828f9fcc551d05cbc0d4cc6f0a081316558f536f89a47aa0791305bbf19362d19af2b1ffb8d2dd8 +MISC ChangeLog 4969 SHA256 db89393a67e1d0788651df8103d80b1be2d12aa34a5c9e16a6fd55619c186b8e SHA512 379024537ba3281cb9ac902301d99141b668e6537744bc985ce4fab5c0b1ffb52b7f88494cf6638550416697b6987d485efae4f9db09ee9acebaab25313e13e9 WHIRLPOOL 901dddbaa6be2c1bb0b04a4ed788b51dbb2f7094471102017a8af9d53004af4f55f450c275816fc97fcd2bcdd849ccb0366d3a98685ebf77d2f774e9cff60073 +MISC ChangeLog-2015 18759 SHA256 15ebdbbd2d83f441ceeff1a63f2b41163944d6d70e8ae71acf47ea1bf90e9b09 SHA512 bb4ebe1fcdc5bfde5b6f83187b7e59fc43c4c02c7961772ec3316bd984c536e7a1693565fb5f7771fe2f3c811d8efbba76810f18f0c0163ba86ea34eee89d80d WHIRLPOOL d197248b63740e0427c06d2732aed4721b33c00b17a9a68c1d68d37e01b96c9147e54b8a319dc8b2aa4efc1773fd3ae42ee0ec1f45aabe0faef127130db45490 +MISC metadata.xml 703 SHA256 db06355f1fbf5c6e634dd2d69500552f3265ab989f22ac1413da1d461306a4f7 SHA512 e97e2eb0800c588b0b50a108559cc164df1ae33f626b089c5ed93476e69ce0dc9d47f043988beed9db9c79e6bc9479f0923f8dfbd61c4a6c619dacc8d7863865 WHIRLPOOL 56b946706659973de1384688491635bc98afb2258f64eb39501734b69fe48b46b2b12bb0cec0a0b59e5ec21056b17dd5ec4012306a28a6ad3ca9d205d727b48b diff --git a/dev-java/gnu-classpath/files/gnu-classpath-0.98-freetype-2.5.3-support.patch b/dev-java/gnu-classpath/files/gnu-classpath-0.98-freetype-2.5.3-support.patch new file mode 100644 index 000000000000..42828e2a4b8f --- /dev/null +++ b/dev-java/gnu-classpath/files/gnu-classpath-0.98-freetype-2.5.3-support.patch @@ -0,0 +1,32 @@ +--- ./native/jni/gtk-peer/gnu_java_awt_peer_gtk_FreetypeGlyphVector.c.orig 2014-03-18 10:35:50.904133661 +0100 ++++ ./native/jni/gtk-peer/gnu_java_awt_peer_gtk_FreetypeGlyphVector.c 2014-03-18 10:37:03.808131298 +0100 +@@ -42,8 +42,9 @@ + #include <pango/pango.h> + #include <pango/pangoft2.h> + #include <pango/pangofc-font.h> +-#include <freetype/ftglyph.h> +-#include <freetype/ftoutln.h> ++#include <ft2build.h> ++#include FT_GLYPH_H ++#include FT_OUTLINE_H + #include "jcl.h" + #include "gdkfont.h" + #include "gnu_java_awt_peer_gtk_FreetypeGlyphVector.h" +--- ./native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkFontPeer.c.orig 2014-03-18 10:37:12.048131031 +0100 ++++ ./native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkFontPeer.c 2014-03-18 10:37:58.416129528 +0100 +@@ -39,10 +39,11 @@ + #include <pango/pango.h> + #include <pango/pangoft2.h> + #include <pango/pangofc-font.h> +-#include <freetype/ftglyph.h> +-#include <freetype/ftoutln.h> +-#include <freetype/fttypes.h> +-#include <freetype/tttables.h> ++#include <ft2build.h> ++#include FT_GLYPH_H ++#include FT_OUTLINE_H ++#include FT_TYPES_H ++#include FT_TRUETYPE_TABLES_H + #include "gdkfont.h" + #include "gtkpeer.h" + #include "gnu_java_awt_peer_gtk_GdkFontPeer.h"
\ No newline at end of file diff --git a/dev-java/gnu-classpath/gnu-classpath-0.98-r6.ebuild b/dev-java/gnu-classpath/gnu-classpath-0.98-r6.ebuild new file mode 100644 index 000000000000..465018f8f624 --- /dev/null +++ b/dev-java/gnu-classpath/gnu-classpath-0.98-r6.ebuild @@ -0,0 +1,116 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit eutils java-pkg-2 multilib + +MY_P=${P/gnu-/} +DESCRIPTION="Free core class libraries for use with Java VMs and compilers" +SRC_URI="mirror://gnu/classpath/${MY_P}.tar.gz" +HOMEPAGE="https://www.gnu.org/software/classpath" + +LICENSE="GPL-2-with-linking-exception" +SLOT="0.98" +KEYWORDS="amd64 ppc64 x86 ~amd64-linux ~x86-linux ~x86-macos" + +IUSE="alsa debug doc dssi examples gconf +gjdoc gmp gtk xml" +REQUIRED_USE="doc? ( gjdoc )" + +RDEPEND="alsa? ( media-libs/alsa-lib ) + dssi? ( >=media-libs/dssi-0.9 ) + gconf? ( gnome-base/gconf:2= ) + gjdoc? ( >=dev-java/antlr-2.7.7-r7:0 ) + gmp? ( >=dev-libs/gmp-4.2.4:0= ) + gtk? ( + >=x11-libs/gtk+-2.8:2= + dev-libs/glib:2= + media-libs/freetype:2= + >=x11-libs/cairo-1.1.9:= + x11-libs/libICE + x11-libs/libSM + x11-libs/libX11 + x11-libs/libXrandr + x11-libs/libXrender + x11-libs/libXtst + x11-libs/pango + ) + xml? ( >=dev-libs/libxml2-2.6.8:2= >=dev-libs/libxslt-1.1.11 )" + +DEPEND="app-arch/zip + gtk? ( + x11-libs/libXrender + >=x11-libs/libXtst-1.1.0 + x11-proto/xproto + ) + >=virtual/jdk-1.5 + ${RDEPEND}" + +RDEPEND=">=virtual/jre-1.5 + ${RDEPEND}" + +S=${WORKDIR}/${MY_P} + +java_prepare() { + epatch "${FILESDIR}"/${P}-freetype-2.5.3-support.patch +} + +src_configure() { + # don't use econf, because it ends up putting things under /usr, which may + # collide with other slots of classpath + local myconf + if use gjdoc; then + local antlr=$(java-pkg_getjar antlr antlr.jar) + myconf="--with-antlr-jar=${antlr}" + fi + + if use doc; then + # Avoid a cyclic dependency on gjdoc by building gjdoc before + # the docs. First we need to trick configure. Hack alert! + echo -e "#!/bin/sh\necho gjdoc 0.8" > tools/gjdoc.build || die + chmod 755 tools/gjdoc.build || die + fi + + ANTLR= ./configure \ + $(use_enable alsa) \ + $(use_enable debug ) \ + $(use_enable examples) \ + $(use_enable gconf gconf-peer) \ + $(use_enable gjdoc) \ + $(use_enable gmp) \ + $(use_enable gtk gtk-peer) \ + $(use_enable xml xmlj) \ + $(use_enable dssi ) \ + $(use_with doc gjdoc "${S}/tools/gjdoc.build") \ + --enable-jni \ + --disable-dependency-tracking \ + --disable-plugin \ + --host=${CHOST} \ + --prefix="${EPREFIX}"/usr/${PN}-${SLOT} \ + --disable-Werror \ + ${myconf} || die "configure failed" +} + +src_compile() { + if use doc; then + # Build gjdoc before the docs. We need to hack the real gjdoc + # script to run from the build directory instead. + sed -r "s:^(tools_dir=).*:\1${S}/tools:" tools/gjdoc > tools/gjdoc.build || die + emake -C lib + emake -C tools + fi + + default +} + +src_install() { + emake DESTDIR="${D}" install + dodoc AUTHORS BUGS ChangeLog* HACKING NEWS README THANKYOU TODO + java-pkg_regjar /usr/${P}/share/classpath/glibj.zip + + if use doc; then + # Strangely the Makefile doesn't install these. + insinto "/usr/${PN}-${SLOT}/share/classpath/api" + doins -r doc/api/html/* + fi +} diff --git a/dev-java/gnu-classpath/metadata.xml b/dev-java/gnu-classpath/metadata.xml new file mode 100644 index 000000000000..da784f858243 --- /dev/null +++ b/dev-java/gnu-classpath/metadata.xml @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>java@gentoo.org</email> + <name>Java</name> + </maintainer> + <use> + <flag name="alsa">Build with ALSA javax.sound.midi provider</flag> + <flag name="dssi">Build with DSSI javax.sound.midi provider</flag> + <flag name="gconf">Build with GConf preferences backend</flag> + <flag name="gmp">Build with GMP backend for java.math.BigInteger</flag> + <flag name="gjdoc">Build GJDoc, a documentation generator</flag> + <flag name="gtk">Build with Gtk+ AWT peers</flag> + <flag name="xml">Build with native XML backend</flag> + </use> +</pkgmetadata> |