summaryrefslogtreecommitdiff
path: root/net-p2p/biglybt
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-06-27 13:35:02 +0100
committerV3n3RiX <venerix@koprulu.sector>2023-06-27 13:35:02 +0100
commitef593d1ec529be89d755077eee3869006d8c18ae (patch)
treee17a9fcd71c371059f0168cbdfe109c563536c27 /net-p2p/biglybt
parent61faa1ea0e8302df305bc281038fc00dc7eb1dd4 (diff)
gentoo auto-resync : 27:06:2023 - 13:35:02
Diffstat (limited to 'net-p2p/biglybt')
-rw-r--r--net-p2p/biglybt/Manifest2
-rw-r--r--net-p2p/biglybt/biglybt-3.4.0.0.ebuild120
2 files changed, 122 insertions, 0 deletions
diff --git a/net-p2p/biglybt/Manifest b/net-p2p/biglybt/Manifest
index a476ee157a4d..c55df30ef43d 100644
--- a/net-p2p/biglybt/Manifest
+++ b/net-p2p/biglybt/Manifest
@@ -2,5 +2,7 @@ AUX biglybt-3.2.0.0-disable-DorkBoxUpdaterPlugin.patch 316 BLAKE2B 87efcf5b3a0c8
AUX biglybt-3.2.0.0-disable-SWTUpdateChecker.patch 407 BLAKE2B 63b34dfc13d2c3a6002b66da1bf652a7e98b0f4c92d48d1af90001742cebc0ba89c81c72f5c8d81bb29c6f7a5fb412b00dc1a18daf9f5ab6601e446e49b030c0 SHA512 87743e1a437d15e929b51b67bd5fb329ce67fc44f93c3172634056fe52d575db22102d915d9507df9644c4f800e399fed2cb327f0451eb6506c27e5bf776f2f6
AUX biglybt-3.2.0.0-disable-shared-plugins.patch 553 BLAKE2B b4844e817c76ddb03ac1f029d4c3626483d02fc81460e8f028719e9252e4b74765db04e2c0e0561dd9237ecbf6687ef93a5c75fed58342f259839935af5e976e SHA512 5f8eeb6caf6b719b77f3b2d7857723335b0dbe8c5c4e09454471ed10e6ad01a82f566e9a42614b65821d5c33e44eb958d6933ffb1d30025512a75114346a6b45
DIST biglybt-3.3.0.0.tar.gz 39452405 BLAKE2B 40a11d9b9d085457cfcfe2c62d30b77a971169f879e55ec5f75b049a0d9639d750cbc8d6a64912ab9beb6fc3c0a4065303f3f64ad48247a55e05089d8fb1d6b3 SHA512 29533b1c135018a4d487afa3b88e92674033b55ed2369c58c7721d7b0b74dcb141fc4e45a683eb9d4123879db94d3c9bbaca41e74a438562a383923eb4f889de
+DIST biglybt-3.4.0.0.tar.gz 41402302 BLAKE2B c10832a62efa517981572b91fb99854ee45743c0a2e9fd30d6548a09aeaa47fbcbdb6f6392285f5bd59eb99d4b50b98ddfce2ecf2092b205ca69901b5668a8d3 SHA512 401d0674f03d0da88d3dd3521c3c67cd3471b9858c326fc3cb908f96bb90b156eedee6dfa909606aade0862fe18cbf987d83cf48295e3ee5dc056c260708e05b
EBUILD biglybt-3.3.0.0.ebuild 3209 BLAKE2B 27a9fff44aa21a6c781ad3b121eec473596fdf2986c38d6c8cbc28a3cc0ae8be1a510b43ab79da5ea5d2f23f2aa764c58edeb95a4b6c45a124d006a919f37354 SHA512 38aa13ed7e7532a3d7d715e7c01910c869fc9f4ead92919bcaa531faeedb9239306c4d2b14aac255698826c43c78eb0f1122385a8731ed1613ad4481a352b6b4
+EBUILD biglybt-3.4.0.0.ebuild 3211 BLAKE2B b81b5247800be5c0f041951c3a28951fb8a012bdd18cb17a25f73195128cd60b258d052f11a6ccff46c6475f69f6ca05d8de664987a91fae69cae683b9861d9f SHA512 11ed54577e8f1f74eb01d271d106714af9ca62744665c76b060a8215a15b40322edadb2ab1aa4ea1e5e3db5ea91228e11d94b8f22c2cc67cd32bb960fb358f1e
MISC metadata.xml 431 BLAKE2B 2d99951c29491ef26da2c83cf34ee292db74fc8a693bda6bea48c846ebffe43f660b962518c2bbc92433839672838497209bbc841ccbd7f514052d70e5c4d74d SHA512 8aded1d9b8f5987d741c041c1374ad849bfffd4a1e70cac9e1daeeda144e91f88183a2cf26527ee9f1c80d1de93bf91840b49eda82d5e1aa833eb6e593bfca88
diff --git a/net-p2p/biglybt/biglybt-3.4.0.0.ebuild b/net-p2p/biglybt/biglybt-3.4.0.0.ebuild
new file mode 100644
index 000000000000..c13fc1ba8aee
--- /dev/null
+++ b/net-p2p/biglybt/biglybt-3.4.0.0.ebuild
@@ -0,0 +1,120 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+JAVA_PKG_IUSE="doc source"
+MAVEN_PROVIDES="com.biglybt:biglybt-core:3.4.0.0 com.biglybt:biglybt-ui:3.4.0.0"
+
+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"
+S="${WORKDIR}/BiglyBT-${PV}"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64 ~ppc64"
+
+# 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.27
+"
+
+# 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!!!
+
+# Due to removal of AENameServiceDescriptor it would fail to start under jdk:1.8
+# StartServer ERROR: unable to bind to 127.0.0.1:6880 listening for passed torrent info: \
+# sun.net.spi.nameservice.NameServiceDescriptor: Provider com.biglybt.core.util.spi.AENameServiceDescriptor not found
+# Restricting to jdk:11 for https://bugs.gentoo.org/888859
+DEPEND="
+ virtual/jdk:11
+ ${CP_DEPEND}
+"
+
+RDEPEND="
+ >=virtual/jre-1.8:*
+ ${CP_DEPEND}
+"
+
+DOCS=(
+ CODING_GUIDELINES.md
+ CONTRIBUTING.md
+ ChangeLog.txt
+ README.md
+ TRANSLATE.md
+ issue_template.md
+)
+
+PATCHES=(
+ "${FILESDIR}/biglybt-3.2.0.0-disable-SWTUpdateChecker.patch"
+ "${FILESDIR}/biglybt-3.2.0.0-disable-DorkBoxUpdaterPlugin.patch"
+ "${FILESDIR}/biglybt-3.2.0.0-disable-shared-plugins.patch"
+)
+
+src_prepare() {
+ default
+ java-pkg-2_src_prepare
+ # AENameServiceDescriptor fails to compile with jdk >= 11
+ # https://github.com/BiglySoftware/BiglyBT/pull/2611
+ # "error: package sun.net.spi.nameservice does not exist"
+ rm -r core/src/com/biglybt/core/util/spi || die
+
+ sed \
+ -e '/enable.update/s:true:false: ' \
+ -i core/src/com/biglybt/pifimpl/update/PluginUpdatePlugin.java || 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-simple_src_install
+
+ if use source; then
+ java-pkg_dosrc "core/src/*"
+ java-pkg_dosrc "uis/src/*"
+ fi
+ default
+}