dev-java/swt: 4.29-r1, minor style update

Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net>
Part-of: https://github.com/gentoo/gentoo/pull/43882
Closes: https://github.com/gentoo/gentoo/pull/43882
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Volkmar W. Pogatzki
2025-09-21 10:32:24 +02:00
committed by Sam James
parent 027561703a
commit 5201aae472

View File

@@ -16,7 +16,8 @@ HOMEPAGE="https://eclipse.dev/eclipse/swt/"
SRC_URI="
amd64? ( ${MY_DMF}/${MY_P}-gtk-linux-x86_64.zip )
arm64? ( ${MY_DMF}/${MY_P}-gtk-linux-aarch64.zip )
ppc64? ( ${MY_DMF}/${MY_P}-gtk-linux-ppc64le.zip )"
ppc64? ( ${MY_DMF}/${MY_P}-gtk-linux-ppc64le.zip )
"
LICENSE="CPL-1.0 LGPL-2.1 MPL-1.1"
SLOT="4.27"
@@ -35,7 +36,8 @@ COMMON_DEP="
)
webkit? (
net-libs/webkit-gtk:4.1
)"
)
"
DEPEND="${COMMON_DEP}
>=virtual/jdk-11:*[-headless-awt]
x11-base/xorg-proto
@@ -56,9 +58,7 @@ HTML_DOCS=( about.html )
JAVA_RESOURCE_DIRS="resources"
JAVA_SRC_DIR="src"
PATCHES=(
"${FILESDIR}/swt-4.27-as-needed-and-flag-fixes.patch"
)
PATCHES=( "${FILESDIR}/swt-4.27-as-needed-and-flag-fixes.patch" )
src_unpack() {
default
@@ -66,7 +66,7 @@ src_unpack() {
}
src_prepare() {
default
default # bug #780585
java-pkg-2_src_prepare
# .css stuff is essential at least for running net-p2p/biglybt
unzip swt.jar 'org/eclipse/swt/internal/gtk/*.css' -d resources || die
@@ -74,9 +74,8 @@ src_prepare() {
mkdir src || die "mkdir failed"
mv org src || die "moving java sources failed"
pushd src > /dev/null || die
find -type f ! -name '*.java' \
| xargs \
cp --parent -t ../resources -v \
find -type f ! -name '*.java' |
xargs cp --parent -t ../resources -v \
|| die "copying resources failed"
popd > /dev/null || die
cp version.txt resources || die "adding version.txt failed"