Skip to content

Commit

Permalink
patching ebuild files to support new java-pkg-simple
Browse files Browse the repository at this point in the history
Signed-off-by: Zhang Zongyu <[email protected]>
Signed-off-by: Miroslav Šulc <[email protected]>
  • Loading branch information
IsotropicZ authored and fordfrog committed Aug 30, 2020
1 parent faa4070 commit a4d773b
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion dev-java/juel/juel-2.1.0-r2.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ DEPEND="

S="${WORKDIR}/${P}"

JAVA_SRC_DIR="src/api src/impl"
JAVA_SRC_DIR=( "src/api" "src/impl" )

java_prepare() {
java-pkg_clean
Expand Down
2 changes: 1 addition & 1 deletion dev-java/piccolo2d/piccolo2d-3.0-r1.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ DEPEND="

S="${WORKDIR}/${PN}.java-${PN}-complete-${PV}"
JAVA_GENTOO_CLASSPATH="swt-3.8"
JAVA_SRC_DIR="core extras swt"
JAVA_SRC_DIR=( "core" "extras" "swt" )

java_prepare() {
rm -rf core/src/test extras/src/test swt/src/test || die
Expand Down
4 changes: 2 additions & 2 deletions dev-java/swingx-ws/swingx-ws-1.0_p20110515-r1.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ DEPEND="
app-arch/unzip"

S="${WORKDIR}/${MY_P}/src"
JAVA_SRC_DIR="beaninfo java"
JAVA_SRC_DIR=( "beaninfo" "java" )

src_prepare() {
default
Expand All @@ -61,7 +61,7 @@ src_compile() {
java-pkg-simple_src_compile

local DIR
for DIR in ${JAVA_SRC_DIR}; do
for DIR in "${JAVA_SRC_DIR[@]}"; do
java-pkg_addres ${PN}.jar ${DIR}
done
}
2 changes: 1 addition & 1 deletion dev-java/xml-commons/xml-commons-1.4.01.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ DEPEND="
>=virtual/jdk-1.6
source? ( app-arch/zip )"

JAVA_SRC_DIR="org javax"
JAVA_SRC_DIR=( "org" "javax" )
4 changes: 2 additions & 2 deletions dev-java/xsdlib/xsdlib-20090415.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@ java_prepare() {
find -name '*.jar' -exec rm -v {} + || die
}

JAVA_SRC_DIR="src src-apache"
JAVA_SRC_DIR=( "src" "src-apache" )
JAVA_GENTOO_CLASSPATH="relaxng-datatype,xerces-2"

src_compile() {
java-pkg-simple_src_compile

local dir; for dir in ${JAVA_SRC_DIR}; do
local dir; for dir in "${JAVA_SRC_DIR[@]}"; do
pushd ${dir} > /dev/null || die
jar -uf "${S}"/${PN}.jar $(find -name '*.properties') || die
popd > /dev/null
Expand Down

0 comments on commit a4d773b

Please sign in to comment.