summaryrefslogtreecommitdiff
path: root/net-p2p/biglybt
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2022-12-29 14:15:14 +0000
committerV3n3RiX <venerix@koprulu.sector>2022-12-29 14:15:14 +0000
commit3d947253ed94b67c6687fa96a7bbcc2572685f78 (patch)
tree9058f4c705db600b23bc395b68abce0b6ef36708 /net-p2p/biglybt
parent60a9341c4f6c39cadd9f0aef12438b41d69279a8 (diff)
gentoo auto-resync : 29:12:2022 - 14:15:14
Diffstat (limited to 'net-p2p/biglybt')
-rw-r--r--net-p2p/biglybt/Manifest3
-rw-r--r--net-p2p/biglybt/biglybt-3.2.0.0.ebuild113
-rw-r--r--net-p2p/biglybt/metadata.xml10
3 files changed, 126 insertions, 0 deletions
diff --git a/net-p2p/biglybt/Manifest b/net-p2p/biglybt/Manifest
new file mode 100644
index 000000000000..6b3711c9cc6a
--- /dev/null
+++ b/net-p2p/biglybt/Manifest
@@ -0,0 +1,3 @@
+DIST biglybt-3.2.0.0.tar.gz 34985099 BLAKE2B 385a6cf4f89b0922f06a2a5c7e89a4c9b717922f491717ade3cb13251c88e497cd2f807fa67ce3384bc3fcf3f37af368d20c2bb8984eff9d4237519d2be0f89d SHA512 0a39243271153758482ac3eaef50e4a83464cf67779b531fb29d7289fa49f2ec7dbe5c1c9de1d6b3bed555a6c581c4e95563e333aad4a9e32cf158db1325fef0
+EBUILD biglybt-3.2.0.0.ebuild 2774 BLAKE2B 5b6e3245dc376e5a238810d2910bfce83351e166bb33d5df319e680d50f346775f49f160875b0a71b903a24d0433840a88735dd2f2f9944e2f5e3e500952fc3c SHA512 ae633a57a16dcfe124608fed9aa6e44858b82a15a297b9665db2e236c693b4be89baaecead642ced58ef3b6e70467b377a496cffb8419ecda26a8543d3bbb7ab
+MISC metadata.xml 303 BLAKE2B 50bccebf39b34f65100881ac87064f02f74e3e896b0acdd31ce764736d51e87c2d86b27c7476bc520cc6a23f8b2d105cd22a0cde40be20bb09b2df4225114842 SHA512 88e1418a7184746f6f6a8eb49451f2b34923ee6770191acf2b776ade8b91e50d659b8ed2f2a48f5c61558a64f0959cfcf9b73bcd1e5a44e8cea44b77227229d5
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..05d9678fe88c
--- /dev/null
+++ b/net-p2p/biglybt/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>java@gentoo.org</email>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">BiglySoftware/BiglyBT</remote-id>
+ </upstream>
+</pkgmetadata>