summaryrefslogtreecommitdiff
path: root/dev-java/miglayout
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2021-05-31 20:59:14 +0100
committerV3n3RiX <venerix@redcorelinux.org>2021-05-31 20:59:14 +0100
commite748ba9741f6540f4675c23e3e37b73e822c13a4 (patch)
tree23dece8beabb3a3d7c6c0273b0eb40b21c62a889 /dev-java/miglayout
parent908778078736bd36f7a60a2d576d415cb8e000fa (diff)
gentoo resync : 31.05.2021
Diffstat (limited to 'dev-java/miglayout')
-rw-r--r--dev-java/miglayout/Manifest1
-rw-r--r--dev-java/miglayout/miglayout-4.0-r2.ebuild64
2 files changed, 65 insertions, 0 deletions
diff --git a/dev-java/miglayout/Manifest b/dev-java/miglayout/Manifest
index f5cd1c7c0c36..401a1212f40f 100644
--- a/dev-java/miglayout/Manifest
+++ b/dev-java/miglayout/Manifest
@@ -1,3 +1,4 @@
DIST miglayout-4.0-sources.jar 194675 BLAKE2B 9d0a4fce1b76e49f4a2962fccf323676172fc9fa084060d8b3507031635b7979d8b29ce598a0a484e3707eefdf90721162e67d36be5702e9309ef067fd39aab3 SHA512 27284ceac254707428351fb2451ffd5f2ebd580374df59624bb6af06011f70d87b27849900c2573aff782ebe6d84e1806c18a59741213948f0b238ee5a51ec2f
EBUILD miglayout-4.0-r1.ebuild 1274 BLAKE2B 8d7d2db7d2fe14b4a827ff1f089083476fee8daf84c5ce96cae6ebc886d37234e106da7d8f72693d77a321d5675c6b6e99ba58d2f06ac7cfeeea0f71e4862ee9 SHA512 a51a700c956e4693eded18a36c848da2b8e6582c5527b75ada686f00fb8ad95b313f6fcd3de725d46f113bfacdcc9d62b7e06f3e7e7f6c5d920cd0b02ec5d572
+EBUILD miglayout-4.0-r2.ebuild 1273 BLAKE2B d196a79d9846086ddfed5d887c828711365b4004e8d5cc02feca6e150d2d8c3fcac6c0f45e08ca737a0104ad71bb86a2fb428e1a6c7608b75152d01f43c85aad SHA512 862bda7cddea4ce4dce7be1849b28600bf6eaabed710889eab5b008cd23a7530da813d77a650ee0d8f0a82a66644864c58972fabbc0f0006272c4017e007e01a
MISC metadata.xml 751 BLAKE2B 2fdfc28e91176b4c7e1dcc4a1d61c491c1e7a5d835fb1bdc89e340db57dcabbf951da958ac0ae728658fffcc6aada76194745282245a066adc8d9c792ac09a49 SHA512 b097936cfa00fa8468489722f2d9557ee93efdf0d9ac852fbcf745814d35b294d0a8b5f559c4aecc62480c6f59e8329013e133a7dc7618c4f665b79c3b03375d
diff --git a/dev-java/miglayout/miglayout-4.0-r2.ebuild b/dev-java/miglayout/miglayout-4.0-r2.ebuild
new file mode 100644
index 000000000000..863e44285ea3
--- /dev/null
+++ b/dev-java/miglayout/miglayout-4.0-r2.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+JAVA_PKG_IUSE="doc examples source"
+
+inherit java-pkg-2
+
+DESCRIPTION="Easy to use yet very powerful Java Swing layout manager"
+HOMEPAGE="http://www.miglayout.com/"
+SRC_URI="http://www.migcalendar.com/miglayout/versions/${PV}/${P}-sources.jar"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="swt"
+
+COMMON_DEPEND="swt? ( dev-java/swt:4.10 )"
+BDEPEND="app-arch/unzip"
+RDEPEND="
+ ${COMMON_DEPEND}
+ >=virtual/jre-1.8:*
+"
+DEPEND="
+ ${COMMON_DEPEND}
+ >=virtual/jdk-1.8:*
+"
+
+S="${WORKDIR}"
+
+src_prepare() {
+ default
+
+ mv net/miginfocom/{demo,examples} . || die
+ mv demo/* examples || die
+
+ if ! use swt; then
+ rm -r net/miginfocom/swt || die
+ fi
+
+ find net -name '*.java' > sources.lst
+}
+
+src_compile() {
+ local classpath
+ use swt && classpath=( -classpath "$(java-pkg_getjars swt-4.10)" )
+
+ mkdir classes || die
+ ejavac "${classpath[@]}" -d classes @sources.lst || die
+ jar -cf ${PN}.jar -C classes . || die
+
+ if use doc; then
+ javadoc "${classpath[@]}" -author -version -d api @sources.lst || die
+ fi
+}
+
+src_install() {
+ java-pkg_dojar ${PN}.jar
+
+ use doc && java-pkg_dojavadoc api
+ use examples && java-pkg_doexamples examples
+ use source && java-pkg_dosrc net
+}