diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-03-11 18:08:11 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-03-11 18:08:11 +0000 |
commit | 23650861e24563ddcf10919ab5b1912676c3ff0c (patch) | |
tree | 0853606be5f409f8f1859eb33652d0c8c1e62623 /dev-java | |
parent | 44a6f923079d51164af67c7bc3f3e0db24658088 (diff) |
gentoo auto-resync : 11:03:2023 - 18:08:11
Diffstat (limited to 'dev-java')
-rw-r--r-- | dev-java/Manifest.gz | bin | 58620 -> 58621 bytes | |||
-rw-r--r-- | dev-java/miglayout/Manifest | 4 | ||||
-rw-r--r-- | dev-java/miglayout/metadata.xml | 3 | ||||
-rw-r--r-- | dev-java/miglayout/miglayout-5.3.ebuild | 78 |
4 files changed, 84 insertions, 1 deletions
diff --git a/dev-java/Manifest.gz b/dev-java/Manifest.gz Binary files differindex deaea9739382..6c5feb2d059a 100644 --- a/dev-java/Manifest.gz +++ b/dev-java/Manifest.gz diff --git a/dev-java/miglayout/Manifest b/dev-java/miglayout/Manifest index 87bd4a2651f5..7fe16800c626 100644 --- a/dev-java/miglayout/Manifest +++ b/dev-java/miglayout/Manifest @@ -1,3 +1,5 @@ DIST miglayout-4.0-sources.jar 194675 BLAKE2B 9d0a4fce1b76e49f4a2962fccf323676172fc9fa084060d8b3507031635b7979d8b29ce598a0a484e3707eefdf90721162e67d36be5702e9309ef067fd39aab3 SHA512 27284ceac254707428351fb2451ffd5f2ebd580374df59624bb6af06011f70d87b27849900c2573aff782ebe6d84e1806c18a59741213948f0b238ee5a51ec2f +DIST miglayout-5.3.tar.gz 627150 BLAKE2B 2b28b3dd95d84db1665308a2908c6ddf8f0e285431ffc03af0275f7005d98117f873b0752f9b1f428b213a30c9e020b626eb0e6709470c62eac46480c3aab542 SHA512 ee711a453a9e2962017eed9363e4b8c2fb1fb28d9b36455d928b60db40262be310e6d2ab6c9f3ac286f3975e9927f8a8a77827a27cd1cb2238b2033c38a67cdb EBUILD miglayout-4.0-r1.ebuild 1274 BLAKE2B b080bbf3f7107988fc47d995db3f8e1721fdb088eb4fec947389b26de293c44bc00b5cd6a3742dd057b56c3aaae99563c404ca716150f8d5594aad6fe517e546 SHA512 e9f558e62c1466b614ea1baadbe5eee982e0359f9d903ffcbaeaeff3af779815d97b38d4bc20e36cb6ca13a8087449762f9f1bba420ed6a7f24f4300610fa347 -MISC metadata.xml 752 BLAKE2B 2e26b7205144acd5867f48c06390d9366d4478fdb63cea8dedfdcbde51429345c45f532d820574fbdd0c1d66e10d05c216759c579a9021b9566e09a05af33b8b SHA512 7bde051cc584a41b262ee5043762ed0662e08883b66dcffb732fc9af4f8f4d3b616e53746aea23c299dd9bd600faf97d3dcd78655ad08d379125ddcfd242f150 +EBUILD miglayout-5.3.ebuild 2128 BLAKE2B f68acf53bace7adcc182b5d5217af05e70b16abbaafeeaa60d8cd5853686b8c2e530ced6b9f7525beee511bac38311155c5f9311920c61946c13391118fed3ca SHA512 d5d691d610dd9cafd431dd6f7933800b8516d8123032aec817710e39125b6b29813058fcb610f215843ca916c8a93ad7b30ab3de60d61da4e6e19954219c4f38 +MISC metadata.xml 842 BLAKE2B 253d87bd113ff6220e1cb6141012f798259a8f27b95921d6e88cba77af25d21afe2312abddfc0ee22eae4950fc1c7e8e7a99b6bd77529601f31c85df10814e7d SHA512 f2f3b74dedbe0773625e31450d6d16ba42d25d16414fa75820363194f20994638308f80da9d390bacfe3c84f40f8fb6a341c6f80b2254504ea690b041ed80cba diff --git a/dev-java/miglayout/metadata.xml b/dev-java/miglayout/metadata.xml index 9863d966b13b..202ea9738f79 100644 --- a/dev-java/miglayout/metadata.xml +++ b/dev-java/miglayout/metadata.xml @@ -11,4 +11,7 @@ For Java developers writing GUI layouts by hand that wants simplicity, power and <use> <flag name="swt">Add support for the SWT toolkit.</flag> </use> + <upstream> + <remote-id type="github">mikaelgrev/miglayout</remote-id> + </upstream> </pkgmetadata> diff --git a/dev-java/miglayout/miglayout-5.3.ebuild b/dev-java/miglayout/miglayout-5.3.ebuild new file mode 100644 index 000000000000..26caf78554f7 --- /dev/null +++ b/dev-java/miglayout/miglayout-5.3.ebuild @@ -0,0 +1,78 @@ +# Copyright 2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +JAVA_PKG_IUSE="doc source test" +MAVEN_ID="com.miglayout:miglayout-core:5.0 com.miglayout:miglayout-swing:5.0" +JAVA_TESTING_FRAMEWORKS="junit-4" + +inherit java-pkg-2 java-pkg-simple + +DESCRIPTION="MiGLayout - Java Layout Manager for Swing, SWT and JavaFX" +HOMEPAGE="https://miglayout.com/" +SRC_URI="https://github.com/mikaelgrev/miglayout/archive/V${PV}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/${P}" + +LICENSE="BSD" +SLOT="5" +KEYWORDS="~amd64 ~x86" + +RDEPEND=">=virtual/jre-1.8:*" +DEPEND=">=virtual/jdk-1.8:*" + +JAVA_TEST_GENTOO_CLASSPATH="junit-4" +JAVA_TEST_RUN_ONLY="net.miginfocom.swing.MigLayoutTest" +JAVA_TEST_SRC_DIR="swing/src/test/java" + +src_compile() { + einfo "Compiling miglayout-core.jar" + JAVA_JAR_FILENAME="miglayout-core.jar" + JAVA_SRC_DIR="core/src/main/java" + java-pkg-simple_src_compile + JAVA_GENTOO_CLASSPATH_EXTRA+=":miglayout-core.jar" + rm -r target || die + + einfo "Compiling miglayout-wingore.jar" + JAVA_JAR_FILENAME="miglayout-swing.jar" + JAVA_SRC_DIR="swing/src/main/java" + java-pkg-simple_src_compile + JAVA_GENTOO_CLASSPATH_EXTRA+=":miglayout-swing.jar" + rm -r target || die + + if use doc; then + einfo "Compiling javadocs" + JAVA_SRC_DIR=( + "core/src/main/java" + "swing/src/main/java" + ) + JAVA_JAR_FILENAME="ignoreme.jar" + java-pkg-simple_src_compile + fi +} + +src_test() { + # There was 1 failure: + # 1) testDPIScaling(net.miginfocom.swing.MigLayoutTest) + # java.awt.HeadlessException + # at java.desktop/sun.awt.HeadlessToolkit.getScreenResolution(HeadlessToolkit.java:122) + # at net.miginfocom.swing.MigLayoutTest.testDPIScaling(MigLayoutTest.java:28) + sed \ + -e '/import org.junit.Test/a import org.junit.Ignore;' \ + -e '/testDPIScaling()/i @Ignore' \ + -i swing/src/test/java/net/miginfocom/swing/MigLayoutTest.java || die +} + +src_install() { + java-pkg_dojar "miglayout-core.jar" + java-pkg_dojar "miglayout-swing.jar" + + if use doc; then + java-pkg_dojavadoc target/api + fi + + if use source; then + java-pkg_dosrc "core/src/main/java/*" + java-pkg_dosrc "swing/src/main/java/*" + fi +} |