summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakov Smolić <jsmolic@gentoo.org>2021-11-21 08:59:22 +0100
committerJakov Smolić <jsmolic@gentoo.org>2021-11-21 09:10:44 +0100
commite33fd5c76251e77b8ac8eb699887d7e738176ce3 (patch)
tree37a27515732c1a7a344ea8876d2785c8f21e3610 /dev-java/jssc
parentdev-java/jtreemap: treeclean (diff)
downloadgentoo-e33fd5c76251e77b8ac8eb699887d7e738176ce3.tar.gz
gentoo-e33fd5c76251e77b8ac8eb699887d7e738176ce3.tar.bz2
gentoo-e33fd5c76251e77b8ac8eb699887d7e738176ce3.zip
dev-java/jssc: treeclean
CLoses: https://bugs.gentoo.org/736884 Signed-off-by: Jakov Smolić <jsmolic@gentoo.org>
Diffstat (limited to 'dev-java/jssc')
-rw-r--r--dev-java/jssc/Manifest1
-rw-r--r--dev-java/jssc/files/jssc-2.8.0-library-load.patch117
-rw-r--r--dev-java/jssc/jssc-2.8.0-r1.ebuild60
-rw-r--r--dev-java/jssc/metadata.xml14
4 files changed, 0 insertions, 192 deletions
diff --git a/dev-java/jssc/Manifest b/dev-java/jssc/Manifest
deleted file mode 100644
index d6ed149d0aba..000000000000
--- a/dev-java/jssc/Manifest
+++ /dev/null
@@ -1 +0,0 @@
-DIST jssc-2.8.0.zip 171914 BLAKE2B 8bac5000d5512683809efab0ef041228f846390b29fa51ad5295d655dbec031dfc0a7ad67f7589d3f8b5dcfa8facd9896c7ec545b9db9c442eb3d34b569cd948 SHA512 4d767054085a79cff4fe60d96d664918f69a791c8263d96c9d9fd622070f567acacb621079f23d5c54253366beb9d2a01fea7ea48b95f6267bc693a9bacb8466
diff --git a/dev-java/jssc/files/jssc-2.8.0-library-load.patch b/dev-java/jssc/files/jssc-2.8.0-library-load.patch
deleted file mode 100644
index 829a18af69bd..000000000000
--- a/dev-java/jssc/files/jssc-2.8.0-library-load.patch
+++ /dev/null
@@ -1,117 +0,0 @@
---- src/java/jssc/SerialNativeInterface.java.orig 2016-03-13 16:35:20.521644430 -0400
-+++ src/java/jssc/SerialNativeInterface.java 2016-03-13 16:38:00.022571256 -0400
-@@ -44,7 +44,7 @@
- public static final int OS_SOLARIS = 2;//since 0.9.0
- public static final int OS_MAC_OS_X = 3;//since 0.9.0
-
-- private static int osType = -1;
-+ private static int osType = OS_LINUX;
-
- /**
- * @since 2.3.0
-@@ -77,104 +77,11 @@
- public static final String PROPERTY_JSSC_PARMRK = "JSSC_PARMRK";
-
- static {
-- String libFolderPath;
-- String libName;
--
-- String osName = System.getProperty("os.name");
-- String architecture = System.getProperty("os.arch");
-- String userHome = System.getProperty("user.home");
-- String fileSeparator = System.getProperty("file.separator");
-- String tmpFolder = System.getProperty("java.io.tmpdir");
--
-- //since 2.3.0 ->
-- String libRootFolder = new File(userHome).canWrite() ? userHome : tmpFolder;
-- //<- since 2.3.0
--
-- String javaLibPath = System.getProperty("java.library.path");//since 2.1.0
--
-- if(osName.equals("Linux")){
-- osName = "linux";
-- osType = OS_LINUX;
-- }
-- else if(osName.startsWith("Win")){
-- osName = "windows";
-- osType = OS_WINDOWS;
-- }//since 0.9.0 ->
-- else if(osName.equals("SunOS")){
-- osName = "solaris";
-- osType = OS_SOLARIS;
-- }
-- else if(osName.equals("Mac OS X") || osName.equals("Darwin")){//os.name "Darwin" since 2.6.0
-- osName = "mac_os_x";
-- osType = OS_MAC_OS_X;
-- }//<- since 0.9.0
--
-- if(architecture.equals("i386") || architecture.equals("i686")){
-- architecture = "x86";
-- }
-- else if(architecture.equals("amd64") || architecture.equals("universal")){//os.arch "universal" since 2.6.0
-- architecture = "x86_64";
-- }
-- else if(architecture.equals("arm")) {//since 2.1.0
-- String floatStr = "sf";
-- if(javaLibPath.toLowerCase().contains("gnueabihf") || javaLibPath.toLowerCase().contains("armhf")){
-- floatStr = "hf";
-- }
-- else {
-- try {
-- Process readelfProcess = Runtime.getRuntime().exec("readelf -A /proc/self/exe");
-- BufferedReader reader = new BufferedReader(new InputStreamReader(readelfProcess.getInputStream()));
-- String buffer = "";
-- while((buffer = reader.readLine()) != null && !buffer.isEmpty()){
-- if(buffer.toLowerCase().contains("Tag_ABI_VFP_args".toLowerCase())){
-- floatStr = "hf";
-- break;
-- }
-- }
-- reader.close();
-- }
-- catch (Exception ex) {
-- //Do nothing
-- }
-- }
-- architecture = "arm" + floatStr;
-- }
--
-- libFolderPath = libRootFolder + fileSeparator + ".jssc" + fileSeparator + osName;
-- libName = "jSSC-" + libVersion + "_" + architecture;
-- libName = System.mapLibraryName(libName);
--
-- if(libName.endsWith(".dylib")){//Since 2.1.0 MacOSX 10.8 fix
-- libName = libName.replace(".dylib", ".jnilib");
-- }
--
-- boolean loadLib = false;
--
-- if(isLibFolderExist(libFolderPath)){
-- if(isLibFileExist(libFolderPath + fileSeparator + libName)){
-- loadLib = true;
-- }
-- else {
-- if(extractLib((libFolderPath + fileSeparator + libName), osName, libName)){
-- loadLib = true;
-- }
-- }
-- }
-- else {
-- if(new File(libFolderPath).mkdirs()){
-- if(extractLib((libFolderPath + fileSeparator + libName), osName, libName)){
-- loadLib = true;
-- }
-- }
-- }
--
-- if (loadLib) {
-- System.load(libFolderPath + fileSeparator + libName);
-+ System.loadLibrary("jssc");
- String versionBase = getLibraryBaseVersion();
- String versionNative = getNativeLibraryVersion();
- if (!versionBase.equals(versionNative)) {
- System.err.println("Warning! jSSC Java and Native versions mismatch (Java: " + versionBase + ", Native: " + versionNative + ")");
-- }
- }
- }
-
diff --git a/dev-java/jssc/jssc-2.8.0-r1.ebuild b/dev-java/jssc/jssc-2.8.0-r1.ebuild
deleted file mode 100644
index e36b1c84a10c..000000000000
--- a/dev-java/jssc/jssc-2.8.0-r1.ebuild
+++ /dev/null
@@ -1,60 +0,0 @@
-# Copyright 1999-2016 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=5
-
-JAVA_PKG_IUSE="doc source"
-
-inherit java-pkg-2 java-pkg-simple toolchain-funcs
-
-MY_PN="java-simple-serial-connector"
-MY_P="${MY_PN}-${PV}"
-
-DESCRIPTION="Java Simple Serial Connector"
-HOMEPAGE="https://github.com/scream3r/java-simple-serial-connector"
-SRC_URI="https://github.com/scream3r/${MY_PN}/archive/${PV}.zip -> ${P}.zip"
-
-LICENSE="GPL-1"
-SLOT="0"
-KEYWORDS="amd64 ppc64 x86"
-
-IUSE=""
-
-RDEPEND="
- >=virtual/jre-1.6"
-
-DEPEND="
- >=virtual/jdk-1.6
- source? ( app-arch/zip )"
-
-PATCHES=(
- "${FILESDIR}/${P}-library-load.patch"
-)
-
-S="${WORKDIR}/${MY_P}"
-
-java_prepare() {
- epatch "${PATCHES[@]}"
-}
-
-src_compile() {
- java-pkg-simple_src_compile
- $(tc-getCXX) \
- ${CPP_FLAGS} ${CXX_FLAGS} \
- -c -o ${PN}.o \
- -fPIC -Wall \
- -I$(java-config-2 -o)/include \
- -I$(java-config-2 -o)/include/linux \
- "${S}/src/cpp/_nix_based/${PN}.cpp" || die
-
- $(tc-getCXX) \
- -Wl,-soname,libjssc.so \
- -shared -o "libjssc.so.${PV}" \
- -Wall "${PN}.o" || die
-}
-
-src_install() {
- java-pkg-simple_src_install
- dolib libjssc*
- dosym "libjssc.so.${PV}" /usr/$(get_libdir)/libjssc.so
-}
diff --git a/dev-java/jssc/metadata.xml b/dev-java/jssc/metadata.xml
deleted file mode 100644
index 7f0ef6775109..000000000000
--- a/dev-java/jssc/metadata.xml
+++ /dev/null
@@ -1,14 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
- <maintainer type="person">
- <email>monsieurp@gentoo.org</email>
- </maintainer>
- <maintainer type="project">
- <email>java@gentoo.org</email>
- <name>Java</name>
- </maintainer>
- <upstream>
- <remote-id type="github">scream3r/java-simple-serial-connector</remote-id>
- </upstream>
-</pkgmetadata>