mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-21 10:37:22 -08:00
dev-java/jaffl: Remove as upstream renamed it to jnr-ffi
This commit is contained in:
@@ -1 +0,0 @@
|
||||
DIST jaffl-0.5.11.tar.gz 559465 SHA256 77a7e7bf0b98521ed749238fec8eb184426b074010874a9ee9f076e27b74ac6a SHA512 efa5479901ac6d21310af7d482298281189b7d91b806a273cf99faacb4ee0ec6862427077e2553153c3741a640371199cf78750cd4de9f9fdd92e3f1962d7728 WHIRLPOOL 6970de5819e6335c454584a5071290ed10ace121197a5f4396063dbc9eae388bffa573ab921c6896c018f4f3c1441a0dda54952de8a7527cb5aebefe0a7127f3
|
||||
@@ -1,11 +0,0 @@
|
||||
--- libtest/GNUmakefile.orig 2015-06-08 12:11:24.235000000 +0000
|
||||
+++ libtest/GNUmakefile 2015-06-08 11:47:52.963000000 +0000
|
||||
@@ -38,7 +38,7 @@
|
||||
# http://weblogs.java.net/blog/kellyohair/archive/2006/01/compilation_of_1.html
|
||||
JFLAGS = -fno-omit-frame-pointer -fno-strict-aliasing
|
||||
OFLAGS = -O2 $(JFLAGS)
|
||||
-WFLAGS = -W -Werror -Wall -Wno-unused -Wno-parentheses
|
||||
+WFLAGS = -W -Wall -Wno-unused -Wno-parentheses
|
||||
PICFLAGS = -fPIC
|
||||
SOFLAGS = -shared -Wl,-O1
|
||||
LDFLAGS += $(SOFLAGS)
|
||||
@@ -1,10 +0,0 @@
|
||||
--- src/com/kenai/jaffl/provider/Library.java.orig 2011-09-07 12:13:06.942731817 +0200
|
||||
+++ src/com/kenai/jaffl/provider/Library.java 2011-09-07 12:13:08.983731771 +0200
|
||||
@@ -23,6 +23,7 @@
|
||||
userLibraryPath.addAll(getPropertyPaths("jaffl.library.path"));
|
||||
// Add JNA paths for compatibility
|
||||
userLibraryPath.addAll(getPropertyPaths("jna.library.path"));
|
||||
+ userLibraryPath.addAll(getPropertyPaths("java.library.path"));
|
||||
}
|
||||
};
|
||||
|
||||
@@ -1,94 +0,0 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI="5"
|
||||
|
||||
JAVA_PKG_IUSE="doc source test"
|
||||
|
||||
WANT_ANT_TASKS="ant-nodeps"
|
||||
|
||||
inherit java-pkg-2 java-ant-2 versionator
|
||||
|
||||
DESCRIPTION="An abstracted interface to invoking native functions from java"
|
||||
HOMEPAGE="http://kenai.com/projects/jaffl"
|
||||
SRC_URI="https://github.com/jnr/jnr-ffi/tarball/${PV} -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ppc64 x86"
|
||||
|
||||
CDEPEND="
|
||||
dev-java/asm:3
|
||||
dev-java/jffi:1.2
|
||||
dev-java/jnr-x86asm:1.0"
|
||||
|
||||
RDEPEND="
|
||||
${CDEPEND}
|
||||
>=virtual/jre-1.6"
|
||||
|
||||
DEPEND="
|
||||
${CDEPEND}
|
||||
app-arch/unzip
|
||||
>=virtual/jdk-1.6
|
||||
test? (
|
||||
dev-java/junit:4
|
||||
dev-java/ant-junit:0
|
||||
dev-java/hamcrest-core:0
|
||||
)"
|
||||
|
||||
JAR_VERSION=$(get_version_component_range 1-2)
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${P}-library-path.patch
|
||||
"${FILESDIR}"/${P}-GNUmakefile.patch
|
||||
)
|
||||
|
||||
src_unpack() {
|
||||
default
|
||||
mv * "${P}" || die
|
||||
}
|
||||
|
||||
java_prepare() {
|
||||
# Don't choke on errors from generating the Javadoc
|
||||
cd "${S}" || die
|
||||
|
||||
epatch "${PATCHES[@]}"
|
||||
|
||||
rm -vf lib/{.,junit*}/*.jar || die
|
||||
|
||||
java-ant_xml-rewrite -f ./nbproject/build-impl.xml \
|
||||
-c -e javadoc \
|
||||
-a failonerror \
|
||||
-v no
|
||||
|
||||
java-pkg_jar-from --into lib jffi-1.2
|
||||
java-pkg_jar-from --into lib jnr-x86asm-1.0
|
||||
java-pkg_jar-from --into lib asm-3 asm.jar asm-3.2.jar
|
||||
java-pkg_jar-from --into lib asm-3 asm-analysis.jar asm-analysis-3.2.jar
|
||||
java-pkg_jar-from --into lib asm-3 asm-commons.jar asm-commons-3.2.jar
|
||||
java-pkg_jar-from --into lib asm-3 asm-tree.jar asm-tree-3.2.jar
|
||||
java-pkg_jar-from --into lib asm-3 asm-util.jar asm-utils-3.2.jar
|
||||
java-pkg_jar-from --into lib asm-3 asm-xml.jar asm-xml-3.2.jar
|
||||
}
|
||||
|
||||
EANT_EXTRA_ARGS="-Dreference.jffi.jar=lib/jffi.jar \
|
||||
-Dreference.jnr-x86asm.jar=lib/jnr-x86asm.jar \
|
||||
-Dproject.jffi=\"${S}\" \
|
||||
-Dproject.jnr-x86asm=\"${S}\"
|
||||
-D\"already.built.${S}\"=true"
|
||||
|
||||
src_test() {
|
||||
local paths="$(java-config -di jnr-x86asm-1.0,jffi-1.2):${S}/build"
|
||||
|
||||
ANT_TASKS="ant-junit ant-nodeps" eant test \
|
||||
-Drun.jvmargs="-Djava.library.path=${paths}" \
|
||||
-Dlibs.junit_4.classpath="$(java-pkg_getjars junit-4,hamcrest-core)" ${EANT_EXTRA_ARGS}
|
||||
}
|
||||
|
||||
src_install() {
|
||||
java-pkg_newjar "dist/${PN}-${JAR_VERSION}.jar"
|
||||
|
||||
use doc && java-pkg_dojavadoc dist/javadoc
|
||||
use source && java-pkg_dosrc src/*
|
||||
}
|
||||
@@ -1,15 +0,0 @@
|
||||
<?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>
|
||||
<longdescription lang="en">
|
||||
A native function invocation interface that can have multiple different
|
||||
low level implementations (e.g. JNA, JFFI or Maxine)
|
||||
</longdescription>
|
||||
<upstream>
|
||||
<remote-id type="github">wmeissner/jaffl</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
Reference in New Issue
Block a user