commit:     47a5cc8bbdf2799cc5cf9ef9e0093e87dabb15b8
Author:     Volkmar W. Pogatzki <gentoo <AT> pogatzki <DOT> net>
AuthorDate: Sun Oct 30 09:35:52 2022 +0000
Commit:     Florian Schmaus <flow <AT> gentoo <DOT> org>
CommitDate: Thu Dec 29 10:05:50 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=47a5cc8b

net-p2p/biglybt: new package, add 3.2.0.0

Intends to replase net-p2p/vuze,

Closes: https://bugs.gentoo.org/642808
Signed-off-by: Volkmar W. Pogatzki <gentoo <AT> pogatzki.net>
Signed-off-by: Florian Schmaus <flow <AT> gentoo.org>

 net-p2p/biglybt/Manifest               |   1 +
 net-p2p/biglybt/biglybt-3.2.0.0.ebuild | 113 +++++++++++++++++++++++++++++++++
 net-p2p/biglybt/metadata.xml           |   7 ++
 3 files changed, 121 insertions(+)

diff --git a/net-p2p/biglybt/Manifest b/net-p2p/biglybt/Manifest
new file mode 100644
index 000000000000..c61bfad3b978
--- /dev/null
+++ b/net-p2p/biglybt/Manifest
@@ -0,0 +1 @@
+DIST biglybt-3.2.0.0.tar.gz 34985099 BLAKE2B 
385a6cf4f89b0922f06a2a5c7e89a4c9b717922f491717ade3cb13251c88e497cd2f807fa67ce3384bc3fcf3f37af368d20c2bb8984eff9d4237519d2be0f89d
 SHA512 
0a39243271153758482ac3eaef50e4a83464cf67779b531fb29d7289fa49f2ec7dbe5c1c9de1d6b3bed555a6c581c4e95563e333aad4a9e32cf158db1325fef0

diff --git a/net-p2p/biglybt/biglybt-3.2.0.0.ebuild 
b/net-p2p/biglybt/biglybt-3.2.0.0.ebuild
new file mode 100644
index 000000000000..219a7a8ece5e
--- /dev/null
+++ b/net-p2p/biglybt/biglybt-3.2.0.0.ebuild
@@ -0,0 +1,113 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+# Skeleton command:
+# java-ebuilder --generate-ebuild --workdir . --pom core/pom.xml 
--download-uri https://github.com/BiglySoftware/BiglyBT/archive/v3.2.0.0.tar.gz 
--slot 0 --keywords "~amd64" --ebuild biglybt-3.2.0.0.ebuild
+
+EAPI=8
+
+JAVA_PKG_IUSE="doc source"
+MAVEN_ID="com.biglybt:biglybt-core:3.1.0.1"
+
+inherit java-pkg-2 java-pkg-simple
+
+DESCRIPTION="Feature-filled Bittorrent client based on the Azureus open source 
project"
+HOMEPAGE="https://www.biglybt.com";
+SRC_URI="https://github.com/BiglySoftware/BiglyBT/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64"
+
+# Common dependencies
+# POM: core/pom.xml
+# commons-cli:commons-cli:1.4 -> >=dev-java/commons-cli-1.5.0:1
+
+CP_DEPEND="
+       dev-java/commons-cli:1
+       dev-java/swt:4.10
+"
+
+# Compile dependencies
+# POM: core/pom.xml
+# org.eclipse.swt:org.eclipse.swt.gtk.linux.x86_64:4.9 -> 
!!!groupId-not-found!!!
+# POM: core/pom.xml
+# test? org.assertj:assertj-core:3.12.1 -> 
!!!suitable-mavenVersion-not-found!!!
+# test? org.junit.jupiter:junit-jupiter:5.4.0 -> !!!groupId-not-found!!!
+
+DEPEND="
+       >=virtual/jdk-1.8:*
+       ${CP_DEPEND}
+"
+
+RDEPEND="
+       >=virtual/jre-1.8:*
+       ${CP_DEPEND}
+"
+
+DOCS=(
+       CODING_GUIDELINES.md
+       CONTRIBUTING.md
+       ChangeLog.txt
+       README.md
+       TRANSLATE.md
+)
+
+S="${WORKDIR}/BiglyBT-${PV}"
+
+src_prepare() {
+       default
+       # This directory would break compilation with jdk >= 11
+       # "error: package sun.net.spi.nameservice does not exist"
+       rm -r core/src/com/biglybt/core/util/spi || die
+
+       cp -r core/{src,resources} || die
+       find core/resources -type f -name '*.java' -exec rm -rf {} + || die 
"deleting classes failed"
+
+       cp -r uis/{src,resources} || die
+       find uis/resources -type f -name '*.java' -exec rm -rf {} + || die 
"deleting classes failed"
+}
+
+src_compile() {
+       einfo "Compiling module \"core\""
+       JAVA_ENCODING="8859_1"
+       JAVA_JAR_FILENAME="biglybt-core.jar"
+       JAVA_RESOURCE_DIRS="core/resources"
+       JAVA_SRC_DIR="core/src"
+       java-pkg-simple_src_compile
+       JAVA_GENTOO_CLASSPATH_EXTRA="biglybt-core.jar"
+
+       einfo "Compiling module \"uis\""
+       JAVA_JAR_FILENAME="BiglyBT.jar"
+       JAVA_LAUNCHER_FILENAME="${PN}"
+       JAVA_MAIN_CLASS="com.biglybt.ui.Main"
+       JAVA_RESOURCE_DIRS="uis/resources"
+       JAVA_SRC_DIR="uis/src"
+       java-pkg-simple_src_compile
+
+       if use doc; then
+               einfo "Compiling javadocs"
+               JAVA_SRC_DIR=(
+                       "core/src"
+                       "uis/src"
+               )
+               JAVA_JAR_FILENAME="ignoreme.jar"
+               java-pkg-simple_src_compile
+       fi
+}
+
+src_install() {
+       java-pkg_dojar "biglybt-core.jar"
+       java-pkg_dojar "BiglyBT.jar"
+       java-pkg_dolauncher "biglybt" --main com.biglybt.ui.Main
+
+       if use doc; then
+               java-pkg_dojavadoc target/api
+       fi
+
+       if use source; then
+               java-pkg_dosrc "core/src/*"
+               java-pkg_dosrc "uis/src/*"
+       fi
+       default
+}

diff --git a/net-p2p/biglybt/metadata.xml b/net-p2p/biglybt/metadata.xml
new file mode 100644
index 000000000000..75321cfb5598
--- /dev/null
+++ b/net-p2p/biglybt/metadata.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <maintainer type="project">
+               <email>j...@gentoo.org</email>
+       </maintainer>
+</pkgmetadata>

Reply via email to