summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Schmaus <flow@gentoo.org>2022-07-05 14:01:09 +0200
committerFlorian Schmaus <flow@gentoo.org>2022-07-05 14:02:35 +0200
commite0d95a3c71e25dc699f3d5aa7c5a0ad2f6bf8c13 (patch)
tree3c560c0d6fc996667e950fcbc3d77e63dffb1e28 /dev-java/java-service-wrapper
parentdev-java/java-service-wrapper: add 3.5.50 (diff)
downloadgentoo-e0d95a3c71e25dc699f3d5aa7c5a0ad2f6bf8c13.tar.gz
gentoo-e0d95a3c71e25dc699f3d5aa7c5a0ad2f6bf8c13.tar.bz2
gentoo-e0d95a3c71e25dc699f3d5aa7c5a0ad2f6bf8c13.zip
dev-java/java-service-wrapper: respect flags, style fixes, HOMEPAGE
Signed-off-by: Florian Schmaus <flow@gentoo.org>
Diffstat (limited to 'dev-java/java-service-wrapper')
-rw-r--r--dev-java/java-service-wrapper/java-service-wrapper-3.5.50.ebuild25
1 files changed, 11 insertions, 14 deletions
diff --git a/dev-java/java-service-wrapper/java-service-wrapper-3.5.50.ebuild b/dev-java/java-service-wrapper/java-service-wrapper-3.5.50.ebuild
index 7b3ea7c6098b..f4dc6ef8ecd2 100644
--- a/dev-java/java-service-wrapper/java-service-wrapper-3.5.50.ebuild
+++ b/dev-java/java-service-wrapper/java-service-wrapper-3.5.50.ebuild
@@ -7,9 +7,8 @@ JAVA_PKG_IUSE="doc source test"
inherit java-pkg-2 java-pkg-simple toolchain-funcs java-ant-2
JAVA_TESTING_FRAMEWORKS="junit-4"
-MY_P="wrapper_${PV}_src"
DESCRIPTION="A wrapper that makes it possible to install a Java Application as daemon"
-HOMEPAGE="https://wrapper.tanukisoftware.org/"
+HOMEPAGE="https://wrapper.tanukisoftware.com"
SRC_URI="https://download.tanukisoftware.com/wrapper/${PV}/wrapper_${PV}_src.tar.gz"
LICENSE="tanuki-community"
@@ -17,17 +16,17 @@ SLOT="0"
KEYWORDS="~amd64 ~arm ~x86"
RESTRICT="!test? ( test )"
-RDEPEND="
- >=virtual/jre-1.8:*"
+RDEPEND=">=virtual/jre-1.8:*"
DEPEND="
>=virtual/jdk-1.8:*
test? (
dev-java/junit:4
dev-util/cunit
- )"
+ )
+"
BDEPEND="virtual/jdk"
-S="${WORKDIR}/${MY_P}"
+S="${WORKDIR}/wrapper_${PV}_src"
JAVA_SRC_DIR="src/java/"
JAVA_JAR_FILENAME="wrapper.jar"
@@ -39,12 +38,9 @@ src_prepare() {
# replaces as-needed.patch
sed -i \
- -e 's/gcc/$(CC)/g' \
- -e 's/$(COMPILE) -pthread/$(COMPILE) $(CFLAGS) $(LDFLAGS) -pthread/g' \
- -e 's/${COMPILE} -shared/${COMPILE} $(LDFLAGS) -shared/g' \
- -e 's/$(COMPILE) -c/$(COMPILE) $(CFLAGS) -c/g' \
- -e 's/$(COMPILE) $(DEFS)/$(COMPILE) $(CFLAGS) $(DEFS)/g' \
- -e 's/$(COMPILE) -DCUNIT/$(COMPILE) $(CFLAGS) $(LDFLAGS) -DCUNIT/g' \
+ -e 's/gcc -O3/$(CC)/g' \
+ -e 's/ -pthread/ $(CFLAGS) $(LDFLAGS) -pthread/g' \
+ -e 's/ -shared/ $(LDFLAGS) -shared/g' \
-e 's/$(TEST)\/testsuite/testsuite/g' \
src/c/Makefile-*.make || die
@@ -61,15 +57,16 @@ src_prepare() {
src_compile() {
tc-export CC
+
pushd "${T}" || die
echo 'public class GetArchDataModel{public static void main(String[] args){System.out.println(System.getProperty("sun.arch.data.model"));}}' \
> GetArchDataModel.java || die
ejavac GetArchDataModel.java
local BITS
- BITS="$(java GetArchDataModel)"
- [[ "${?}" == "0" ]] || die "Failed to identify sun.arch.data.model property"
+ BITS="$(java GetArchDataModel)" || die "Failed to identify sun.arch.data.model property"
popd || die
eant -Dbits="${BITS}" compile-c
+
java-pkg-simple_src_compile
}