jd-cli: cleanup

This commit is contained in:
Anton Bolshakov 2024-06-14 19:21:48 +08:00
parent ca42f9f292
commit de57323764
No known key found for this signature in database
GPG key ID: 32BDCED870788F04
21 changed files with 60 additions and 219 deletions

View file

@ -1 +0,0 @@
DIST javatoolkit-0.6.7.tar.bz2 24514 BLAKE2B 5da4c95ac561b71a3019c265a5233eb825f5f57ae35e1dfefccc2fc26a5c967dcf562c321ff61f6ad4d702f4f656927cf21fa32eadb2454b18444505ba16ae91 SHA512 34e9e9d08ed486f57bbb33bed437ff7e4bbdcb6ff8f57c338e787db0ca5688a27eaf9e21f47b5d245279c58cbdaeab0d61b469b3f176ab37a18f122123c885d0

View file

@ -1,35 +0,0 @@
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{9..12} )
PYTHON_REQ_USE="xml(+)"
#DISTUTILS_USE_SETUPTOOLS=no
inherit distutils-r1 prefix
DESCRIPTION="Collection of Gentoo-specific tools for Java"
HOMEPAGE="https://wiki.gentoo.org/wiki/Project:Java"
SRC_URI="https://gitweb.gentoo.org/proj/${PN}.git/snapshot/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ~arm arm64 ppc64 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris"
src_prepare(){
# FIXME: don't install man files to a wrong location
sed -i '/data_files/d' setup.py || die
eapply_user
}
python_prepare_all() {
hprefixify src/py/buildparser src/py/findclass setup.py
distutils-r1_python_prepare_all
}
python_install() {
distutils-r1_python_install \
--install-scripts="${EPREFIX}"/usr/libexec/${PN}
}

View file

@ -1,13 +0,0 @@
<?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>
<name>Java</name>
</maintainer>
<upstream>
<remote-id type="gentoo">proj/javatoolkit</remote-id>
<remote-id type="github">gentoo/javatoolkit</remote-id>
</upstream>
<stabilize-allarches/>
</pkgmetadata>

View file

@ -1,2 +1 @@
DIST jd-core-1.0.6.tar.gz 783111 BLAKE2B 4b5a2c41866c00c8b9ab30ae4821ea11e67920fde9a6d86038d44b946c5c5046aad4495774749c173559399650ffb55bb871ff5a4caced75c8273915f65f2ce0 SHA512 fe32e74bc8651a4aa67240fe799c96d4e84183fe698ab209ace8d0a87b89299922efcf7aed0768f4abef45248849cc7c8f4810229149cb8d0c562cbf2fbefb56
DIST jd-core-1.1.3.tar.gz 819707 BLAKE2B af40594094a7eb1bc45dca0f580d8dc863397e6243a4854605f9792a2202fbefcbde0f5452646ecf17ac7307299825de3b87637ccd35414b0b3ec79c1348133b SHA512 1e59367c3af17fac981fc91c6bc5a3269703a17ed57548d7bc548b2724dbb70c9abfc7065eff5ea2b2aca1e794df6aae46dcdf2129ee11a4268675da9f41edd7

View file

@ -1,38 +0,0 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit java-pkg-2 java-pkg-simple
DESCRIPTION="JD-Core is a JAVA decompiler written in JAVA"
HOMEPAGE="http://jd.benow.ca/"
SRC_URI="https://github.com/java-decompiler/jd-core/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE=""
#java-pkg-2 sets java based on RDEPEND so the java slot in rdepend is used to build
RDEPEND="virtual/jre:11"
DEPEND="${RDEPEND}
virtual/jdk:11"
S="${WORKDIR}/${P}"
JAVA_SRC_DIR="src/main/java/org/jd/core/v1"
java-pkg-2_src_prepare() {
local base_dir="target/classes/"
[[ ! -d "${base_dir}" ]] && mkdir -p "${base_dir}META-INF"
#build.gradle
#Main-Class: ${MAIN_CLASS}
cat > "${base_dir}META-INF/MANIFEST.MF" <<-_EOF_ || die
Manifest-Version: 1.0
JD-Core-Version: ${PV}
_EOF_
default
}

View file

@ -1,26 +1,24 @@
# Copyright 1999-2020 Gentoo Authors
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
EAPI=8
inherit java-pkg-2 java-pkg-simple
DESCRIPTION="JD-Core is a JAVA decompiler written in JAVA"
HOMEPAGE="http://jd.benow.ca/"
SRC_URI="https://github.com/java-decompiler/jd-core/archive/v${PV}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/${P}"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE=""
#java-pkg-2 sets java based on RDEPEND so the java slot in rdepend is used to build
RDEPEND="virtual/jre:11"
DEPEND="${RDEPEND}
virtual/jdk:11"
S="${WORKDIR}/${P}"
JAVA_SRC_DIR="src/main/java/org/jd/core/v1"
java-pkg-2_src_prepare() {

View file

@ -5,4 +5,7 @@
<email>unknown@pentoo.ch</email>
<name>Author Unknown</name>
</maintainer>
<upstream>
<remote-id type="github">java-decompiler/jd-core</remote-id>
</upstream>
</pkgmetadata>

View file

@ -1,2 +1 @@
DIST jd-cmd-1.1.0.tar.gz 34915 BLAKE2B b8b1876b060adb7101bb60f919bac70f0854bbe8114e3b30b2a4e66e44e04b88fb1a5967f0ff7c417f0caaa73d327246ae5cefc9f51c33fac826370c7f783b81 SHA512 3ad3850f92edc4796e9dd28e5ee10c8554e826ba64efb2c08f094a2aa4d2fa27142a0572fbfcc4215236a38ccbb6661ea9cbef65f9f598ca180a1011d03bf471
DIST jd-lib-1.2.1.tar.gz 38400 BLAKE2B 1ac5f02a4b9bab6a49225b8b190d96049196d5c63e01a2ce555cc3836d4da4505266b8b69108f813e689dddb832c51d52ce02bd90ee4259719da5a9a479d2f88 SHA512 718fa40ae96f4503b1dabe3dc7c98efe0dd1d5bb23d2a5d707bd37cd07d1e4b6c8589cf194c06d7af234e68546ac4f9493c096e5b18fa572120f55c601d8fa68
DIST jd-lib-1.2.1.gh.tar.gz 38400 BLAKE2B 1ac5f02a4b9bab6a49225b8b190d96049196d5c63e01a2ce555cc3836d4da4505266b8b69108f813e689dddb832c51d52ce02bd90ee4259719da5a9a479d2f88 SHA512 718fa40ae96f4503b1dabe3dc7c98efe0dd1d5bb23d2a5d707bd37cd07d1e4b6c8589cf194c06d7af234e68546ac4f9493c096e5b18fa572120f55c601d8fa68

View file

@ -1,28 +0,0 @@
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit java-pkg-2 java-pkg-simple
DESCRIPTION="Command line Java Decompiler"
HOMEPAGE="https://github.com/kwart/jd-cmd/"
SRC_URI="https://github.com/kwart/jd-cmd/archive/jd-cmd-${PV}.Final.tar.gz -> jd-cmd-${PV}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
#KEYWORDS="~amd64 ~x86"
IUSE=""
RDEPEND="virtual/jre:11"
DEPEND="${RDEPEND}
dev-java/jcommander
dev-java/slf4j-api
dev-java/hamcrest-core:1.3
dev-java/junit:4
dev-java/jd-core
virtual/jdk:11"
S="${WORKDIR}/jd-cmd-jd-cmd-${PV}.Final"
JAVA_GENTOO_CLASSPATH="jcommander,slf4j-api,hamcrest-core-1.3,junit-4,jd-core"

View file

@ -1,22 +1,22 @@
# Copyright 1999-2022 Gentoo Authors
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
EAPI=8
inherit java-pkg-2 java-pkg-simple
DESCRIPTION="Command line Java Decompiler"
HOMEPAGE="https://github.com/kwart/jd-cli"
SRC_URI="https://github.com/kwart/jd-cli/archive/refs/tags/jd-cli-${PV}.tar.gz -> ${P}.tar.gz"
SRC_URI="https://github.com/kwart/jd-cli/archive/refs/tags/jd-cli-${PV}.tar.gz -> ${P}.gh.tar.gz"
S="${WORKDIR}/jd-cli-jd-cli-${PV}"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="amd64 ~x86"
IUSE=""
CDEPEND="dev-java/jcommander:0
dev-java/slf4j-api:0
dev-java/logback-core:0
dev-java/jd-core:0
"
@ -25,8 +25,6 @@ RDEPEND="${CDEPEND}
DEPEND="${CDEPEND}
virtual/jdk:11"
S="${WORKDIR}/jd-cli-jd-cli-${PV}"
JAVA_GENTOO_CLASSPATH="jcommander,slf4j-api,logback-core,jd-core"
#JAVA_SRC_DIR="jd-cli/src/main/java/com/github/kwart/jd/cli"

View file

@ -1,30 +0,0 @@
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit java-pkg-2 java-pkg-simple
DESCRIPTION="Command line Java Decompiler"
HOMEPAGE="https://github.com/kwart/jd-cmd/"
SRC_URI="https://github.com/kwart/jd-cli/archive/refs/tags/jd-cli-${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
RDEPEND="virtual/jre:11"
DEPEND="${RDEPEND}
dev-java/jcommander
dev-java/slf4j-api
dev-java/hamcrest-core:1.3
dev-java/junit:4
dev-java/jd-core
virtual/jdk:11"
S="${WORKDIR}/${PN}-${P}"
JAVA_GENTOO_CLASSPATH="jcommander,slf4j-api,hamcrest-core-1.3,junit-4,jd-core"
JAVA_SRC_DIR="jd-lib/src/main/java/com/github/kwart/jd"

View file

@ -5,4 +5,7 @@
<email>unknown@pentoo.ch</email>
<name>Author Unknown</name>
</maintainer>
<upstream>
<remote-id type="github">kwart/jd-cli</remote-id>
</upstream>
</pkgmetadata>

View file

@ -1,8 +1,10 @@
# Copyright 1999-2022 Gentoo Authors
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# Skeleton command:
# java-ebuilder --generate-ebuild --workdir . --pom logback-classic/pom.xml --download-uri https://github.com/qos-ch/logback/archive/v_1.4.1.tar.gz --slot 0 --keywords "~amd64" --ebuild logback-classic-1.4.1.ebuild
# java-ebuilder --generate-ebuild --workdir . --pom logback-classic/pom.xml \
# --download-uri https://github.com/qos-ch/logback/archive/v_1.4.1.tar.gz --slot 0 \
# --keywords "~amd64" --ebuild logback-classic-1.4.1.ebuild
EAPI=8
@ -15,10 +17,11 @@ inherit java-pkg-2 java-pkg-simple
DESCRIPTION="logback-classic module"
HOMEPAGE="https://logback.qos.ch"
SRC_URI="https://github.com/qos-ch/logback/archive/v_${PV}.tar.gz -> logback-${PV}.tar.gz"
S="${WORKDIR}/logback-v_${PV}/logback-classic"
LICENSE="EPL-1.0 LGPL-3"
SLOT="0"
KEYWORDS="amd64 ~arm ~arm64"
KEYWORDS="amd64 arm64 x86"
# Common dependencies
# POM: ${PN}/pom.xml
@ -78,8 +81,6 @@ RDEPEND="
dev-java/jakarta-mail:0
"
S="${WORKDIR}/logback-v_${PV}/logback-classic"
JAVA_CLASSPATH_EXTRA="jakarta-servlet-api-6"
JAVA_GENTOO_CLASSPATH+="jakarta-mail"
JAVA_RESOURCE_DIRS="src/main/resources"

View file

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>unknown@pentoo.ch</email>
<name>Author Unknown</name>
</maintainer>
<upstream>
<remote-id type="github">qos-ch/logback</remote-id>
</upstream>
</pkgmetadata>

View file

@ -1,8 +1,10 @@
# Copyright 1999-2022 Gentoo Authors
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# Skeleton command:
# java-ebuilder --generate-ebuild --workdir . --pom logback-core/pom.xml --download-uri https://github.com/qos-ch/logback/archive/v_1.4.1.tar.gz --slot 0 --keywords "~amd64" --ebuild logback-core-1.4.1.ebuild
# java-ebuilder --generate-ebuild --workdir . --pom logback-core/pom.xml \
# --download-uri https://github.com/qos-ch/logback/archive/v_1.4.1.tar.gz --slot 0 \
# --keywords "~amd64" --ebuild logback-core-1.4.1.ebuild
EAPI=8
@ -15,10 +17,11 @@ inherit java-pkg-2 java-pkg-simple
DESCRIPTION="logback-core module"
HOMEPAGE="https://logback.qos.ch"
SRC_URI="https://github.com/qos-ch/logback/archive/v_${PV}.tar.gz -> logback-${PV}.tar.gz"
S="${WORKDIR}/logback-v_${PV}/logback-core"
LICENSE="EPL-1.0 LGPL-3"
SLOT="0"
KEYWORDS="amd64 ~arm ~arm64"
KEYWORDS="amd64 arm64 x86"
# Common dependencies
# POM: ${PN}/pom.xml
@ -57,8 +60,6 @@ RDEPEND="
# DOCS=( ../README.md )
S="${WORKDIR}/logback-v_${PV}/logback-core"
JAVA_SRC_DIR="src/main/java"
JAVA_TEST_GENTOO_CLASSPATH="junit-4,assertj-core-3,mockito-4"

View file

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>unknown@pentoo.ch</email>
<name>Author Unknown</name>
</maintainer>
<upstream>
<remote-id type="github">qos-ch/logback</remote-id>
</upstream>
</pkgmetadata>

View file

@ -1,2 +1 @@
DIST jd-cli-1.2.0.tar.gz 36558 BLAKE2B 4346a5b6d514850969762ca478e990699ae9c527fb7257c2d6974668908eb5ea0aee69429ab5e5a19eabe342507ac17b1a4716538880104f8594cea4471943d9 SHA512 f91a8c14058ce90d7b341c4fa2f304a7f851c1eefd31b4e1e7a74ba65910cf2c17b03e34be4ae0a3515cc0a9677c139da0fa26b1a338a19be26b6e9f8756919c
DIST jd-cli-1.2.1.tar.gz 38400 BLAKE2B 1ac5f02a4b9bab6a49225b8b190d96049196d5c63e01a2ce555cc3836d4da4505266b8b69108f813e689dddb832c51d52ce02bd90ee4259719da5a9a479d2f88 SHA512 718fa40ae96f4503b1dabe3dc7c98efe0dd1d5bb23d2a5d707bd37cd07d1e4b6c8589cf194c06d7af234e68546ac4f9493c096e5b18fa572120f55c601d8fa68
DIST jd-cli-1.2.1.gh.tar.gz 38400 BLAKE2B 1ac5f02a4b9bab6a49225b8b190d96049196d5c63e01a2ce555cc3836d4da4505266b8b69108f813e689dddb832c51d52ce02bd90ee4259719da5a9a479d2f88 SHA512 718fa40ae96f4503b1dabe3dc7c98efe0dd1d5bb23d2a5d707bd37cd07d1e4b6c8589cf194c06d7af234e68546ac4f9493c096e5b18fa572120f55c601d8fa68

View file

@ -1,9 +0,0 @@
#!/bin/sh
DIRNAME=$(dirname "$(readlink -e "$0")")
DIR=$(cd "$DIRNAME" || exit 112; pwd)
[ "$OSTYPE" = "cygwin" ] \
&& DIR="$( cygpath -m "$DIR" )"
java -jar "$DIR/jd-cli.jar" $@

View file

@ -1,31 +0,0 @@
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit java-pkg-2 java-pkg-simple
DESCRIPTION="Command line Java Decompiler"
HOMEPAGE="https://github.com/kwart/jd-cli"
SRC_URI="https://github.com/kwart/jd-cli/archive/refs/tags/jd-cli-${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
#logback fails to build
#KEYWORDS="amd64 ~x86"
IUSE=""
RDEPEND="virtual/jre:11"
DEPEND="${RDEPEND}
virtual/jdk:11
dev-java/jcommander
dev-java/slf4j-api
dev-java/logback"
S="${WORKDIR}/${PN}-${P}.Final"
JAVA_GENTOO_CLASSPATH="jcommander,slf4j-api,logback"
JAVA_SRC_DIR="jd-cli/src/main/java/com/github/kwart/jd/cli"
JAVA_LAUNCHER_FILENAME=${PN}
JAVA_MAIN_CLASS="com.github.kwart.jd.cli.Main"

View file

@ -1,17 +1,19 @@
# Copyright 1999-2022 Gentoo Authors
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
EAPI=8
inherit java-pkg-2 java-pkg-simple java-utils-2
inherit java-pkg-2
# java-pkg-simple
DESCRIPTION="Command line Java Decompiler"
HOMEPAGE="https://github.com/kwart/jd-cli"
SRC_URI="https://github.com/kwart/jd-cli/archive/refs/tags/jd-cli-${PV}.tar.gz -> ${P}.tar.gz"
SRC_URI="https://github.com/kwart/jd-cli/archive/refs/tags/jd-cli-${PV}.tar.gz -> ${P}.gh.tar.gz"
S="${WORKDIR}/${PN}-${P}"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="amd64 ~x86"
IUSE=""
#https://github.com/intoolswetrust/jd-cli/issues/81
#<=dev-java/jcommander-1.32
@ -28,8 +30,6 @@ RDEPEND="${CDEPEND}
DEPEND="${CDEPEND}
virtual/jdk:11"
S="${WORKDIR}/${PN}-${P}"
JAVA_GENTOO_CLASSPATH="jcommander,slf4j-api,logback-core,logback-classic,jd-lib"
JAVA_SRC_DIR="jd-cli/src/main/java/com/github/kwart/jd/cli"

View file

@ -5,4 +5,7 @@
<email>unknown@pentoo.ch</email>
<name>Author Unknown</name>
</maintainer>
<upstream>
<remote-id type="github">kwart/jd-cli</remote-id>
</upstream>
</pkgmetadata>