├── .gitignore ├── .travis.yml ├── README.md ├── app-eselect └── eselect-java │ ├── eselect-java-9999.ebuild │ └── metadata.xml ├── dev-java ├── gradle-bin │ ├── Manifest │ ├── gradle-bin-4.10.3.ebuild │ ├── gradle-bin-5.6.2.ebuild │ ├── gradle-bin-6.8.3.ebuild │ ├── gradle-bin-6.9.4.ebuild │ ├── gradle-bin-7.1.1.ebuild │ ├── gradle-bin-7.2.ebuild │ ├── gradle-bin-7.3.3.ebuild │ ├── gradle-bin-7.4.2.ebuild │ ├── gradle-bin-7.5.1.ebuild │ ├── gradle-bin-7.6.1.ebuild │ ├── gradle-bin-7.6.3.ebuild │ ├── gradle-bin-8.0.2.ebuild │ ├── gradle-bin-8.1.1.ebuild │ ├── gradle-bin-8.2.1.ebuild │ ├── gradle-bin-8.3.ebuild │ └── metadata.xml ├── gradle │ ├── Manifest │ ├── gradle-7.1.0.ebuild │ └── metadata.xml ├── openjdk-bin │ ├── Manifest │ ├── files │ │ ├── openjdk-bin-18.env.sh │ │ └── openjdk-bin.env.sh │ ├── metadata.xml │ ├── openjdk-bin-18.0.1_p10.ebuild │ ├── openjdk-bin-19.0.2_p7.ebuild │ ├── openjdk-bin-20_beta20221125.ebuild │ └── openjdk-bin-21_p35.ebuild ├── openjdk-zero │ ├── Manifest │ ├── files │ │ └── openjdk.env.sh │ ├── metadata.xml │ └── openjdk-zero-25_p8.ebuild └── openjfx │ ├── Manifest │ ├── files │ └── 11 │ │ ├── 11.0.9_p0-version.patch │ │ ├── disable-architecture-verification.patch │ │ ├── disable-buildSrc-tests.patch │ │ ├── don-t-force-msse-11.0.11.patch │ │ ├── don-t-force-msse.patch │ │ ├── glibc-compatibility.patch │ │ ├── gstreamer-CVE-2021-3522.patch │ │ ├── respect-user-cflags-11.0.11.patch │ │ ├── respect-user-cflags.patch │ │ ├── use-system-swt-jar.patch │ │ ├── wno-error-11.0.11.patch │ │ └── wno-error.patch │ ├── metadata.xml │ └── openjfx-11.0.11_p1.ebuild ├── dev-util └── ghidra │ ├── Manifest │ ├── files │ └── repos.gradle │ ├── ghidra-10.2.2-r2.ebuild │ └── metadata.xml ├── eclass ├── clojure.eclass ├── excalibur-multi.eclass ├── excalibur.eclass ├── gradle.eclass ├── java-maven-2.eclass ├── java-maven-plugin-2.eclass ├── openoffice-ext.eclass └── tests │ ├── gradle.sh │ └── tests-common.sh ├── licenses ├── CeCILL-1 ├── Egothor ├── H2-1.0 ├── IBM-J1.4 ├── IntelliJ-IDEA-academic ├── IntelliJ-IDEA-classroom ├── IntelliJ-IDEA-commercial ├── IntelliJ-IDEA-opensource ├── IntelliJ-IDEA-personal ├── Minecraft ├── cddl-1.0 ├── dlj-1.1 ├── jai-imageio ├── jibble.org ├── json ├── lint4j ├── paulscode-SoundSystem ├── sequence ├── sun-bcla-java-vm ├── sun-bcla-jclib4jai ├── sun-jdl ├── tablelayout ├── tmate └── trilead-ssh2 ├── metadata ├── .gitignore └── layout.conf ├── profiles ├── eapi ├── package.mask ├── repo_name └── updates │ └── 4Q-2011 ├── skel.ebuild.java ├── sys-apps └── baselayout-java │ ├── baselayout-java-9999.ebuild │ └── metadata.xml └── virtual └── gradle ├── gradle-0.ebuild └── metadata.xml /.gitignore: -------------------------------------------------------------------------------- 1 | /profiles/use.local.desc 2 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | # 2 | # Run repoman via travis 3 | # See https://github.com/mrueg/repoman-travis 4 | # 5 | language: python 6 | python: 7 | - "3.7" 8 | env: 9 | - PORTAGE_VER="2.3.103" 10 | before_install: 11 | - sudo apt-get -qq update 12 | - pip install lxml pyyaml 13 | before_script: 14 | - sudo chmod a+rwX /etc/passwd /etc/group /etc /var /var/cache 15 | - mkdir -p travis-overlay /etc/portage /var/cache/distfiles /var/db/repos/gentoo 16 | - mv !(travis-overlay) travis-overlay/ 17 | - mv .git travis-overlay/ 18 | - wget "https://raw.githubusercontent.com/mrueg/repoman-travis/master/.travis.yml" -O .travis.yml.upstream 19 | - wget "https://raw.githubusercontent.com/mrueg/repoman-travis/master/spinner.sh" 20 | - wget -qO - "https://github.com/gentoo/portage/archive/portage-${PORTAGE_VER}.tar.gz" | tar xz 21 | - wget -qO - "https://github.com/gentoo-mirror/gentoo/archive/master.tar.gz" | tar xz -C /var/db/repos/gentoo --strip-components=1 22 | - chmod a+rwx spinner.sh 23 | - echo "portage:x:250:250:portage:/var/tmp/portage:/bin/false" >> /etc/passwd 24 | - echo "portage::250:portage,travis" >> /etc/group 25 | - wget "https://www.gentoo.org/dtd/metadata.dtd" -O /var/cache/distfiles/metadata.dtd 26 | - ln -s $TRAVIS_BUILD_DIR/portage-portage-${PORTAGE_VER}/cnf/repos.conf /etc/portage/repos.conf 27 | - ln -s /var/db/repos/gentoo/profiles/default/linux/amd64/17.0 /etc/portage/make.profile 28 | - SIZE=$(stat -c %s .travis.yml.upstream) 29 | - if ! cmp -n $SIZE -s .travis.yml .travis.yml.upstream; then echo -e "\e[31m !!! .travis.yml outdated! Update available https://github.com/mrueg/repoman-travis \e[0m" > /tmp/update ; fi 30 | - cd travis-overlay 31 | script: 32 | - ./../spinner.sh "python ../portage-portage-${PORTAGE_VER}/repoman/bin/repoman full -d" 33 | # You can append own scripts after this line 34 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Gentoo java overlay 2 | 3 | [![Repoman Status](https://travis-ci.org/gentoo/java-overlay.png)](https://travis-ci.org/gentoo/java-overlay) 4 | 5 | This overlay contains only packages migrated to generation 2 (java-*-2 eclass 6 | using ebuilds). Ebuilds in this overlay are expected to work. 7 | 8 | The overlay is hosted on Github and on the official Gentoo Overlays 9 | infrastructure at: 10 | 11 | - https://github.com/gentoo/java-overlay 12 | - https://gitweb.gentoo.org/proj/java.git 13 | 14 | If you have questions, you can find us on IRC in #gentoo-java on Freenode or at 15 | [java@gentoo.org](mailto:java@gentoo.org). 16 | 17 | Bugs should be reported on https://bugs.gentoo.org. Be sure to include 18 | "[java-overlay]" in the summary of your bug report. If you prefer mailing lists 19 | please use [gentoo-java@lists.gentoo.org](mailto:gentoo-java@lists.gentoo.org). 20 | -------------------------------------------------------------------------------- /app-eselect/eselect-java/eselect-java-9999.ebuild: -------------------------------------------------------------------------------- 1 | # Copyright 1999-2022 Gentoo Authors 2 | # Distributed under the terms of the GNU General Public License v2 3 | 4 | EAPI=8 5 | 6 | inherit autotools git-r3 7 | 8 | EGIT_REPO_URI="https://anongit.gentoo.org/git/proj/eselect-java.git" 9 | 10 | DESCRIPTION="A set of eselect modules for Java" 11 | HOMEPAGE="https://wiki.gentoo.org/wiki/Project:Java" 12 | 13 | LICENSE="GPL-2" 14 | SLOT="0" 15 | KEYWORDS="" 16 | IUSE="" 17 | 18 | RDEPEND="app-admin/eselect" 19 | 20 | src_prepare() { 21 | default 22 | eautoreconf 23 | } 24 | -------------------------------------------------------------------------------- /app-eselect/eselect-java/metadata.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | java@gentoo.org 6 | Java 7 | 8 | 9 | -------------------------------------------------------------------------------- /dev-java/gradle-bin/Manifest: -------------------------------------------------------------------------------- 1 | DIST gradle-4.10.3-all.zip 117609625 BLAKE2B c74da2bd24783bd80d6800d23bd2f7676e6871e69f981695d8eb28d000fd47739607c1840568cbe7c934eca21754ac3cb890925e45af9c43266bd31006274b8b SHA512 a688267399a1632d86e8c3d28e34ea58992bba64968f4d01b6c3e4ea63081167c556806b1e2718e6858a8d402c941fcdcbe761f3622fa2f74bd53dedffa620ff 2 | DIST gradle-5.6.2-all.zip 139632144 BLAKE2B 6d43594a752cf8eedb9958ac76a703cee35561779a152324e8429a1ce79b3c169dd5d34da780eec3147bae26472416f60fe77272927755ee5455481ca6c14e0f SHA512 f3e400d4b9dd3b11ab1bebb20fa927495760c4c57da814d08eeda0851d04609b719f930c1ce3030e35004a8af546b8847e9b389eb91c2a12da0ade974dab5ced 3 | DIST gradle-bin-6.8.3.zip 150631445 BLAKE2B 935a6631167481e289ac5a468b822ffeec204519edf42c8a0f05a911ef716715b706e3c22637763b4a7a0c7cbfa89f163673ef5631c115c025c5634b353fcee6 SHA512 fdd5c347142c2a8e2a1455d8886ddb103531de6e69d41f20d199a488d10165600924876761b452da213759a1dc6d47ed00a069f1a9f8af99fdbf1af3bb2e0564 4 | DIST gradle-bin-6.9.4.zip 150263528 BLAKE2B d1057f4e6beba1cfa096815bedc6f00869a86245921813c6138ae9070bd265f96686177146e42af8317f5a747319bb43590ec33195cbb878445cede9b0e872f1 SHA512 39616401dae95bceff425d311a83a76b32dc2e42433eff8f769fc987b17679a09bf476fe839b0c390410847b33b70976c85d08a2b03c91bf776e8f42198ac0c6 5 | DIST gradle-bin-7.1.1.zip 154838841 BLAKE2B 0a0ad08101f0c5fa7c0cb2a4c9ad6e53320cc6214fe1a139f390b73d9aa656ebfaf90c21816d57964f37e9cad51faed21f82f55b7e24fcf0f5a3ffd861c990ad SHA512 95cc2de9b7c3d6019d7780b17238ff8f0db14c9a1e494b391c84d75619eb3064322bb2c56fa9127b0a5681c94b32283090a15b06fefeccdb95a1f8fb9e58c75c 6 | DIST gradle-bin-7.2.zip 157058280 BLAKE2B 918213df58ac2afbd075c74588f60676cd7dc99030834828138c621348ac1abd368e0b54c2f6937cbfc9533e55e310b46cf841c92dcb1039b898c6f456032d38 SHA512 6ccc79f08afdc20b3d5abf876c3cabb69114d1ab4285cdb77158cd8c5e09207589edefb6c79f2bcffe4629a38c6b9e2f473de42dab29a24310965bc5816b907d 7 | DIST gradle-bin-7.3.3.zip 158875257 BLAKE2B 94f86e06da3eae4a9522d35a28577d033d64ce1bc2f36d0f5c1992e9b92ec311d25bd98bbeaf4b8a9869f22d93e14c88952e12166e436a0a6c206541d1f967aa SHA512 03f2bdd77202788cd43bb3e3a6390340f4d083d69ade5a53e0163204fb85307f5bbbbf4e04077c6ae558bc36ab3c478674f941079bc14a8344f55631fbba1490 8 | DIST gradle-bin-7.4.2.zip 159315974 BLAKE2B c7c8dbe82d22dec699d1997a781f3a66110c9910dfe67df2304c48cead96c130ca072550b8c5fa2362744cd2ea3c9723c45a6ecf6e0737fe3c9b7e286b44f4ae SHA512 2e1d05486baa9661d5c8ffead2df87874a66f6cfc958ee6840432b89d221d8b0af9e3cad3675766f5413d12aa61c5b5fb0dd82f4164e5da3022865eba9ceadbf 9 | DIST gradle-bin-7.5.1.zip 166101707 BLAKE2B e018f8ae0e4cbe1fff2e3fb3029ef4c3f35e1bf541ce75f22561e16c43d8501c2f2501db72081656a836ab1c3358020dbf0be3499e7c16b385d9940c852c62ae SHA512 89189d529df1258a01ad2e6c38b1374dfb3a1440706c1c7f27ace89b6fd5b6849f9809f209e3e410f226aeeb9348d144de70397ac94b4e59fd311a2b0dee0dc9 10 | DIST gradle-bin-7.6.1.zip 165594858 BLAKE2B 623ed41b7e0dfbfa015578c6915ca382cb441082e181f96d00d058a1bd42b5e749b807f8c0444c4cd41de17a7f754960f55aa69e8dd4339bd64444432ad8748e SHA512 72d051d8cf348c13dda20eec56526a3c212e9a9635920b3260281e2f98cf113ffaf4efb8efbb96081c36b9fae847c291125e24d175d6fb832b8dd6e0e74779ae 11 | DIST gradle-bin-7.6.3.zip 165780741 BLAKE2B d50ff26b40777bb81ed0bd639e705d9ca0634bbe823b48a1c606c82a38ffce64e0d9c86043fa8c065bf1e45623e736531c66b53b6112f2f44705e3a9414c2db3 SHA512 9065cce289f89cb84bc5d48f06583db8487e92db054957d62504b2c3dcb92d93aacd662c659f13d98376e447de306399122df9afb6e73ff26380f9c9f527eeb3 12 | DIST gradle-bin-8.0.2.zip 167671533 BLAKE2B e5cb4bef61ea89cfbf42c72c14e739f049b4930521dabaeb88fa6e2fffec81d6ee6514b615a6c1732db3bad4539e72ebbbeeb37b2f22a72fd2d2e08f7bf8d1b8 SHA512 70f114e353ec3e114b003e733e21c47fd26d2777363d015872aa9eab73c68b3186f77698aa1d72d4f4eedb2c53b0cd47a98f26ef5f0a9b2c1e42c6c877cca80f 13 | DIST gradle-bin-8.1.1.zip 168381151 BLAKE2B 334727108ccfd374daaa91c363ebf10d8b13e00c61fe14e097b3baa5bb8bf0d2fdde509ef4ac0d90db1fd075c7552a0f7ba90b67d549e45a3c1cb37d036ae000 SHA512 185a831dc37b946e348f9d98ff88eefaad303cdb385d45a5f65c401dd51d4d0c1225d8d716e7345167e53d41cade2bf3008bbde1d66a18d9a4925a589853b598 14 | DIST gradle-bin-8.2.1.zip 193042584 BLAKE2B 10381d2601c707c6a391fb515e753d583eec0d7e89213fef690df4259aedbdde0ea8981e474eae5c7b21ff12d621897158271c5e2ee964190bca02bf6882c237 SHA512 a3d05873460c4045e2b43c41e39120b444ad5896c6561104ccf8cca4e58fa95bd512e356faa3a507b0e3c4212548002ff02845791dd42518635f4bc6ae67475b 15 | DIST gradle-bin-8.3.zip 200258206 BLAKE2B f9909266e2887971f2f7480dbfe441c040fcd2ae12146bd9393d0836bca48f931124e60a1095d79ba6b172136ebb1734976e28d255aa3f16a22125a2662b80f1 SHA512 c328b597ff0c28b8071c050b6f1e57bf3eccca4d0eaeda0974700fc2d380667aca2e1a7b3548314519e99b7a823ede4c83a5786147a6a002d081920afa9c490b 16 | -------------------------------------------------------------------------------- /dev-java/gradle-bin/gradle-bin-4.10.3.ebuild: -------------------------------------------------------------------------------- 1 | # Copyright 1999-2021 Gentoo Authors 2 | # Distributed under the terms of the GNU General Public License v2 3 | 4 | EAPI=8 5 | 6 | inherit java-pkg-2 7 | 8 | MY_PN=${PN%%-bin} 9 | MY_P="${MY_PN}-${PV/_rc/-rc-}" 10 | 11 | DESCRIPTION="A project automation and build tool with a Groovy based DSL" 12 | SRC_URI="https://services.gradle.org/distributions/${MY_P}-all.zip" 13 | HOMEPAGE="https://www.gradle.org/" 14 | LICENSE="Apache-2.0" 15 | SLOT="${PV}" 16 | KEYWORDS="~amd64 ~x86" 17 | 18 | DEPEND="app-eselect/eselect-gradle" 19 | BDEPEND="app-arch/unzip" 20 | RDEPEND=" 21 | ${DEPEND} 22 | >=virtual/jre-1.6:* 23 | " 24 | 25 | IUSE="source doc examples" 26 | 27 | S="${WORKDIR}/${MY_P}" 28 | 29 | src_install() { 30 | local gradle_dir="${EPREFIX}/usr/share/${PN}-${SLOT}" 31 | 32 | dodoc docs/release-notes.html getting-started.html 33 | 34 | insinto "${gradle_dir}" 35 | 36 | # source 37 | if use source ; then 38 | java-pkg_dosrc src/* 39 | fi 40 | 41 | # docs 42 | if use doc ; then 43 | java-pkg_dojavadoc docs/javadoc 44 | fi 45 | 46 | # examples 47 | if use examples ; then 48 | java-pkg_doexamples samples 49 | fi 50 | 51 | insinto "${gradle_dir}" 52 | doins -r bin/ lib/ 53 | fperms 755 "${gradle_dir}/bin/gradle" 54 | dosym "${gradle_dir}/bin/gradle" "/usr/bin/${PN}-${SLOT}" 55 | } 56 | 57 | pkg_postinst() { 58 | eselect gradle update ifunset 59 | } 60 | 61 | pkg_postrm() { 62 | eselect gradle update ifunset 63 | } 64 | -------------------------------------------------------------------------------- /dev-java/gradle-bin/gradle-bin-5.6.2.ebuild: -------------------------------------------------------------------------------- 1 | # Copyright 1999-2021 Gentoo Authors 2 | # Distributed under the terms of the GNU General Public License v2 3 | 4 | EAPI=8 5 | 6 | inherit java-pkg-2 7 | 8 | MY_PN=${PN%%-bin} 9 | MY_P="${MY_PN}-${PV/_rc/-rc-}" 10 | 11 | DESCRIPTION="A project automation and build tool with a Groovy based DSL" 12 | SRC_URI="https://services.gradle.org/distributions/${MY_P}-all.zip" 13 | HOMEPAGE="https://www.gradle.org/" 14 | LICENSE="Apache-2.0" 15 | SLOT="${PV}" 16 | KEYWORDS="~amd64 ~x86" 17 | 18 | DEPEND="app-eselect/eselect-gradle" 19 | BDEPEND="app-arch/unzip" 20 | RDEPEND=" 21 | ${DEPEND} 22 | >=virtual/jre-1.6:* 23 | " 24 | 25 | IUSE="source doc examples" 26 | 27 | S="${WORKDIR}/${MY_P}" 28 | 29 | src_install() { 30 | local gradle_dir="${EPREFIX}/usr/share/${PN}-${SLOT}" 31 | 32 | dodoc docs/release-notes.html getting-started.html 33 | 34 | insinto "${gradle_dir}" 35 | 36 | # source 37 | if use source ; then 38 | java-pkg_dosrc src/* 39 | fi 40 | 41 | # docs 42 | if use doc ; then 43 | java-pkg_dojavadoc docs/javadoc 44 | fi 45 | 46 | # examples 47 | if use examples ; then 48 | java-pkg_doexamples samples 49 | fi 50 | 51 | insinto "${gradle_dir}" 52 | doins -r bin/ lib/ 53 | fperms 755 "${gradle_dir}/bin/gradle" 54 | dosym "${gradle_dir}/bin/gradle" "/usr/bin/${PN}-${SLOT}" 55 | } 56 | 57 | pkg_postinst() { 58 | eselect gradle update ifunset 59 | } 60 | 61 | pkg_postrm() { 62 | eselect gradle update ifunset 63 | } 64 | -------------------------------------------------------------------------------- /dev-java/gradle-bin/gradle-bin-6.8.3.ebuild: -------------------------------------------------------------------------------- 1 | # Copyright 1999-2021 Gentoo Authors 2 | # Distributed under the terms of the GNU General Public License v2 3 | 4 | EAPI=8 5 | 6 | IUSE="doc" 7 | JAVA_PKG_IUSE="source" 8 | 9 | inherit java-pkg-2 10 | 11 | MY_PN=${PN%%-bin} 12 | MY_P="${MY_PN}-${PV/_rc/-rc-}" 13 | 14 | DESCRIPTION="A project automation and build tool with a Groovy based DSL" 15 | SRC_URI="https://services.gradle.org/distributions/${MY_P}-all.zip -> ${P}.zip" 16 | HOMEPAGE="https://www.gradle.org/" 17 | 18 | LICENSE="Apache-2.0" 19 | SLOT="${PV}" 20 | KEYWORDS="amd64 x86" 21 | 22 | DEPEND="app-eselect/eselect-gradle" 23 | BDEPEND="app-arch/unzip" 24 | RDEPEND=" 25 | ${DEPEND} 26 | >=virtual/jre-1.8:* 27 | " 28 | 29 | S="${WORKDIR}/${MY_P}" 30 | 31 | src_compile() { 32 | : 33 | } 34 | 35 | src_install() { 36 | local gradle_dir="/usr/share/${PN}-${SLOT}" 37 | 38 | if use source; then 39 | java-pkg_dosrc src 40 | fi 41 | 42 | docinto html 43 | dodoc -r docs/release-notes.html 44 | if use doc; then 45 | dodoc -r docs/{dsl,userguide} 46 | java-pkg_dojavadoc docs/javadoc 47 | fi 48 | 49 | insinto "${gradle_dir}" 50 | doins -r bin/ lib/ 51 | fperms 755 "${gradle_dir}/bin/gradle" 52 | dosym "${gradle_dir}/bin/gradle" "/usr/bin/${PN}-${SLOT}" 53 | } 54 | 55 | pkg_postinst() { 56 | eselect gradle update ifunset 57 | } 58 | 59 | pkg_postrm() { 60 | eselect gradle update ifunset 61 | } 62 | -------------------------------------------------------------------------------- /dev-java/gradle-bin/gradle-bin-6.9.4.ebuild: -------------------------------------------------------------------------------- 1 | # Copyright 1999-2024 Gentoo Authors 2 | # Distributed under the terms of the GNU General Public License v2 3 | 4 | EAPI=8 5 | 6 | IUSE="doc" 7 | JAVA_PKG_IUSE="source" 8 | 9 | inherit java-pkg-2 10 | 11 | MY_PN=${PN%%-bin} 12 | MY_P="${MY_PN}-${PV/_rc/-rc-}" 13 | 14 | DESCRIPTION="A project automation and build tool with a Groovy based DSL" 15 | SRC_URI="https://services.gradle.org/distributions/${MY_P}-all.zip -> ${P}.zip" 16 | HOMEPAGE="https://www.gradle.org/" 17 | 18 | LICENSE="Apache-2.0" 19 | SLOT="${PV}" 20 | KEYWORDS="~amd64 ~x86" 21 | 22 | DEPEND="app-eselect/eselect-gradle" 23 | BDEPEND="app-arch/unzip" 24 | RDEPEND=" 25 | ${DEPEND} 26 | >=virtual/jre-1.8:* 27 | " 28 | 29 | S="${WORKDIR}/${MY_P}" 30 | 31 | src_compile() { 32 | : 33 | } 34 | 35 | src_install() { 36 | local gradle_dir="/usr/share/${PN}-${SLOT}" 37 | 38 | if use source; then 39 | java-pkg_dosrc src 40 | fi 41 | 42 | docinto html 43 | dodoc -r docs/release-notes.html 44 | if use doc; then 45 | dodoc -r docs/{dsl,userguide} 46 | java-pkg_dojavadoc docs/javadoc 47 | fi 48 | 49 | insinto "${gradle_dir}" 50 | doins -r bin/ lib/ 51 | fperms 755 "${gradle_dir}/bin/gradle" 52 | dosym "${gradle_dir}/bin/gradle" "/usr/bin/${PN}-${SLOT}" 53 | } 54 | 55 | pkg_postinst() { 56 | eselect gradle update ifunset 57 | } 58 | 59 | pkg_postrm() { 60 | eselect gradle update ifunset 61 | } 62 | -------------------------------------------------------------------------------- /dev-java/gradle-bin/gradle-bin-7.1.1.ebuild: -------------------------------------------------------------------------------- 1 | # Copyright 1999-2021 Gentoo Authors 2 | # Distributed under the terms of the GNU General Public License v2 3 | 4 | EAPI=8 5 | 6 | IUSE="doc" 7 | JAVA_PKG_IUSE="source" 8 | 9 | inherit java-pkg-2 10 | 11 | MY_PN=${PN%%-bin} 12 | MY_P="${MY_PN}-${PV/_rc/-rc-}" 13 | 14 | DESCRIPTION="A project automation and build tool with a Groovy based DSL" 15 | SRC_URI="https://services.gradle.org/distributions/${MY_P}-all.zip -> ${P}.zip" 16 | HOMEPAGE="https://www.gradle.org/" 17 | 18 | LICENSE="Apache-2.0" 19 | SLOT="${PV}" 20 | KEYWORDS="amd64 x86" 21 | 22 | DEPEND="app-eselect/eselect-gradle" 23 | BDEPEND="app-arch/unzip" 24 | RDEPEND=" 25 | ${DEPEND} 26 | >=virtual/jre-1.8:* 27 | " 28 | 29 | S="${WORKDIR}/${MY_P}" 30 | 31 | src_compile() { 32 | : 33 | } 34 | 35 | src_install() { 36 | local gradle_dir="/usr/share/${PN}-${SLOT}" 37 | 38 | if use source; then 39 | java-pkg_dosrc src 40 | fi 41 | 42 | docinto html 43 | dodoc -r docs/release-notes.html 44 | if use doc; then 45 | dodoc -r docs/{dsl,userguide} 46 | java-pkg_dojavadoc docs/javadoc 47 | fi 48 | 49 | insinto "${gradle_dir}" 50 | doins -r bin/ lib/ 51 | fperms 755 "${gradle_dir}/bin/gradle" 52 | dosym "${gradle_dir}/bin/gradle" "/usr/bin/${PN}-${SLOT}" 53 | } 54 | 55 | pkg_postinst() { 56 | eselect gradle update ifunset 57 | } 58 | 59 | pkg_postrm() { 60 | eselect gradle update ifunset 61 | } 62 | -------------------------------------------------------------------------------- /dev-java/gradle-bin/gradle-bin-7.2.ebuild: -------------------------------------------------------------------------------- 1 | # Copyright 1999-2022 Gentoo Authors 2 | # Distributed under the terms of the GNU General Public License v2 3 | 4 | EAPI=8 5 | 6 | IUSE="doc" 7 | JAVA_PKG_IUSE="source" 8 | 9 | inherit java-pkg-2 10 | 11 | MY_PN=${PN%%-bin} 12 | MY_P="${MY_PN}-${PV/_rc/-rc-}" 13 | 14 | DESCRIPTION="A project automation and build tool with a Groovy based DSL" 15 | SRC_URI="https://services.gradle.org/distributions/${MY_P}-all.zip -> ${P}.zip" 16 | HOMEPAGE="https://www.gradle.org/" 17 | 18 | LICENSE="Apache-2.0" 19 | SLOT="${PV}" 20 | KEYWORDS="amd64 x86" 21 | 22 | DEPEND="app-eselect/eselect-gradle" 23 | BDEPEND="app-arch/unzip" 24 | RDEPEND=" 25 | ${DEPEND} 26 | >=virtual/jre-1.8:* 27 | " 28 | 29 | S="${WORKDIR}/${MY_P}" 30 | 31 | src_compile() { 32 | : 33 | } 34 | 35 | src_install() { 36 | local gradle_dir="/usr/share/${PN}-${SLOT}" 37 | 38 | if use source; then 39 | java-pkg_dosrc src 40 | fi 41 | 42 | docinto html 43 | dodoc -r docs/release-notes.html 44 | if use doc; then 45 | dodoc -r docs/{dsl,userguide} 46 | java-pkg_dojavadoc docs/javadoc 47 | fi 48 | 49 | insinto "${gradle_dir}" 50 | doins -r bin/ lib/ 51 | fperms 755 "${gradle_dir}/bin/gradle" 52 | dosym "${gradle_dir}/bin/gradle" "/usr/bin/${PN}-${SLOT}" 53 | } 54 | 55 | pkg_postinst() { 56 | eselect gradle update ifunset 57 | } 58 | 59 | pkg_postrm() { 60 | eselect gradle update ifunset 61 | } 62 | -------------------------------------------------------------------------------- /dev-java/gradle-bin/gradle-bin-7.3.3.ebuild: -------------------------------------------------------------------------------- 1 | # Copyright 1999-2022 Gentoo Authors 2 | # Distributed under the terms of the GNU General Public License v2 3 | 4 | EAPI=8 5 | 6 | IUSE="doc" 7 | JAVA_PKG_IUSE="source" 8 | 9 | inherit java-pkg-2 10 | 11 | MY_PN=${PN%%-bin} 12 | MY_P="${MY_PN}-${PV/_rc/-rc-}" 13 | 14 | DESCRIPTION="A project automation and build tool with a Groovy based DSL" 15 | SRC_URI="https://services.gradle.org/distributions/${MY_P}-all.zip -> ${P}.zip" 16 | HOMEPAGE="https://www.gradle.org/" 17 | 18 | LICENSE="Apache-2.0" 19 | SLOT="${PV}" 20 | KEYWORDS="amd64 x86" 21 | 22 | DEPEND="app-eselect/eselect-gradle" 23 | BDEPEND="app-arch/unzip" 24 | RDEPEND=" 25 | ${DEPEND} 26 | >=virtual/jre-1.8:* 27 | " 28 | 29 | S="${WORKDIR}/${MY_P}" 30 | 31 | src_compile() { 32 | : 33 | } 34 | 35 | src_install() { 36 | local gradle_dir="/usr/share/${PN}-${SLOT}" 37 | 38 | if use source; then 39 | java-pkg_dosrc src 40 | fi 41 | 42 | docinto html 43 | dodoc -r docs/release-notes.html 44 | if use doc; then 45 | dodoc -r docs/{dsl,userguide} 46 | java-pkg_dojavadoc docs/javadoc 47 | fi 48 | 49 | insinto "${gradle_dir}" 50 | doins -r bin/ lib/ 51 | fperms 755 "${gradle_dir}/bin/gradle" 52 | dosym "${gradle_dir}/bin/gradle" "/usr/bin/${PN}-${SLOT}" 53 | } 54 | 55 | pkg_postinst() { 56 | eselect gradle update ifunset 57 | } 58 | 59 | pkg_postrm() { 60 | eselect gradle update ifunset 61 | } 62 | -------------------------------------------------------------------------------- /dev-java/gradle-bin/gradle-bin-7.4.2.ebuild: -------------------------------------------------------------------------------- 1 | # Copyright 1999-2022 Gentoo Authors 2 | # Distributed under the terms of the GNU General Public License v2 3 | 4 | EAPI=8 5 | 6 | IUSE="doc" 7 | JAVA_PKG_IUSE="source" 8 | 9 | inherit java-pkg-2 10 | 11 | MY_PN=${PN%%-bin} 12 | MY_P="${MY_PN}-${PV/_rc/-rc-}" 13 | 14 | DESCRIPTION="A project automation and build tool with a Groovy based DSL" 15 | SRC_URI="https://services.gradle.org/distributions/${MY_P}-all.zip -> ${P}.zip" 16 | HOMEPAGE="https://www.gradle.org/" 17 | 18 | LICENSE="Apache-2.0" 19 | SLOT="${PV}" 20 | KEYWORDS="amd64 x86" 21 | 22 | DEPEND="app-eselect/eselect-gradle" 23 | BDEPEND="app-arch/unzip" 24 | RDEPEND=" 25 | ${DEPEND} 26 | >=virtual/jre-1.8:* 27 | " 28 | 29 | S="${WORKDIR}/${MY_P}" 30 | 31 | src_compile() { 32 | : 33 | } 34 | 35 | src_install() { 36 | local gradle_dir="/usr/share/${PN}-${SLOT}" 37 | 38 | if use source; then 39 | java-pkg_dosrc src 40 | fi 41 | 42 | docinto html 43 | dodoc -r docs/release-notes.html 44 | if use doc; then 45 | dodoc -r docs/{dsl,userguide} 46 | java-pkg_dojavadoc docs/javadoc 47 | fi 48 | 49 | insinto "${gradle_dir}" 50 | doins -r bin/ lib/ 51 | fperms 755 "${gradle_dir}/bin/gradle" 52 | dosym "${gradle_dir}/bin/gradle" "/usr/bin/${PN}-${SLOT}" 53 | } 54 | 55 | pkg_postinst() { 56 | eselect gradle update ifunset 57 | } 58 | 59 | pkg_postrm() { 60 | eselect gradle update ifunset 61 | } 62 | -------------------------------------------------------------------------------- /dev-java/gradle-bin/gradle-bin-7.5.1.ebuild: -------------------------------------------------------------------------------- 1 | # Copyright 1999-2022 Gentoo Authors 2 | # Distributed under the terms of the GNU General Public License v2 3 | 4 | EAPI=8 5 | 6 | IUSE="doc" 7 | JAVA_PKG_IUSE="source" 8 | 9 | inherit java-pkg-2 10 | 11 | MY_PN=${PN%%-bin} 12 | MY_P="${MY_PN}-${PV/_rc/-rc-}" 13 | 14 | DESCRIPTION="A project automation and build tool with a Groovy based DSL" 15 | SRC_URI="https://services.gradle.org/distributions/${MY_P}-all.zip -> ${P}.zip" 16 | HOMEPAGE="https://www.gradle.org/" 17 | 18 | LICENSE="Apache-2.0" 19 | SLOT="${PV}" 20 | KEYWORDS="amd64 x86" 21 | 22 | DEPEND="app-eselect/eselect-gradle" 23 | BDEPEND="app-arch/unzip" 24 | RDEPEND=" 25 | ${DEPEND} 26 | >=virtual/jre-1.8:* 27 | " 28 | 29 | S="${WORKDIR}/${MY_P}" 30 | 31 | src_compile() { 32 | : 33 | } 34 | 35 | src_install() { 36 | local gradle_dir="/usr/share/${PN}-${SLOT}" 37 | 38 | if use source; then 39 | java-pkg_dosrc src 40 | fi 41 | 42 | docinto html 43 | dodoc -r docs/release-notes.html 44 | if use doc; then 45 | dodoc -r docs/{dsl,userguide} 46 | java-pkg_dojavadoc docs/javadoc 47 | fi 48 | 49 | insinto "${gradle_dir}" 50 | doins -r bin/ lib/ 51 | fperms 755 "${gradle_dir}/bin/gradle" 52 | dosym "${gradle_dir}/bin/gradle" "/usr/bin/${PN}-${SLOT}" 53 | } 54 | 55 | pkg_postinst() { 56 | eselect gradle update ifunset 57 | } 58 | 59 | pkg_postrm() { 60 | eselect gradle update ifunset 61 | } 62 | -------------------------------------------------------------------------------- /dev-java/gradle-bin/gradle-bin-7.6.1.ebuild: -------------------------------------------------------------------------------- 1 | # Copyright 1999-2023 Gentoo Authors 2 | # Distributed under the terms of the GNU General Public License v2 3 | 4 | EAPI=8 5 | 6 | IUSE="doc" 7 | JAVA_PKG_IUSE="source" 8 | 9 | inherit java-pkg-2 10 | 11 | MY_PN=${PN%%-bin} 12 | MY_P="${MY_PN}-${PV/_rc/-rc-}" 13 | 14 | DESCRIPTION="A project automation and build tool with a Groovy based DSL" 15 | SRC_URI="https://services.gradle.org/distributions/${MY_P}-all.zip -> ${P}.zip" 16 | HOMEPAGE="https://www.gradle.org/" 17 | 18 | LICENSE="Apache-2.0" 19 | SLOT="${PV}" 20 | KEYWORDS="amd64 x86" 21 | 22 | DEPEND="app-eselect/eselect-gradle" 23 | BDEPEND="app-arch/unzip" 24 | RDEPEND=" 25 | ${DEPEND} 26 | >=virtual/jre-1.8:* 27 | " 28 | 29 | S="${WORKDIR}/${MY_P}" 30 | 31 | src_compile() { 32 | : 33 | } 34 | 35 | src_install() { 36 | local gradle_dir="/usr/share/${PN}-${SLOT}" 37 | 38 | if use source; then 39 | java-pkg_dosrc src 40 | fi 41 | 42 | docinto html 43 | dodoc -r docs/release-notes.html 44 | if use doc; then 45 | dodoc -r docs/{dsl,userguide} 46 | java-pkg_dojavadoc docs/javadoc 47 | fi 48 | 49 | insinto "${gradle_dir}" 50 | doins -r bin/ lib/ 51 | fperms 755 "${gradle_dir}/bin/gradle" 52 | dosym "${gradle_dir}/bin/gradle" "/usr/bin/${PN}-${SLOT}" 53 | } 54 | 55 | pkg_postinst() { 56 | eselect gradle update ifunset 57 | } 58 | 59 | pkg_postrm() { 60 | eselect gradle update ifunset 61 | } 62 | -------------------------------------------------------------------------------- /dev-java/gradle-bin/gradle-bin-7.6.3.ebuild: -------------------------------------------------------------------------------- 1 | # Copyright 1999-2024 Gentoo Authors 2 | # Distributed under the terms of the GNU General Public License v2 3 | 4 | EAPI=8 5 | 6 | IUSE="doc" 7 | JAVA_PKG_IUSE="source" 8 | 9 | inherit java-pkg-2 10 | 11 | MY_PN=${PN%%-bin} 12 | MY_P="${MY_PN}-${PV/_rc/-rc-}" 13 | 14 | DESCRIPTION="A project automation and build tool with a Groovy based DSL" 15 | SRC_URI="https://services.gradle.org/distributions/${MY_P}-all.zip -> ${P}.zip" 16 | HOMEPAGE="https://www.gradle.org/" 17 | 18 | LICENSE="Apache-2.0" 19 | SLOT="${PV}" 20 | KEYWORDS="~amd64 ~x86" 21 | 22 | DEPEND="app-eselect/eselect-gradle" 23 | BDEPEND="app-arch/unzip" 24 | RDEPEND=" 25 | ${DEPEND} 26 | >=virtual/jre-1.8:* 27 | " 28 | 29 | S="${WORKDIR}/${MY_P}" 30 | 31 | src_compile() { 32 | : 33 | } 34 | 35 | src_install() { 36 | local gradle_dir="/usr/share/${PN}-${SLOT}" 37 | 38 | if use source; then 39 | java-pkg_dosrc src 40 | fi 41 | 42 | docinto html 43 | dodoc -r docs/release-notes.html 44 | if use doc; then 45 | dodoc -r docs/{dsl,userguide} 46 | java-pkg_dojavadoc docs/javadoc 47 | fi 48 | 49 | insinto "${gradle_dir}" 50 | doins -r bin/ lib/ 51 | fperms 755 "${gradle_dir}/bin/gradle" 52 | dosym "${gradle_dir}/bin/gradle" "/usr/bin/${PN}-${SLOT}" 53 | } 54 | 55 | pkg_postinst() { 56 | eselect gradle update ifunset 57 | } 58 | 59 | pkg_postrm() { 60 | eselect gradle update ifunset 61 | } 62 | -------------------------------------------------------------------------------- /dev-java/gradle-bin/gradle-bin-8.0.2.ebuild: -------------------------------------------------------------------------------- 1 | # Copyright 1999-2023 Gentoo Authors 2 | # Distributed under the terms of the GNU General Public License v2 3 | 4 | EAPI=8 5 | 6 | IUSE="doc" 7 | JAVA_PKG_IUSE="source" 8 | 9 | inherit java-pkg-2 10 | 11 | MY_PN=${PN%%-bin} 12 | MY_P="${MY_PN}-${PV/_rc/-rc-}" 13 | 14 | DESCRIPTION="A project automation and build tool with a Groovy based DSL" 15 | SRC_URI="https://services.gradle.org/distributions/${MY_P}-all.zip -> ${P}.zip" 16 | HOMEPAGE="https://www.gradle.org/" 17 | 18 | LICENSE="Apache-2.0" 19 | SLOT="${PV}" 20 | KEYWORDS="amd64 x86" 21 | 22 | DEPEND="app-eselect/eselect-gradle" 23 | BDEPEND="app-arch/unzip" 24 | RDEPEND=" 25 | ${DEPEND} 26 | >=virtual/jre-1.8:* 27 | " 28 | 29 | S="${WORKDIR}/${MY_P}" 30 | 31 | src_compile() { 32 | : 33 | } 34 | 35 | src_install() { 36 | local gradle_dir="/usr/share/${PN}-${SLOT}" 37 | 38 | if use source; then 39 | java-pkg_dosrc src 40 | fi 41 | 42 | docinto html 43 | dodoc -r docs/release-notes.html 44 | if use doc; then 45 | dodoc -r docs/{dsl,userguide} 46 | java-pkg_dojavadoc docs/javadoc 47 | fi 48 | 49 | insinto "${gradle_dir}" 50 | doins -r bin/ lib/ 51 | fperms 755 "${gradle_dir}/bin/gradle" 52 | dosym "${gradle_dir}/bin/gradle" "/usr/bin/${PN}-${SLOT}" 53 | } 54 | 55 | pkg_postinst() { 56 | eselect gradle update ifunset 57 | } 58 | 59 | pkg_postrm() { 60 | eselect gradle update ifunset 61 | } 62 | -------------------------------------------------------------------------------- /dev-java/gradle-bin/gradle-bin-8.1.1.ebuild: -------------------------------------------------------------------------------- 1 | # Copyright 1999-2023 Gentoo Authors 2 | # Distributed under the terms of the GNU General Public License v2 3 | 4 | EAPI=8 5 | 6 | IUSE="doc" 7 | JAVA_PKG_IUSE="source" 8 | 9 | inherit java-pkg-2 10 | 11 | MY_PN=${PN%%-bin} 12 | MY_P="${MY_PN}-${PV/_rc/-rc-}" 13 | 14 | DESCRIPTION="A project automation and build tool with a Groovy based DSL" 15 | SRC_URI="https://services.gradle.org/distributions/${MY_P}-all.zip -> ${P}.zip" 16 | HOMEPAGE="https://www.gradle.org/" 17 | 18 | LICENSE="Apache-2.0" 19 | SLOT="${PV}" 20 | KEYWORDS="amd64 x86" 21 | 22 | DEPEND="app-eselect/eselect-gradle" 23 | BDEPEND="app-arch/unzip" 24 | RDEPEND=" 25 | ${DEPEND} 26 | >=virtual/jre-1.8:* 27 | " 28 | 29 | S="${WORKDIR}/${MY_P}" 30 | 31 | src_compile() { 32 | : 33 | } 34 | 35 | src_install() { 36 | local gradle_dir="/usr/share/${PN}-${SLOT}" 37 | 38 | if use source; then 39 | java-pkg_dosrc src 40 | fi 41 | 42 | docinto html 43 | dodoc -r docs/release-notes.html 44 | if use doc; then 45 | dodoc -r docs/{dsl,userguide} 46 | java-pkg_dojavadoc docs/javadoc 47 | fi 48 | 49 | insinto "${gradle_dir}" 50 | doins -r bin/ lib/ 51 | fperms 755 "${gradle_dir}/bin/gradle" 52 | dosym "${gradle_dir}/bin/gradle" "/usr/bin/${PN}-${SLOT}" 53 | } 54 | 55 | pkg_postinst() { 56 | eselect gradle update ifunset 57 | } 58 | 59 | pkg_postrm() { 60 | eselect gradle update ifunset 61 | } 62 | -------------------------------------------------------------------------------- /dev-java/gradle-bin/gradle-bin-8.2.1.ebuild: -------------------------------------------------------------------------------- 1 | # Copyright 1999-2023 Gentoo Authors 2 | # Distributed under the terms of the GNU General Public License v2 3 | 4 | EAPI=8 5 | 6 | IUSE="doc" 7 | JAVA_PKG_IUSE="source" 8 | 9 | inherit java-pkg-2 10 | 11 | MY_PN=${PN%%-bin} 12 | MY_P="${MY_PN}-${PV/_rc/-rc-}" 13 | 14 | DESCRIPTION="A project automation and build tool with a Groovy based DSL" 15 | SRC_URI="https://services.gradle.org/distributions/${MY_P}-all.zip -> ${P}.zip" 16 | HOMEPAGE="https://www.gradle.org/" 17 | 18 | LICENSE="Apache-2.0" 19 | SLOT="${PV}" 20 | KEYWORDS="amd64 ~x86" 21 | 22 | DEPEND="app-eselect/eselect-gradle" 23 | BDEPEND="app-arch/unzip" 24 | RDEPEND=" 25 | ${DEPEND} 26 | >=virtual/jre-1.8:* 27 | " 28 | 29 | S="${WORKDIR}/${MY_P}" 30 | 31 | src_compile() { 32 | : 33 | } 34 | 35 | src_install() { 36 | local gradle_dir="/usr/share/${PN}-${SLOT}" 37 | 38 | if use source; then 39 | java-pkg_dosrc src 40 | fi 41 | 42 | docinto html 43 | dodoc -r docs/release-notes.html 44 | if use doc; then 45 | dodoc -r docs/{dsl,userguide} 46 | java-pkg_dojavadoc docs/javadoc 47 | fi 48 | 49 | insinto "${gradle_dir}" 50 | doins -r bin/ lib/ 51 | fperms 755 "${gradle_dir}/bin/gradle" 52 | dosym "${gradle_dir}/bin/gradle" "/usr/bin/${PN}-${SLOT}" 53 | } 54 | 55 | pkg_postinst() { 56 | eselect gradle update ifunset 57 | } 58 | 59 | pkg_postrm() { 60 | eselect gradle update ifunset 61 | } 62 | -------------------------------------------------------------------------------- /dev-java/gradle-bin/gradle-bin-8.3.ebuild: -------------------------------------------------------------------------------- 1 | # Copyright 1999-2023 Gentoo Authors 2 | # Distributed under the terms of the GNU General Public License v2 3 | 4 | EAPI=8 5 | 6 | IUSE="doc" 7 | JAVA_PKG_IUSE="source" 8 | 9 | inherit java-pkg-2 10 | 11 | MY_PN=${PN%%-bin} 12 | MY_P="${MY_PN}-${PV/_rc/-rc-}" 13 | 14 | DESCRIPTION="A project automation and build tool with a Groovy based DSL" 15 | SRC_URI="https://services.gradle.org/distributions/${MY_P}-all.zip -> ${P}.zip" 16 | HOMEPAGE="https://www.gradle.org/" 17 | 18 | LICENSE="Apache-2.0" 19 | SLOT="${PV}" 20 | KEYWORDS="amd64 ~x86" 21 | 22 | DEPEND="app-eselect/eselect-gradle" 23 | BDEPEND="app-arch/unzip" 24 | RDEPEND=" 25 | ${DEPEND} 26 | >=virtual/jre-1.8:* 27 | " 28 | 29 | S="${WORKDIR}/${MY_P}" 30 | 31 | src_compile() { 32 | : 33 | } 34 | 35 | src_install() { 36 | local gradle_dir="/usr/share/${PN}-${SLOT}" 37 | 38 | if use source; then 39 | java-pkg_dosrc src 40 | fi 41 | 42 | docinto html 43 | dodoc -r docs/release-notes.html 44 | if use doc; then 45 | dodoc -r docs/{dsl,userguide} 46 | java-pkg_dojavadoc docs/javadoc 47 | fi 48 | 49 | insinto "${gradle_dir}" 50 | doins -r bin/ lib/ 51 | fperms 755 "${gradle_dir}/bin/gradle" 52 | dosym "${gradle_dir}/bin/gradle" "/usr/bin/${PN}-${SLOT}" 53 | } 54 | 55 | pkg_postinst() { 56 | eselect gradle update ifunset 57 | } 58 | 59 | pkg_postrm() { 60 | eselect gradle update ifunset 61 | } 62 | -------------------------------------------------------------------------------- /dev-java/gradle-bin/metadata.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | flo@geekplace.eu 6 | Maintainer, CC him on bugs 7 | 8 | 9 | -------------------------------------------------------------------------------- /dev-java/gradle/Manifest: -------------------------------------------------------------------------------- 1 | DIST gradle-7.1.0.tar.gz 25092640 BLAKE2B f5514b78f3233231e9faa0e7ab6d20dd3b466ee45b9b25917594860939be47789d9a414e5c81ade190fb7d08a5d329c03c91d4bdca3ed35fbe8596aaa28bc170 SHA512 9d55f71af47153ebea685cfaf7ecfd98502654b500f9f1cd9c252ec65b1931c77f2b6d56b42513deae655ea46b08e306a6db4bd516dd5e8d46a47c51bb77186d 2 | -------------------------------------------------------------------------------- /dev-java/gradle/gradle-7.1.0.ebuild: -------------------------------------------------------------------------------- 1 | # Copyright 1999-2021 Gentoo Authors 2 | # Distributed under the terms of the GNU General Public License v2 3 | 4 | EAPI=7 5 | 6 | inherit gradle 7 | 8 | DESCRIPTION="A project automation and build tool with a Groovy based DSL" 9 | SRC_URI="https://github.com/${PN}/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" 10 | 11 | HOMEPAGE="https://www.gradle.org/" 12 | LICENSE="Apache-2.0" 13 | SLOT="${PV}" 14 | KEYWORDS="~amd64 ~x86" 15 | 16 | DEPEND=" 17 | app-eselect/eselect-gradle 18 | " 19 | RDEPEND=">=virtual/jdk-1.8:*" 20 | 21 | # Hopefully we can remove network-sandbox at one point in the future 22 | # from RESTRICT. But for now, it is necessary. 23 | RESTRICT="network-sandbox" 24 | 25 | src_compile() { 26 | if ! I_KNOW_THAT_DEV_JAVA_GRADLE_DOES_NOT_YET_WORK; then 27 | die "You don't know that dev-java/gradle does not yet work" 28 | fi 29 | 30 | local gradle_dir="${ED}/usr/share/${PN}-${SLOT}" 31 | 32 | egradle install "-Pgradle_installPath=${gradle_dir}" 33 | 34 | egradle :distributions-full:binDistributionZip 35 | egradle assemble 36 | } 37 | 38 | src_install() { 39 | local gradle_dir="${ED}/usr/share/${PN}-${SLOT}" 40 | 41 | egradle install "-Pgradle_installPath=${gradle_dir}" 42 | } 43 | 44 | pkg_postinst() { 45 | eselect gradle update ifunset 46 | } 47 | 48 | pkg_postrm() { 49 | eselect gradle update ifunset 50 | } 51 | -------------------------------------------------------------------------------- /dev-java/gradle/metadata.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | flo@geekplace.eu 6 | Maintainer, CC him on bugs 7 | 8 | 9 | gradle@mva.name 10 | Maintainer, CC him on bugs 11 | Vadim A. Misbakh-Soloviov 12 | 13 | 14 | -------------------------------------------------------------------------------- /dev-java/openjdk-bin/Manifest: -------------------------------------------------------------------------------- 1 | DIST OpenJDK-jdk_aarch64_linux_hotspot_2022-11-25-03-30.tar.gz 199774282 BLAKE2B e9930484d34dbc2d2fb3c61797d1e80911ea578646208f47de6b8e5a977f2c74a193865c7faf0ff24b4ea9425128e543a13845411962241ac686ab91e97157cb SHA512 a8828bc9e30d1aefc736dafc319b014061c691251fb8180873428e14cefe60d777dfcc1eefc67fa7843abc7a788656d8e3a098daa66a7e976bdc74c61ac10ae0 2 | DIST OpenJDK-jdk_aarch64_mac_hotspot_2022-11-25-03-30.tar.gz 186236213 BLAKE2B 1ff9a7d02c72c8cb59e1de9566ed49b4f8c26246992ad363c2921ee8e1e09122aa2adbc35a917f806da6e6a467254850056b954dd6fa3baa00ce73ae9ce15b00 SHA512 eefbaf86285ef1b338c8f95af9d14ed674e8796b94030c4a50546c7c6790e6f4bdf0376eec00e15bcd0089525f6192ae392b57def07b99ddfa69119a374f14e0 3 | DIST OpenJDK-jdk_arm_linux_hotspot_2022-11-25-03-30.tar.gz 201332936 BLAKE2B bf6295dd03c371392234059f3fc1244cc1a59b863776a6fad958259bbf4d9402f534c53c5b690064c038573ed0f3d71d2354dde3987c4ef1d7b7f92b604d7a2e SHA512 47b45b64142b86c6701664352a3e91417e472bb751162e790d0a034ff270c385b94015b7b81a2947545ae888d59716d6d226cddd50a3b26138a36c228945add4 4 | DIST OpenJDK-jdk_ppc64le_linux_hotspot_2022-11-25-03-30.tar.gz 200726099 BLAKE2B 62b4bf480d4c13eebee15ec59126174a6679e59367bade7f39bd99d6c948193e6beb1aaa70e6eff37e74aac80178185b2e2857ba51601013afbf9201fc0183e2 SHA512 4581457e28c7dafff008067db22fa4ec19e651adfbb71c024d577f6fd1d4a6705fe0ed7b0a2f5c368f4b156c7817606acead87a917badfb092d88daf541e1732 5 | DIST OpenJDK-jdk_x64_alpine-linux_hotspot_2022-11-25-03-30.tar.gz 200684244 BLAKE2B 856f4244ed50d614af33b60229401490a3ee3643304f8b784cc22ed6eadfb2f3f3305509f00a325f3e1844305ac56eeef4345233dd44b1307e7d9fa1665fb936 SHA512 23fba9c02882402d1df93dc278e0c4701cfcff60b0086f69daa3068f8218c2e665f861963822fe953ff4fc1720a5e157cd9341eac03b80e033190b0a69c91424 6 | DIST OpenJDK-jdk_x64_linux_hotspot_2022-11-25-03-30.tar.gz 201494529 BLAKE2B 54aa670ef143c0ee4b6cd35f19910269b7783401e01d4a00e6784f669e4cda2b81def6f10810911cb665e6352800916573926f6a1128bc925a8cb47575b453ef SHA512 e0c430f4c1fe52c7e33112bfa0e139d13eb577e91306970c295cb11b0667f9e1f2aeb729ca85719f0188ed89fb49db5fd3e6d08e632c85e0f2b25899f3295add 7 | DIST OpenJDK-jdk_x64_mac_hotspot_2022-11-25-03-30.tar.gz 197027544 BLAKE2B 411d0b6cc7d462179d04d67efd54aea11a4e9372f16e74c64cd184c704976b28d2ca1b4a1542a17a8b1b99833db9ba889103f88ff8a2ab8fbee84c12ddfbc243 SHA512 bca65c3ccaba33b632aff5d61e589bbd226bedfdb0a0b6e0308efd0a0e61df3b1236b8315191f1bdadc8664384913de39af9605e26db054955ac7088156fb4ee 8 | DIST OpenJDK18U-jdk_aarch64_linux_hotspot_18.0.1_10.tar.gz 191259769 BLAKE2B bf65463bd2d09c2546e272d3972f24ed1b92223125b474e40ab3166f7ee190b831d9a021a74b72279ce404517158b0cc144aec8eb3a20e164e8a86b73f20126e SHA512 c0127793551bb4f335c3970b53b515265f9e53cca02cd597ac854ceb88bc479bbb96b865ac31e194eda14c5a1b9f08a6d0f3922a3d763a54a1994478c2526afc 9 | DIST OpenJDK18U-jdk_arm_linux_hotspot_18.0.1_10.tar.gz 189528067 BLAKE2B 05485aaf4ae8071afe0a988f893fdc1611b4841003b5c01ea6ae8ed83905191e9d7a4848e4a0b3b3f9d69e6246e1df354f57ebbd6460a53834b3562dfa971fea SHA512 93c45e7f3549018dc10a83e19052504352a7e242b2c5e40a5a9bfc30813e5c21b23f6f06c4ae5e94b9ab0a6b9be7397dceb7ebd871e2e45f49e6023c76bf6ca0 10 | DIST OpenJDK18U-jdk_ppc64le_linux_hotspot_18.0.1_10.tar.gz 191894570 BLAKE2B 4d9c34bfc24bd8edd25546a66c2ab7fe7fec0a4e813ad8ca4908736d37e64e65f19ab8b5f5058084189390acd9cfb7eb52c6c477ce7f055b2ed1792dfb722db7 SHA512 c9c2ba2734c66546cbaaeea64063b196be87ee93141244d6910159287cddbc1d3a05e4436b0edf3d22be38f7169a1d8da003525d8ebe650a2ccabe1928a5199d 11 | DIST OpenJDK18U-jdk_x64_alpine-linux_hotspot_18.0.1_10.tar.gz 192338187 BLAKE2B 043cedf394fdc2abd28d0845de6603c13155fa0799dc08e38c246033e71bf718d96e33c8dfb0136f98bf494e935f176190a1bf8a42ea07e4aae6ace5fe02729d SHA512 7eb45639f8b8883b3f7fb0547a45df38fdeee12c6083b6f6237c557a388a511e655129c9d09997ea155c4e47333dfcffeb5a52fc1c7528b7eeae19a18c555f3e 12 | DIST OpenJDK18U-jdk_x64_linux_hotspot_18.0.1_10.tar.gz 192550912 BLAKE2B 0bc56715f9747b35a48e82176bf42db637286e91492350ab6dbb77b8cbd1a9f806b1eef1654036d0e538fbd3199d3484d57edcc8f89b6f7c03c1ae5de132e6f1 SHA512 695b2c1776362d3f32462b63e64d3c4ba4ed1b7557b4a8f821f4df518af5ddf96450bc46165815827e2d2f240f04a09dd66c6ede59f6d111ad84414c57b0a759 13 | DIST OpenJDK18U-jdk_x64_mac_hotspot_18.0.1_10.tar.gz 188268875 BLAKE2B 94954e3ae9e0ba2ba93d4a71c605935d239a364ffd07720bf91eafaed320ce912ebfd93ca3eb283f6e44fb39de2553019a8b6484222e1a8446ff4fcbd824c514 SHA512 f63f35dbe5d757b194a01286a3feb3b0aa8a0740ffb2d75ee200db675bd1c653d930c51aa7c2e35deeadc301fc59583d83cc83ceefba8786793747101422beac 14 | DIST OpenJDK19U-jdk_aarch64_linux_hotspot_19.0.2_7.tar.gz 198657357 BLAKE2B 0902f5408981045a59516d91a256559243a325138f5311259f40fdd568982c4a02a6fcda0f8e3555fea1be831e17f7939bc52ff6bf790a3cdc751cad425352ee SHA512 2198e2440c40c3517eab680dce34743c26f52629cb3cffc2f5a2b0a8813d637bb3e683a3ca4bc8e30f69579b7ec2bf0bf06f26f1e3e60e0764e464719013cdd5 15 | DIST OpenJDK19U-jdk_aarch64_mac_hotspot_19.0.2_7.tar.gz 185296974 BLAKE2B fc18867aac539c5c7245f265c600e594fc43e0b6defb7661a1ad6e328502a881769c158768face349e00dee21f07f0085fdbcaa2f3bb8703da4927c3bf659df6 SHA512 47039725bf06e0ce1febe39e5a61f948409dd7d8e5a06d0b0b6af99369cd24c9999e82f54e4ae2ce96ffe662f03158a2d2c151bad4a3c8c7fe4e10cc613634fe 16 | DIST OpenJDK19U-jdk_arm_linux_hotspot_19.0.2_7.tar.gz 196366803 BLAKE2B 1110e5e404afe679386bd04b64d6d0cbb456389908483d36b9131f856cf17337872335449f65091323df44edadf9bafdec53cd5594c3a777fcf72c253c84560b SHA512 be6ab48e2dedcb07d35275e17d0d69f28dd6aa269115274bec72092f9b622a457d5aa711ec17e070a9e9411436043c4a807d1070a2e20c639614e00ffb109139 17 | DIST OpenJDK19U-jdk_ppc64le_linux_hotspot_19.0.2_7.tar.gz 199260239 BLAKE2B 40b51219d5b5eb431660f84ec93f87690c2d2220c82596cdbeca62261504e4c430dbc38065b6dda07c5fc5ddb6d7daa20dde604d39a4c7f115bcbe9f1085f237 SHA512 5805b8b0b1a434eb63c11211df01bb11ec33485f96827274d0f37bb5a1a3d61f8b5275377cef34eba18de5a63a3b6cf9b24fbddc9a328584e51321c1efeb258c 18 | DIST OpenJDK19U-jdk_x64_alpine-linux_hotspot_19.0.2_7.tar.gz 199287128 BLAKE2B 7d6d9cc91c4354f74e54b88fadf8a9be347c0cc51d0573310448e017636e74e6571dc69263790b5c80c5ccf80ce1b7d35b0fc79d709a21b7b887fcfe93df2619 SHA512 2c37d080dd3a88eb8d33363ac8db8a3ebc731a649d3eb175257b28e01b673f7c274d59a77b7459eb2cc87678552d5d431b986780344a00f745d51391d0c3c76e 19 | DIST OpenJDK19U-jdk_x64_linux_hotspot_19.0.2_7.tar.gz 200079543 BLAKE2B 27cc090a99cf943f39c42af442365e120b72390b2286e61c5f93d9e059f84e0d6446d9a20f40cf5caeaba794e1b9e4b9ee96217955273bcc973dbbb37eae989e SHA512 bc04881cd3b999ede7dd4f3d580518b99990885cb57a165e807e32837b18cc7b4fd3a9320376222507f085b5f4fe88fd69d2b26dd4f8f34c890f000e6b316880 20 | DIST OpenJDK19U-jdk_x64_mac_hotspot_19.0.2_7.tar.gz 195407051 BLAKE2B f8485e60483ce5c53a058d1fd138a256613e00cea66cefd2e96f828e1aaa0de542d5c3d37e09c4d41bd7c2eb05cabce0b9b65a4009cdf2b5bca3b1feddfc8ad2 SHA512 e6f393faaaa0ccf9ff8e126b17f5e7e6ceaecab969d5ef9297cf7e7b2e1daf1c5bd4b69b1c32df7709e0b4cb8dded06daf07cf699e970caad2d267c34c427676 21 | DIST OpenJDK21U-jdk_aarch64_linux_hotspot_21_35.tar.gz 205925582 BLAKE2B 0854605835441f43a33b2a85357deadff67ae0bcd38ef8a39be8c3463965fbfaac04875727d51f0c0bc8a8edb3823576a5f7f3b5a7db0444c71e2f42ffd7697b SHA512 62dff6e23d1ef44690805096b8f5997533308feb6b4ac60ceec03380286f61d9778f73ccde6939a7bc961905373d6f377f9492d2c87e65acd7c0c111d847f0a6 22 | DIST OpenJDK21U-jdk_x64_alpine-linux_hotspot_21_35.tar.gz 206853468 BLAKE2B 7a0f69ec7ed5004749062325be2969fe2efe21f67139f44045fcd0e6845aeaffd1f3f737c9647b35bb192c88647b4db4fc633f0d4dbd0664f2425d5395330c3b SHA512 8b216ce474157fdd2000e0c50cb653db87b74f0d2cbb7a373dcaf714bbeab24f8002f2ad4e6158d709cbbd76f03d71730711c1cc4df5a901e8c1af77a807f9f2 23 | DIST OpenJDK21U-jdk_x64_linux_hotspot_21_35.tar.gz 207813280 BLAKE2B 7202868eabc01d0c102d9a144f6cc5d40e72ba6c1c5c47aa55f281569ede29b2c9d148354e31ea7f1d12f89f8594fd3311f3ac45934a9ab6b5f47badbec34aaf SHA512 d8f8d99e9f8727378effa387eac82e3209031357080811359571265c04f21122cc883729b8a110eaaf5aafb75f9e7321a1178d0cc6d629301013fad585a48c81 24 | -------------------------------------------------------------------------------- /dev-java/openjdk-bin/files/openjdk-bin-18.env.sh: -------------------------------------------------------------------------------- 1 | # Copyright 1999-2021 Gentoo Authors 2 | # Distributed under the terms of the GNU General Public License v2 3 | 4 | VERSION="Eclipse Temurin JDK ${PV}" 5 | JAVA_HOME="${EPREFIX}/opt/${P}" 6 | JDK_HOME="${EPREFIX}/opt/${P}" 7 | JAVAC="\${JAVA_HOME}/bin/javac" 8 | PATH="\${JAVA_HOME}/bin" 9 | ROOTPATH="\${JAVA_HOME}/bin" 10 | LDPATH="\${JAVA_HOME}/lib/:\${JAVA_HOME}/lib/server/" 11 | MANPATH="" 12 | PROVIDES_TYPE="JDK JRE" 13 | PROVIDES_VERSION="${SLOT}" 14 | BOOTCLASSPATH="" 15 | GENERATION="2" 16 | ENV_VARS="JAVA_HOME JDK_HOME JAVAC PATH ROOTPATH LDPATH MANPATH" 17 | -------------------------------------------------------------------------------- /dev-java/openjdk-bin/files/openjdk-bin.env.sh: -------------------------------------------------------------------------------- 1 | VERSION="Eclipse Temurin JDK ${PV}" 2 | JAVA_HOME="${EPREFIX}/opt/${P}" 3 | JDK_HOME="${EPREFIX}/opt/${P}" 4 | JAVAC="\${JAVA_HOME}/bin/javac" 5 | PATH="\${JAVA_HOME}/bin" 6 | ROOTPATH="\${JAVA_HOME}/bin" 7 | LDPATH="\${JAVA_HOME}/lib/:\${JAVA_HOME}/lib/server/" 8 | MANPATH="" 9 | PROVIDES_TYPE="JDK JRE" 10 | PROVIDES_VERSION="${SLOT}" 11 | BOOTCLASSPATH="" 12 | GENERATION="2" 13 | ENV_VARS="JAVA_HOME JDK_HOME JAVAC PATH ROOTPATH LDPATH MANPATH" 14 | -------------------------------------------------------------------------------- /dev-java/openjdk-bin/metadata.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | gyakovlev@gentoo.org 6 | Georgy Yakovlev 7 | 8 | 9 | java@gentoo.org 10 | Java 11 | 12 | 13 | Java™ is the world's leading programming language and platform. 14 | The code for Java is open source and available at OpenJDK™. 15 | AdoptOpenJDK provides prebuilt OpenJDK binaries from a fully open source set of build scripts and infrastructure. 16 | 17 | 18 | Don't install the X backend for AWT, needed by some GUIs (used to be X flag) 19 | Allow this JDK to be recognised by Gentoo (package manager, eselect, java-config, EXPERIMENTAL!) 20 | Install JVM sources 21 | 22 | 23 | -------------------------------------------------------------------------------- /dev-java/openjdk-bin/openjdk-bin-18.0.1_p10.ebuild: -------------------------------------------------------------------------------- 1 | # Copyright 1999-2022 Gentoo Authors 2 | # Distributed under the terms of the GNU General Public License v2 3 | 4 | EAPI=8 5 | 6 | inherit java-vm-2 toolchain-funcs 7 | 8 | abi_uri() { 9 | local baseuri="https://github.com/adoptium/temurin${SLOT}-binaries/releases/download/jdk-${MY_PV}/" 10 | local musl= 11 | local os=linux 12 | 13 | case ${2} in 14 | *-macos) os=mac ;; 15 | *-solaris) os=solaris ;; 16 | esac 17 | 18 | if [[ ${3} == musl ]]; then 19 | os=alpine-linux 20 | musl=true 21 | fi 22 | 23 | echo "${2-$1}? ( 24 | ${musl:+ elibc_musl? ( } 25 | ${baseuri}/OpenJDK${SLOT}U-jdk_${1}_${os}_hotspot_${MY_PV//+/_}.tar.gz 26 | ${musl:+ ) } )" 27 | } 28 | 29 | MY_PV=${PV/_p/+} 30 | SLOT=${MY_PV%%[.+]*} 31 | 32 | SRC_URI=" 33 | $(abi_uri aarch64 arm64) 34 | $(abi_uri arm) 35 | $(abi_uri x64 amd64) 36 | $(abi_uri x64 amd64 musl) 37 | $(abi_uri ppc64le ppc64) 38 | $(abi_uri x64 x64-macos) 39 | " 40 | 41 | DESCRIPTION="Prebuilt Java JDK binaries provided by Eclipse Temurin" 42 | HOMEPAGE="https://adoptium.net" 43 | LICENSE="GPL-2-with-classpath-exception" 44 | KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x64-macos" 45 | IUSE="alsa cups +gentoo-vm headless-awt selinux source" 46 | 47 | RDEPEND=" 48 | >=sys-apps/baselayout-java-0.1.0-r1 49 | kernel_linux? ( 50 | media-libs/fontconfig:1.0 51 | media-libs/freetype:2 52 | media-libs/harfbuzz 53 | elibc_glibc? ( >=sys-libs/glibc-2.2.5:* ) 54 | elibc_musl? ( sys-libs/musl ) 55 | sys-libs/zlib 56 | alsa? ( media-libs/alsa-lib ) 57 | cups? ( net-print/cups ) 58 | selinux? ( sec-policy/selinux-java ) 59 | !headless-awt? ( 60 | x11-libs/libX11 61 | x11-libs/libXext 62 | x11-libs/libXi 63 | x11-libs/libXrender 64 | x11-libs/libXtst 65 | ) 66 | )" 67 | 68 | RESTRICT="preserve-libs splitdebug" 69 | QA_PREBUILT="*" 70 | 71 | S="${WORKDIR}/jdk-${MY_PV}" 72 | 73 | pkg_pretend() { 74 | if [[ "$(tc-is-softfloat)" != "no" ]]; then 75 | die "These binaries require a hardfloat system." 76 | fi 77 | } 78 | 79 | src_unpack() { 80 | default 81 | if [[ ${A} == *_mac_* ]] ; then 82 | mv -v "${S}/Contents/Home/"* "${S}" || die 83 | rm -Rf "${S}/Contents" # drop macOS executable 84 | fi 85 | } 86 | 87 | src_install() { 88 | local dest="/opt/${P}" 89 | local ddest="${ED}/${dest#/}" 90 | 91 | # on macOS if they would exist they would be called .dylib, but most 92 | # importantly, there are no different providers, so everything 93 | # that's shipped works. 94 | if [[ ${A} != *_mac_* ]] ; then 95 | # Not sure why they bundle this as it's commonly available and they 96 | # only do so on x86_64. It's needed by libfontmanager.so. IcedTea 97 | # also has an explicit dependency while Oracle seemingly dlopens it. 98 | rm -vf lib/libfreetype.so || die 99 | 100 | # prefer system copy # https://bugs.gentoo.org/776676 101 | rm -vf lib/libharfbuzz.so || die 102 | 103 | # Oracle and IcedTea have libjsoundalsa.so depending on 104 | # libasound.so.2 but AdoptOpenJDK only has libjsound.so. Weird. 105 | if ! use alsa ; then 106 | rm -v lib/libjsound.* || die 107 | fi 108 | 109 | if use headless-awt ; then 110 | rm -v lib/lib*{[jx]awt,splashscreen}* || die 111 | fi 112 | fi 113 | 114 | if ! use source ; then 115 | rm -v lib/src.zip || die 116 | fi 117 | 118 | rm -v lib/security/cacerts || die 119 | dosym -r /etc/ssl/certs/java/cacerts "${dest}"/lib/security/cacerts 120 | 121 | dodir "${dest}" 122 | cp -pPR * "${ddest}" || die 123 | 124 | # provide stable symlink 125 | dosym "${P}" "/opt/${PN}-${SLOT}" 126 | 127 | use gentoo-vm && java-vm_install-env "${FILESDIR}"/${PN}-${SLOT}.env.sh 128 | java-vm_set-pax-markings "${ddest}" 129 | java-vm_revdep-mask 130 | java-vm_sandbox-predict /dev/random /proc/self/coredump_filter 131 | } 132 | 133 | pkg_postinst() { 134 | java-vm-2_pkg_postinst 135 | 136 | if use gentoo-vm ; then 137 | ewarn "WARNING! You have enabled the gentoo-vm USE flag, making this JDK" 138 | ewarn "recognised by the system. This will almost certainly break" 139 | ewarn "many java ebuilds as they are not ready for openjdk-${SLOT}" 140 | else 141 | ewarn "The experimental gentoo-vm USE flag has not been enabled so this JDK" 142 | ewarn "will not be recognised by the system. For example, simply calling" 143 | ewarn "\"java\" will launch a different JVM. This is necessary until Gentoo" 144 | ewarn "fully supports Java ${SLOT}. This JDK must therefore be invoked using its" 145 | ewarn "absolute location under ${EPREFIX}/opt/${P}." 146 | fi 147 | } 148 | -------------------------------------------------------------------------------- /dev-java/openjdk-bin/openjdk-bin-19.0.2_p7.ebuild: -------------------------------------------------------------------------------- 1 | # Copyright 1999-2023 Gentoo Authors 2 | # Distributed under the terms of the GNU General Public License v2 3 | 4 | EAPI=8 5 | 6 | inherit java-vm-2 toolchain-funcs 7 | 8 | abi_uri() { 9 | local baseuri="https://github.com/adoptium/temurin${SLOT}-binaries/releases/download/jdk-${MY_PV}/" 10 | local musl= 11 | local os=linux 12 | 13 | case ${2} in 14 | *-macos) os=mac ;; 15 | *-solaris) os=solaris ;; 16 | esac 17 | 18 | if [[ ${3} == musl ]]; then 19 | os=alpine-linux 20 | musl=true 21 | fi 22 | 23 | echo "${2-$1}? ( 24 | ${musl:+ elibc_musl? ( } 25 | ${baseuri}/OpenJDK${SLOT}U-jdk_${1}_${os}_hotspot_${MY_PV//+/_}.tar.gz 26 | ${musl:+ ) } )" 27 | } 28 | 29 | MY_PV=${PV/_p/+} 30 | SLOT=$(ver_cut 1) 31 | 32 | SRC_URI=" 33 | $(abi_uri aarch64 arm64) 34 | $(abi_uri aarch64 arm64-macos) 35 | $(abi_uri arm) 36 | $(abi_uri ppc64le ppc64) 37 | $(abi_uri x64 amd64) 38 | $(abi_uri x64 amd64 musl) 39 | $(abi_uri x64 x64-macos) 40 | " 41 | 42 | DESCRIPTION="Prebuilt Java JDK binaries provided by Eclipse Temurin" 43 | HOMEPAGE="https://adoptium.net" 44 | LICENSE="GPL-2-with-classpath-exception" 45 | KEYWORDS="amd64 ~arm arm64 ppc64 ~x64-macos" 46 | IUSE="alsa cups headless-awt selinux source" 47 | 48 | RDEPEND=" 49 | >=sys-apps/baselayout-java-0.1.0-r1 50 | kernel_linux? ( 51 | media-libs/fontconfig:1.0 52 | media-libs/freetype:2 53 | media-libs/harfbuzz 54 | elibc_glibc? ( >=sys-libs/glibc-2.2.5:* ) 55 | elibc_musl? ( sys-libs/musl ) 56 | sys-libs/zlib 57 | alsa? ( media-libs/alsa-lib ) 58 | cups? ( net-print/cups ) 59 | selinux? ( sec-policy/selinux-java ) 60 | !headless-awt? ( 61 | x11-libs/libX11 62 | x11-libs/libXext 63 | x11-libs/libXi 64 | x11-libs/libXrender 65 | x11-libs/libXtst 66 | ) 67 | )" 68 | 69 | RESTRICT="preserve-libs splitdebug" 70 | QA_PREBUILT="*" 71 | 72 | S="${WORKDIR}/jdk-${MY_PV}" 73 | 74 | pkg_pretend() { 75 | if [[ "$(tc-is-softfloat)" != "no" ]]; then 76 | die "These binaries require a hardfloat system." 77 | fi 78 | } 79 | 80 | src_unpack() { 81 | default 82 | if [[ ${A} == *_mac_* ]] ; then 83 | mv -v "${S}/Contents/Home/"* "${S}" || die 84 | rm -Rf "${S}/Contents" # drop macOS executable 85 | fi 86 | } 87 | 88 | src_install() { 89 | local dest="/opt/${P}" 90 | local ddest="${ED}/${dest#/}" 91 | 92 | # on macOS if they would exist they would be called .dylib, but most 93 | # importantly, there are no different providers, so everything 94 | # that's shipped works. 95 | if [[ ${A} != *_mac_* ]] ; then 96 | # Not sure why they bundle this as it's commonly available and they 97 | # only do so on x86_64. It's needed by libfontmanager.so. IcedTea 98 | # also has an explicit dependency while Oracle seemingly dlopens it. 99 | rm -vf lib/libfreetype.so || die 100 | 101 | # prefer system copy # https://bugs.gentoo.org/776676 102 | rm -vf lib/libharfbuzz.so || die 103 | 104 | # Oracle and IcedTea have libjsoundalsa.so depending on 105 | # libasound.so.2 but AdoptOpenJDK only has libjsound.so. Weird. 106 | if ! use alsa ; then 107 | rm -v lib/libjsound.* || die 108 | fi 109 | 110 | if use headless-awt ; then 111 | rm -v lib/lib*{[jx]awt,splashscreen}* || die 112 | fi 113 | fi 114 | 115 | if ! use source ; then 116 | rm -v lib/src.zip || die 117 | fi 118 | 119 | rm -v lib/security/cacerts || die 120 | dosym -r /etc/ssl/certs/java/cacerts "${dest}"/lib/security/cacerts 121 | 122 | dodir "${dest}" 123 | cp -pPR * "${ddest}" || die 124 | 125 | # provide stable symlink 126 | dosym "${P}" "/opt/${PN}-${SLOT}" 127 | 128 | java-vm_install-env "${FILESDIR}"/${PN}.env.sh 129 | java-vm_set-pax-markings "${ddest}" 130 | java-vm_revdep-mask 131 | java-vm_sandbox-predict /dev/random /proc/self/coredump_filter 132 | } 133 | 134 | pkg_postinst() { 135 | java-vm-2_pkg_postinst 136 | } 137 | -------------------------------------------------------------------------------- /dev-java/openjdk-bin/openjdk-bin-20_beta20221125.ebuild: -------------------------------------------------------------------------------- 1 | # Copyright 1999-2022 Gentoo Authors 2 | # Distributed under the terms of the GNU General Public License v2 3 | 4 | EAPI=8 5 | 6 | inherit java-vm-2 toolchain-funcs 7 | 8 | abi_uri() { 9 | local baseuri="https://github.com/adoptium/temurin${SLOT}-binaries/releases/download/jdk-${MY_PV}/" 10 | local musl= 11 | local os=linux 12 | 13 | case ${2} in 14 | *-macos) os=mac ;; 15 | *-solaris) os=solaris ;; 16 | esac 17 | 18 | if [[ ${3} == musl ]]; then 19 | os=alpine-linux 20 | musl=true 21 | fi 22 | 23 | echo "${2-$1}? ( 24 | ${musl:+ elibc_musl? ( } 25 | ${baseuri}/OpenJDK-jdk_${1}_${os}_hotspot_${MY_PV_2//+/_}.tar.gz 26 | ${musl:+ ) } )" 27 | } 28 | 29 | MY_PV="2022-11-25-14-40-beta" 30 | MY_PV_2="2022-11-25-03-30" 31 | SLOT=$(ver_cut 1) 32 | 33 | SRC_URI=" 34 | $(abi_uri aarch64 arm64) 35 | $(abi_uri arm) 36 | $(abi_uri x64 amd64) 37 | $(abi_uri x64 amd64 musl) 38 | $(abi_uri aarch64 arm64-macos) 39 | $(abi_uri ppc64le ppc64) 40 | $(abi_uri x64 x64-macos) 41 | " 42 | 43 | DESCRIPTION="Prebuilt Java JDK binaries provided by Eclipse Temurin" 44 | HOMEPAGE="https://adoptium.net" 45 | LICENSE="GPL-2-with-classpath-exception" 46 | KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x64-macos" 47 | IUSE="alsa cups headless-awt selinux source" 48 | 49 | RDEPEND=" 50 | >=sys-apps/baselayout-java-0.1.0-r1 51 | kernel_linux? ( 52 | media-libs/fontconfig:1.0 53 | media-libs/freetype:2 54 | media-libs/harfbuzz 55 | elibc_glibc? ( >=sys-libs/glibc-2.2.5:* ) 56 | elibc_musl? ( sys-libs/musl ) 57 | sys-libs/zlib 58 | alsa? ( media-libs/alsa-lib ) 59 | cups? ( net-print/cups ) 60 | selinux? ( sec-policy/selinux-java ) 61 | !headless-awt? ( 62 | x11-libs/libX11 63 | x11-libs/libXext 64 | x11-libs/libXi 65 | x11-libs/libXrender 66 | x11-libs/libXtst 67 | ) 68 | )" 69 | 70 | RESTRICT="preserve-libs splitdebug" 71 | QA_PREBUILT="*" 72 | 73 | S="${WORKDIR}/jdk-20+25" 74 | 75 | pkg_pretend() { 76 | if [[ "$(tc-is-softfloat)" != "no" ]]; then 77 | die "These binaries require a hardfloat system." 78 | fi 79 | } 80 | 81 | src_unpack() { 82 | default 83 | if [[ ${A} == *_mac_* ]] ; then 84 | mv -v "${S}/Contents/Home/"* "${S}" || die 85 | rm -Rf "${S}/Contents" # drop macOS executable 86 | fi 87 | } 88 | 89 | src_install() { 90 | local dest="/opt/${P}" 91 | local ddest="${ED}/${dest#/}" 92 | 93 | # on macOS if they would exist they would be called .dylib, but most 94 | # importantly, there are no different providers, so everything 95 | # that's shipped works. 96 | if [[ ${A} != *_mac_* ]] ; then 97 | # Not sure why they bundle this as it's commonly available and they 98 | # only do so on x86_64. It's needed by libfontmanager.so. IcedTea 99 | # also has an explicit dependency while Oracle seemingly dlopens it. 100 | rm -vf lib/libfreetype.so || die 101 | 102 | # prefer system copy # https://bugs.gentoo.org/776676 103 | rm -vf lib/libharfbuzz.so || die 104 | 105 | # Oracle and IcedTea have libjsoundalsa.so depending on 106 | # libasound.so.2 but AdoptOpenJDK only has libjsound.so. Weird. 107 | if ! use alsa ; then 108 | rm -v lib/libjsound.* || die 109 | fi 110 | 111 | if use headless-awt ; then 112 | rm -v lib/lib*{[jx]awt,splashscreen}* || die 113 | fi 114 | fi 115 | 116 | if ! use source ; then 117 | rm -v lib/src.zip || die 118 | fi 119 | 120 | rm -v lib/security/cacerts || die 121 | dosym -r /etc/ssl/certs/java/cacerts "${dest}"/lib/security/cacerts 122 | 123 | dodir "${dest}" 124 | cp -pPR * "${ddest}" || die 125 | 126 | # provide stable symlink 127 | dosym "${P}" "/opt/${PN}-${SLOT}" 128 | 129 | java-vm_install-env "${FILESDIR}"/${PN}.env.sh 130 | java-vm_set-pax-markings "${ddest}" 131 | java-vm_revdep-mask 132 | java-vm_sandbox-predict /dev/random /proc/self/coredump_filter 133 | } 134 | 135 | pkg_postinst() { 136 | java-vm-2_pkg_postinst 137 | } 138 | -------------------------------------------------------------------------------- /dev-java/openjdk-bin/openjdk-bin-21_p35.ebuild: -------------------------------------------------------------------------------- 1 | # Copyright 1999-2023 Gentoo Authors 2 | # Distributed under the terms of the GNU General Public License v2 3 | 4 | EAPI=8 5 | 6 | inherit java-vm-2 toolchain-funcs 7 | 8 | abi_uri() { 9 | local baseuri="https://github.com/adoptium/temurin${SLOT}-binaries/releases/download/jdk-${MY_PV}/" 10 | local musl= 11 | local os=linux 12 | 13 | case ${2} in 14 | *-macos) os=mac ;; 15 | *-solaris) os=solaris ;; 16 | esac 17 | 18 | if [[ ${3} == musl ]]; then 19 | os=alpine-linux 20 | musl=true 21 | fi 22 | 23 | echo "${2-$1}? ( 24 | ${musl:+ elibc_musl? ( } 25 | ${baseuri}/OpenJDK${SLOT}U-jdk_${1}_${os}_hotspot_${MY_PV//+/_}.tar.gz 26 | ${musl:+ ) } )" 27 | } 28 | 29 | MY_PV=${PV/_p/+} 30 | SLOT=$(ver_cut 1) 31 | 32 | SRC_URI=" 33 | $(abi_uri aarch64 arm64) 34 | $(abi_uri x64 amd64) 35 | $(abi_uri x64 amd64 musl) 36 | " 37 | 38 | DESCRIPTION="Prebuilt Java JDK binaries provided by Eclipse Temurin" 39 | HOMEPAGE="https://adoptium.net" 40 | LICENSE="GPL-2-with-classpath-exception" 41 | KEYWORDS="~amd64 ~arm64" 42 | IUSE="alsa cups headless-awt selinux source" 43 | 44 | RDEPEND=" 45 | >=sys-apps/baselayout-java-0.1.0-r1 46 | kernel_linux? ( 47 | media-libs/fontconfig:1.0 48 | media-libs/freetype:2 49 | media-libs/harfbuzz 50 | elibc_glibc? ( >=sys-libs/glibc-2.2.5:* ) 51 | elibc_musl? ( sys-libs/musl ) 52 | sys-libs/zlib 53 | alsa? ( media-libs/alsa-lib ) 54 | cups? ( net-print/cups ) 55 | selinux? ( sec-policy/selinux-java ) 56 | !headless-awt? ( 57 | x11-libs/libX11 58 | x11-libs/libXext 59 | x11-libs/libXi 60 | x11-libs/libXrender 61 | x11-libs/libXtst 62 | ) 63 | )" 64 | 65 | RESTRICT="preserve-libs splitdebug" 66 | QA_PREBUILT="*" 67 | 68 | S="${WORKDIR}/jdk-${MY_PV}" 69 | 70 | pkg_pretend() { 71 | if [[ "$(tc-is-softfloat)" != "no" ]]; then 72 | die "These binaries require a hardfloat system." 73 | fi 74 | } 75 | 76 | src_unpack() { 77 | default 78 | if [[ ${A} == *_mac_* ]] ; then 79 | mv -v "${S}/Contents/Home/"* "${S}" || die 80 | rm -Rf "${S}/Contents" # drop macOS executable 81 | fi 82 | } 83 | 84 | src_install() { 85 | local dest="/opt/${P}" 86 | local ddest="${ED}/${dest#/}" 87 | 88 | # on macOS if they would exist they would be called .dylib, but most 89 | # importantly, there are no different providers, so everything 90 | # that's shipped works. 91 | if [[ ${A} != *_mac_* ]] ; then 92 | # Not sure why they bundle this as it's commonly available and they 93 | # only do so on x86_64. It's needed by libfontmanager.so. IcedTea 94 | # also has an explicit dependency while Oracle seemingly dlopens it. 95 | rm -vf lib/libfreetype.so || die 96 | 97 | # prefer system copy # https://bugs.gentoo.org/776676 98 | rm -vf lib/libharfbuzz.so || die 99 | 100 | # Oracle and IcedTea have libjsoundalsa.so depending on 101 | # libasound.so.2 but AdoptOpenJDK only has libjsound.so. Weird. 102 | if ! use alsa ; then 103 | rm -v lib/libjsound.* || die 104 | fi 105 | 106 | if use headless-awt ; then 107 | rm -v lib/lib*{[jx]awt,splashscreen}* || die 108 | fi 109 | fi 110 | 111 | if ! use source ; then 112 | rm -v lib/src.zip || die 113 | fi 114 | 115 | rm -v lib/security/cacerts || die 116 | dosym -r /etc/ssl/certs/java/cacerts "${dest}"/lib/security/cacerts 117 | 118 | dodir "${dest}" 119 | cp -pPR * "${ddest}" || die 120 | 121 | # provide stable symlink 122 | dosym "${P}" "/opt/${PN}-${SLOT}" 123 | 124 | java-vm_install-env "${FILESDIR}"/${PN}.env.sh 125 | java-vm_set-pax-markings "${ddest}" 126 | java-vm_revdep-mask 127 | java-vm_sandbox-predict /dev/random /proc/self/coredump_filter 128 | } 129 | 130 | pkg_postinst() { 131 | java-vm-2_pkg_postinst 132 | } 133 | -------------------------------------------------------------------------------- /dev-java/openjdk-zero/Manifest: -------------------------------------------------------------------------------- 1 | DIST openjdk-25_p8.tar.gz 122660586 BLAKE2B 826b2b54510e3021fcf0ef675d97b55bb7b54f375c94b5a6833c74f4123839c5b3cf367884af697949f680b60828c527d7a1dd1e3986e8973b9ff73c0476dba7 SHA512 e78eac4f8474f751076590110e4cd9f30351d0c50add0a4d9dbde439400d810e9dadc0b3e808be39ab3107f9669d9a7b7c34f6d029dbf34fdffb157d5f1d8874 2 | DIST openjdk-bootstrap-21.0.0_p35-ppc64.tar.xz 125375264 BLAKE2B 28802995f393dc76362dae766f8b598fd56085051418075d4c426293e6431b441ea38a2d2e4676fc89173d10324e3aafac52c97a5d9459bb0199168a07807e16 SHA512 cbd3992450c44764373c25313f6ce32f0c8a47abec557e4a10f7f8517435bf450ba5ac9fa9c8cdfb41f1536b55829d733426dc12dc2b5a2eebf5a94e9094752a 3 | -------------------------------------------------------------------------------- /dev-java/openjdk-zero/files/openjdk.env.sh: -------------------------------------------------------------------------------- 1 | VERSION="OpenJDK ${PV}" 2 | JAVA_HOME="${EPREFIX}/usr/$(get_libdir)/${PN}-${SLOT}" 3 | JDK_HOME="${EPREFIX}/usr/$(get_libdir)/${PN}-${SLOT}" 4 | JAVAC="\${JAVA_HOME}/bin/javac" 5 | PATH="\${JAVA_HOME}/bin" 6 | ROOTPATH="\${JAVA_HOME}/bin" 7 | LDPATH="\${JAVA_HOME}/lib/:\${JAVA_HOME}/lib/server/" 8 | MANPATH="" 9 | PROVIDES_TYPE="JDK JRE" 10 | PROVIDES_VERSION="${SLOT}" 11 | BOOTCLASSPATH="" 12 | GENERATION="2" 13 | ENV_VARS="JAVA_HOME JDK_HOME JAVAC PATH ROOTPATH LDPATH MANPATH" 14 | -------------------------------------------------------------------------------- /dev-java/openjdk-zero/metadata.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | java@gentoo.org 6 | Java 7 | 8 | 9 | Java™ is the world's leading programming language and platform. 10 | The code for Java is open source and available at OpenJDK™. 11 | 12 | 13 | Java™ 8 is Java™ 1.8, where 8 is the version number, and 1.8 is the version string 14 | Java™ version 11 15 | Java™ version 17 16 | Java™ version 25 17 | 18 | 19 | Don't install the X backend for AWT, needed by some GUIs 20 | Provide JavaFX support via dev-java/openjfx 21 | Import OpenJFX modules at build time, via dev-java/openjfx 22 | Build OpenJDK twice, the second time using the result of the first 23 | Install JVM sources 24 | Bootstrap using installed openjdk 25 | Enable SystemTap/DTrace tracing 26 | 27 | 28 | openjdk/jdk8u 29 | openjdk/jdk11u 30 | openjdk/jdk17u 31 | openjdk/jdk21u 32 | 33 | 34 | -------------------------------------------------------------------------------- /dev-java/openjdk-zero/openjdk-zero-25_p8.ebuild: -------------------------------------------------------------------------------- 1 | # Copyright 1999-2025 Gentoo Authors 2 | # Distributed under the terms of the GNU General Public License v2 3 | 4 | EAPI=8 5 | 6 | inherit check-reqs flag-o-matic java-pkg-2 java-vm-2 multiprocessing toolchain-funcs 7 | 8 | # variable name format: _XPAK 9 | PPC64_XPAK="21.0.0_p35" # big-endian bootstrap tarball 10 | 11 | MY_PN=${PN%-zero} 12 | 13 | # Usage: bootstrap_uri [extracond] 14 | # Example: $(bootstrap_uri ppc64 17.0.1_p12 big-endian) 15 | # Output: ppc64? ( big-endian? ( https://...17.0.1_p12-ppc64.tar.xz ) ) 16 | bootstrap_uri() { 17 | local baseuri="https://dev.gentoo.org/~arthurzam/distfiles/dev-java/${MY_PN}/${MY_PN}-bootstrap" 18 | local suff="tar.xz" 19 | local kw="${1:?${FUNCNAME[0]}: keyword not specified}" 20 | local ver="${2:?${FUNCNAME[0]}: version not specified}" 21 | local cond="${3-}" 22 | [[ ${cond} == elibc_musl* ]] && local musl=yes 23 | 24 | # here be dragons 25 | echo "${kw}? ( ${cond:+${cond}? (} ${baseuri}-${ver}-${kw}${musl:+-musl}.${suff} ${cond:+) })" 26 | } 27 | 28 | # don't change versioning scheme 29 | # to find correct _p number, look at 30 | # https://github.com/openjdk/jdk${SLOT}u/tags 31 | # you will see, for example, jdk-17.0.4.1-ga and jdk-17.0.4.1+1, both point 32 | # to exact same commit sha. we should always use the full version. 33 | # -ga tag is just for humans to easily identify General Availability release tag. 34 | # MY_PV="${PV%_p*}-ga" # '-ga' isn't available 35 | MY_PV="${PV/_p/+}" 36 | 37 | DESCRIPTION="Open source implementation of the Java programming language" 38 | HOMEPAGE="https://openjdk.org" 39 | SRC_URI=" 40 | https://github.com/${MY_PN}/jdk/archive/jdk-${MY_PV}.tar.gz 41 | 42 | -> ${MY_PN}-${PV}.tar.gz 43 | !system-bootstrap? ( 44 | $(bootstrap_uri ppc64 ${PPC64_XPAK} big-endian) 45 | ) 46 | " 47 | # S="${WORKDIR}/jdk${SLOT}u-jdk-${MY_PV//+/-}" 48 | S="${WORKDIR}/jdk-jdk-${MY_PV//+/-}" 49 | 50 | LICENSE="GPL-2-with-classpath-exception" 51 | SLOT="${MY_PV%%[.+]*}" 52 | # KEYWORDS="" # LTS but not yet released 53 | 54 | # lto temporarily disabled due to https://bugs.gentoo.org/916735 55 | IUSE="alsa big-endian cups debug doc examples headless-awt javafx +jbootstrap selinux source +system-bootstrap systemtap" 56 | 57 | REQUIRED_USE=" 58 | javafx? ( alsa !headless-awt ) 59 | !system-bootstrap? ( jbootstrap ) 60 | !system-bootstrap? ( ppc64 ) 61 | " 62 | 63 | COMMON_DEPEND=" 64 | dev-libs/libffi:= 65 | media-libs/freetype:2= 66 | media-libs/giflib:0/7 67 | media-libs/harfbuzz:= 68 | media-libs/libpng:0= 69 | media-libs/lcms:2= 70 | sys-libs/zlib 71 | media-libs/libjpeg-turbo:0= 72 | systemtap? ( dev-debug/systemtap ) 73 | " 74 | 75 | # Many libs are required to build, but not to run, make is possible to remove 76 | # by listing conditionally in RDEPEND unconditionally in DEPEND 77 | RDEPEND=" 78 | ${COMMON_DEPEND} 79 | >=sys-apps/baselayout-java-0.1.0-r1 80 | !headless-awt? ( 81 | x11-libs/libX11 82 | x11-libs/libXext 83 | x11-libs/libXi 84 | x11-libs/libXrandr 85 | x11-libs/libXrender 86 | x11-libs/libXt 87 | x11-libs/libXtst 88 | ) 89 | alsa? ( media-libs/alsa-lib ) 90 | cups? ( net-print/cups ) 91 | selinux? ( sec-policy/selinux-java ) 92 | " 93 | 94 | DEPEND=" 95 | ${COMMON_DEPEND} 96 | app-arch/zip 97 | media-libs/alsa-lib 98 | net-print/cups 99 | x11-base/xorg-proto 100 | x11-libs/libX11 101 | x11-libs/libXext 102 | x11-libs/libXi 103 | x11-libs/libXrandr 104 | x11-libs/libXrender 105 | x11-libs/libXt 106 | x11-libs/libXtst 107 | javafx? ( dev-java/openjfx:${SLOT}= ) 108 | system-bootstrap? ( 109 | || ( 110 | dev-java/openjdk-bin:${SLOT} 111 | dev-java/openjdk:${SLOT} 112 | ) 113 | ) 114 | " 115 | 116 | # The space required to build varies wildly depending on USE flags, 117 | # ranging from 2GB to 16GB. This function is certainly not exact but 118 | # should be close enough to be useful. 119 | openjdk_check_requirements() { 120 | local M 121 | M=2048 122 | M=$(( $(usex jbootstrap 2 1) * $M )) 123 | M=$(( $(usex debug 3 1) * $M )) 124 | M=$(( $(usex doc 320 0) + $(usex source 128 0) + 192 + $M )) 125 | 126 | CHECKREQS_DISK_BUILD=${M}M check-reqs_pkg_${EBUILD_PHASE} 127 | } 128 | 129 | pkg_pretend() { 130 | openjdk_check_requirements 131 | if [[ ${MERGE_TYPE} != binary ]]; then 132 | has ccache ${FEATURES} && die "FEATURES=ccache doesn't work with ${MY_PN}, bug #677876" 133 | fi 134 | } 135 | 136 | pkg_setup() { 137 | openjdk_check_requirements 138 | java-vm-2_pkg_setup 139 | 140 | [[ ${MERGE_TYPE} == "binary" ]] && return 141 | 142 | JAVA_PKG_WANT_BUILD_VM="openjdk-${SLOT} openjdk-bin-${SLOT}" 143 | JAVA_PKG_WANT_SOURCE="${SLOT}" 144 | JAVA_PKG_WANT_TARGET="${SLOT}" 145 | 146 | # The nastiness below is necessary while the gentoo-vm USE flag is 147 | # masked. First we call java-pkg-2_pkg_setup if it looks like the 148 | # flag was unmasked against one of the possible build VMs. If not, 149 | # we try finding one of them in their expected locations. This would 150 | # have been slightly less messy if openjdk-bin had been installed to 151 | # /opt/${MY_PN}-${SLOT} or if there was a mechanism to install a VM env 152 | # file but disable it so that it would not normally be selectable. 153 | 154 | local vm 155 | for vm in ${JAVA_PKG_WANT_BUILD_VM}; do 156 | if [[ -d ${BROOT}/usr/lib/jvm/${vm} ]]; then 157 | java-pkg-2_pkg_setup 158 | return 159 | fi 160 | done 161 | } 162 | 163 | src_prepare() { 164 | default 165 | chmod +x configure || die 166 | } 167 | 168 | src_configure() { 169 | if has_version dev-java/openjdk:${SLOT}; then 170 | export JDK_HOME=${BROOT}/usr/$(get_libdir)/openjdk-${SLOT} 171 | elif use !system-bootstrap ; then 172 | local xpakvar="${ARCH^^}_XPAK" 173 | export JDK_HOME="${WORKDIR}/openjdk-bootstrap-${!xpakvar}" 174 | else 175 | JDK_HOME=$(best_version -b dev-java/openjdk-bin:${SLOT}) 176 | [[ -n ${JDK_HOME} ]] || die "Build VM not found!" 177 | JDK_HOME=${JDK_HOME#*/} 178 | JDK_HOME=${BROOT}/opt/${JDK_HOME%-r*} 179 | export JDK_HOME 180 | fi 181 | 182 | # bug 906987; append-cppflags doesnt work 183 | use elibc_musl && append-flags -D_LARGEFILE64_SOURCE 184 | 185 | # Strip some flags users may set, but should not. #818502 186 | filter-flags -fexceptions 187 | 188 | # Strip lto related flags, we rely on USE=lto and --with-jvm-features=link-time-opt 189 | # https://bugs.gentoo.org/833097 190 | # https://bugs.gentoo.org/833098 191 | filter-lto 192 | filter-flags -fdevirtualize-at-ltrans 193 | 194 | # Enabling full docs appears to break doc building. If not 195 | # explicitly disabled, the flag will get auto-enabled if pandoc and 196 | # graphviz are detected. pandoc has loads of dependencies anyway. 197 | 198 | local myconf=( 199 | --disable-ccache 200 | --disable-precompiled-headers 201 | --disable-warnings-as-errors 202 | --enable-full-docs=no 203 | --with-boot-jdk="${JDK_HOME}" 204 | --with-extra-cflags="${CFLAGS}" 205 | --with-extra-cxxflags="${CXXFLAGS}" 206 | --with-extra-ldflags="${LDFLAGS}" 207 | --with-freetype="${XPAK_BOOTSTRAP:-system}" 208 | --with-giflib="${XPAK_BOOTSTRAP:-system}" 209 | --with-harfbuzz="${XPAK_BOOTSTRAP:-system}" 210 | --with-lcms="${XPAK_BOOTSTRAP:-system}" 211 | --with-libjpeg="${XPAK_BOOTSTRAP:-system}" 212 | --with-libpng="${XPAK_BOOTSTRAP:-system}" 213 | --with-stdc++lib=dynamic 214 | --with-native-debug-symbols=$(usex debug internal none) 215 | --with-vendor-name="Gentoo" 216 | --with-vendor-url="https://gentoo.org" 217 | --with-vendor-bug-url="https://bugs.gentoo.org" 218 | --with-vendor-vm-bug-url="https://bugs.openjdk.java.net" 219 | --with-vendor-version-string="${PVR}" 220 | --with-version-pre="" 221 | --with-version-string="${PV%_p*}" 222 | --with-version-build="${PV#*_p}" 223 | --with-zlib="${XPAK_BOOTSTRAP:-system}" 224 | --enable-jvm-feature-dtrace=$(usex systemtap yes no) 225 | --enable-headless-only=$(usex headless-awt yes no) 226 | $(tc-is-clang && echo "--with-toolchain-type=clang") 227 | ) 228 | 229 | # Zero VM specific (https://openjdk.org/projects/zero/) 230 | # zero jvm requires buildin with libffi 231 | zero+=( 232 | --with-jvm-variants=zero 233 | --with-libffi="$($(tc-getPKG_CONFIG) --variable=prefix libffi)" 234 | --with-libffi-include="$($(tc-getPKG_CONFIG) --variable=includedir libffi)" 235 | --with-libffi-lib="$($(tc-getPKG_CONFIG) --variable=libdir libffi)" 236 | ) 237 | 238 | use riscv && myconf+=( --with-boot-jdk-jvmargs="-Djdk.lang.Process.launchMechanism=vfork" ) 239 | 240 | # Werror=odr 241 | # https://bugs.gentoo.org/916735 242 | # 243 | # Disable it for now. 244 | #use lto && myconf+=( --with-jvm-features=link-time-opt ) 245 | 246 | if use javafx; then 247 | local zip="${EPREFIX}/usr/$(get_libdir)/openjfx-${SLOT}/javafx-exports.zip" 248 | if [[ -r ${zip} ]]; then 249 | myconf+=( --with-import-modules="${zip}" ) 250 | else 251 | die "${zip} not found or not readable" 252 | fi 253 | fi 254 | 255 | # Workaround for bug #938302 256 | if use systemtap && has_version "dev-debug/systemtap[-dtrace-symlink(+)]" ; then 257 | myconf+=( DTRACE="${BROOT}"/usr/bin/stap-dtrace ) 258 | fi 259 | 260 | if use !system-bootstrap ; then 261 | addpredict /dev/random 262 | addpredict /proc/self/coredump_filter 263 | fi 264 | 265 | ( 266 | unset _JAVA_OPTIONS JAVA JAVA_TOOL_OPTIONS JAVAC XARGS 267 | CFLAGS= CXXFLAGS= LDFLAGS= \ 268 | CONFIG_SITE=/dev/null \ 269 | econf "${myconf[@]}" 270 | ) 271 | } 272 | 273 | src_compile() { 274 | # Too brittle - gets confused by e.g. -Oline 275 | export MAKEOPTS="-j$(makeopts_jobs) -l$(makeopts_loadavg)" 276 | unset GNUMAKEFLAGS MAKEFLAGS 277 | 278 | local myemakeargs=( 279 | JOBS=$(makeopts_jobs) 280 | LOG=debug 281 | CFLAGS_WARNINGS_ARE_ERRORS= # No -Werror 282 | NICE= # Use PORTAGE_NICENESS, don't adjust further down 283 | $(usex doc docs '') 284 | $(usex jbootstrap bootcycle-images product-images) 285 | ) 286 | emake "${myemakeargs[@]}" -j1 287 | } 288 | 289 | src_install() { 290 | local dest="/usr/$(get_libdir)/${PN}-${SLOT}" 291 | local ddest="${ED}/${dest#/}" 292 | 293 | cd "${S}"/build/*-release/images/jdk || die 294 | 295 | # Create files used as storage for system preferences. 296 | mkdir .systemPrefs || die 297 | touch .systemPrefs/.system.lock || die 298 | touch .systemPrefs/.systemRootModFile || die 299 | 300 | # Oracle and IcedTea have libjsoundalsa.so depending on 301 | # libasound.so.2 but OpenJDK only has libjsound.so. Weird. 302 | if ! use alsa ; then 303 | rm -v lib/libjsound.* || die 304 | fi 305 | 306 | if ! use examples ; then 307 | rm -vr demo/ || die 308 | fi 309 | 310 | if ! use source ; then 311 | rm -v lib/src.zip || die 312 | fi 313 | 314 | rm -v lib/security/cacerts || die 315 | 316 | dodir "${dest}" 317 | cp -pPR * "${ddest}" || die 318 | 319 | dosym -r /etc/ssl/certs/java/cacerts "${dest}"/lib/security/cacerts 320 | 321 | # must be done before running itself 322 | java-vm_set-pax-markings "${ddest}" 323 | 324 | einfo "Creating the Class Data Sharing archives and disabling usage tracking" 325 | "${ddest}/bin/java" -server -Xshare:dump -Djdk.disableLastUsageTracking || die 326 | 327 | java-vm_install-env "${FILESDIR}"/${MY_PN}.env.sh 328 | java-vm_revdep-mask 329 | java-vm_sandbox-predict /dev/random /proc/self/coredump_filter 330 | 331 | if use doc ; then 332 | docinto html 333 | dodoc -r "${S}"/build/*-release/images/docs/* 334 | dosym ../../../usr/share/doc/"${PF}" /usr/share/doc/"${PN}-${SLOT}" 335 | fi 336 | } 337 | 338 | pkg_postinst() { 339 | java-vm-2_pkg_postinst 340 | } 341 | -------------------------------------------------------------------------------- /dev-java/openjfx/Manifest: -------------------------------------------------------------------------------- 1 | DIST ST4-4.0.8.jar 239543 BLAKE2B 72d257c6d0f1b3bde0afce805128dd38d8520b2073377bbb995fed3b4e18a3ea69d508d6d7554755ec68bf50940082b896ed89998a5178272d24376404b389c5 SHA512 9877289297cd5b15ad464a19467699387f57c510fe8a476e07e9d2334bd11933f9bdb9c6caa4972d4d4c84b56740c6d885cd39300dd7ce35b7c5bde536238086 2 | DIST antlr4-4.7.2-complete.jar 2079769 BLAKE2B 9407e5096b5943702a1375f568957f35486a80f122bc59c5ec8e899f59214c43ee4ece551d9078de14b7707d85f9306ae99953981c755a1e1205d83412010738 SHA512 e788d28796c8925a158f0a09048590bdcf6730d46dcb8a12b362cbcc80a7ceb76374b2675987c953faecd3cf4a847b1571485a71081a84684170d25d05176a11 3 | DIST gradle-4.10.3-bin.zip 78422006 BLAKE2B f565e591751acb5b05c261b3d8dbc8e07f76b48c73516f6cb1b2846ebf0bbf38000b9a61790e9b3055bddd9f9846d61979d187f4a30c317a1de98546891d9d2d SHA512 fd3f4cfbd5262cc8514b7fb3e303ef46b9ca4b22901f1fe848ec4679f8d6bc283bde12ec584437624f0acf5486e5663966ad0736bf8ab341ac3e2667f514ceec 4 | DIST gunit-3.5.2.jar 287425 BLAKE2B 86e759c5bb164758b689d93bef4b6a0bcb39eb9fee28d2a8dc113a4c97e5e8516b55ada87c27738ffa0fc512805caa338d8649f6f5c9ba36490c4c3ebed86fdd SHA512 c9f14dacec2f22f62b7d3849d1c0e9d626b3dc20eb74a85b32f1901f6279b7b84af095107128bcbe80c49ac05448a713309b60d0c3d2f88e0bca8a14690292b2 5 | DIST lucene-core-7.1.0.jar 2779248 BLAKE2B 9edea1cfdeca2f2ec9e5c014e575774dc32fa5cf12ba02fd419fc252da10c03cd9f6cda989203211de4bc2ffcd2e79e8b97914e9792951bb0877a203760f07ad SHA512 0cd96016de2bc7ad94779e30348c443cf6028119fdae42c6f29e33d84495876a7519640f20680762324ea40c42e21b595f79cd606a6142b9875501f1e9179678 6 | DIST lucene-grouping-7.1.0.jar 87200 BLAKE2B 93f4ca6938b3fbc74752e22ee9d53022a60c57489017985448ddff46bc8c527b72e615e5f28d0301c28dc8119f0e6c75f4e8a711df3e6aaa418190b8ac8d1857 SHA512 41a85eafde03718efba7cf22598a430efbc6a6a68cf68058988f9eff648d19faa6cc4cf68293fe6e39783a7636eae571f27e04006f4607250dd9f6642184c61d 7 | DIST lucene-queries-7.1.0.jar 243126 BLAKE2B 166c3efea04c19314be7fd8c1d6b1378b2b967243289d9bded5e9768cb441a35fabbe63641d00b72a8c14aace0bad402df49c21b853f620bf81bc1e829dcecdb SHA512 34df5eccf0577ed037ef347adc9c2552c49d57e35dbff629fdbb860926765be48f8b06fd693bdacfc2edcd9c6ad711c13fe98e5317cb1d1f2157dcab938e34ea 8 | DIST lucene-queryparser-7.1.0.jar 384680 BLAKE2B adce2572de9f534323eead31dd30f97b853b2d5e4be6828c415f0c647460c361e00680d856ff9ffbba0fe45c3e4a425d68938a3d2dc01c76491bb65673e120fa SHA512 7151ef899e318679995138262c3450577ae33580708864581dc22a027f43ca4989825d434680925547e3c04ad4453a454e7045f605d7eee0da57d63db978ed68 9 | DIST lucene-sandbox-7.1.0.jar 182914 BLAKE2B 70c795f84d8f0908abe47db77f632eeb6571a77e1445b8ab04a75080cea40e3b8171071965ff7fd9f6d39a450dd33144e922d19c1f07c605de54b45e3e881323 SHA512 6faf9fd9c7c082bf062adb6a28d89447e6e27152eb3f0a325081e5f791196e5440334632ccbf9c458940220676f7e73390a174889d9b7a656d088b3dade5d500 10 | DIST openjfx-11.0.11_p1.tar.bz2 65017753 BLAKE2B ea5834e469bb0bd3a70595a91cc298f6091bc45de4c471ee9d0bcd45700ab3966a3396781ace2666bf94decd1219a83f01b277116cf23baeb6dd34a1a0f44191 SHA512 a1f94b3166aca50344f8af77ec2a5f52be1b0abc1c65fd3ff97f98017377ab772262502af00ad8cd4a6c44281ea459aff43a9cb7e30a1c35b822da8fb39b94fb 11 | -------------------------------------------------------------------------------- /dev-java/openjfx/files/11/11.0.9_p0-version.patch: -------------------------------------------------------------------------------- 1 | 2 | # HG changeset patch 3 | # User jvos 4 | # Date 1597927682 -7200 5 | # Node ID c0fe72db97a8924c906e4237881aa3c1d5669d19 6 | # Parent 38425dc30b9a25d52fbb0548ea1b0d098888aaed 7 | 8252067: Change JavaFX release version in 11-dev to 11.0.9 8 | Reviewed-by: kcr 9 | 10 | diff -r 38425dc30b9a -r c0fe72db97a8 build.properties 11 | --- a/build.properties Thu Aug 20 10:24:03 2020 +0200 12 | +++ b/build.properties Thu Aug 20 14:48:02 2020 +0200 13 | @@ -41,7 +41,7 @@ 14 | # UPDATE THE FOLLOWING VALUES FOR A NEW RELEASE 15 | jfx.release.major.version=11 16 | jfx.release.minor.version=0 17 | -jfx.release.security.version=8 18 | +jfx.release.security.version=9 19 | jfx.release.patch.version=0 20 | 21 | # Note: The release version is now calculated in build.gradle as the 22 | 23 | -------------------------------------------------------------------------------- /dev-java/openjfx/files/11/disable-architecture-verification.patch: -------------------------------------------------------------------------------- 1 | From 715ea681d14364be4fb2bdda120f6bf9ebaa9d5e Mon Sep 17 00:00:00 2001 2 | From: Georgy Yakovlev 3 | Date: Sat, 19 Sep 2020 18:38:05 -0700 4 | Subject: [PATCH] disable architecture verification 5 | 6 | --- 7 | build.gradle | 3 ++- 8 | 1 file changed, 2 insertions(+), 1 deletion(-) 9 | 10 | diff --git a/build.gradle b/build.gradle 11 | index 66a4b3c..f66ee01 100644 12 | --- a/build.gradle 13 | +++ b/build.gradle 14 | @@ -302,6 +302,7 @@ ext.MAVEN_GROUP_ID = "org.openjfx" 15 | // at present building on PI is not supported, but we would only need to make 16 | // some changes on assumptions on what should be built (like SWT / Swing) and 17 | // such and we could probably make it work. 18 | +/* 19 | if (!IS_MAC && !IS_WINDOWS && !IS_LINUX) fail("Unsupported build OS ${OS_NAME}") 20 | if (IS_WINDOWS && OS_ARCH != "x86" && OS_ARCH != "amd64") { 21 | fail("Unknown and unsupported build architecture: $OS_ARCH") 22 | @@ -310,7 +311,7 @@ if (IS_WINDOWS && OS_ARCH != "x86" && OS_ARCH != "amd64") { 23 | } else if (IS_LINUX && OS_ARCH != "i386" && OS_ARCH != "amd64") { 24 | fail("Unknown and unsupported build architecture: $OS_ARCH") 25 | } 26 | - 27 | +*/ 28 | 29 | // Get the JDK_HOME automatically based on the version of Java used to execute gradle. Or, if specified, 30 | // use a user supplied JDK_HOME, STUB_RUNTIME, JAVAC, all of which may be specified 31 | -- 32 | 2.28.0 33 | 34 | -------------------------------------------------------------------------------- /dev-java/openjfx/files/11/disable-buildSrc-tests.patch: -------------------------------------------------------------------------------- 1 | Description: Disables the buildSrc tests to work around a Gradle bug (UnsupportedOperationException: Cannot nest operations in the same thread) 2 | Author: Emmanuel Bourg 3 | Forwarded: not-needed 4 | --- a/buildSrc/build.gradle 5 | +++ b/buildSrc/build.gradle 6 | @@ -81,6 +81,7 @@ 7 | // Java 7 but when we switch to 8 this will be needed, and probably again when 8 | // we start building with Java 9. 9 | test { 10 | + enabled = false; 11 | enableAssertions = true; 12 | testLogging.exceptionFormat = "full"; 13 | scanForTestClasses = false; 14 | -------------------------------------------------------------------------------- /dev-java/openjfx/files/11/don-t-force-msse-11.0.11.patch: -------------------------------------------------------------------------------- 1 | From cf60da4cb9429f01b5793b0116651e6766068e7b Mon Sep 17 00:00:00 2001 2 | From: Georgy Yakovlev 3 | Date: Sat, 19 Sep 2020 18:30:58 -0700 4 | Subject: [PATCH] don't force -msse 5 | 6 | --- 7 | .../src/main/native/gstreamer/projects/linux/avplugin/Makefile | 1 - 8 | .../main/native/gstreamer/projects/linux/fxplugins/Makefile | 1 - 9 | .../src/main/native/gstreamer/projects/mac/fxplugins/Makefile | 3 +-- 10 | .../main/native/gstreamer/projects/mac/gstreamer-lite/Makefile | 3 +-- 11 | .../src/main/native/jfxmedia/projects/linux/Makefile | 1 - 12 | .../src/main/native/jfxmedia/projects/mac/Makefile | 3 +-- 13 | 6 files changed, 3 insertions(+), 9 deletions(-) 14 | 15 | diff --git a/modules/javafx.media/src/main/native/gstreamer/projects/linux/avplugin/Makefile b/modules/javafx.media/src/main/native/gstreamer/projects/linux/avplugin/Makefile 16 | index 682f1da..6222e29 100644 17 | --- a/modules/javafx.media/src/main/native/gstreamer/projects/linux/avplugin/Makefile 18 | +++ b/modules/javafx.media/src/main/native/gstreamer/projects/linux/avplugin/Makefile 19 | @@ -24,7 +24,6 @@ CFLAGS = -fPIC \ 20 | -fstack-protector \ 21 | -Werror=implicit-function-declaration \ 22 | -Werror=trampolines \ 23 | - -msse2 \ 24 | -fbuiltin \ 25 | -DHAVE_STDINT_H \ 26 | -DLINUX \ 27 | diff --git a/modules/javafx.media/src/main/native/gstreamer/projects/linux/fxplugins/Makefile b/modules/javafx.media/src/main/native/gstreamer/projects/linux/fxplugins/Makefile 28 | index c2cd04d..bb815fe 100644 29 | --- a/modules/javafx.media/src/main/native/gstreamer/projects/linux/fxplugins/Makefile 30 | +++ b/modules/javafx.media/src/main/native/gstreamer/projects/linux/fxplugins/Makefile 31 | @@ -21,7 +21,6 @@ CFLAGS = -fPIC \ 32 | -fstack-protector \ 33 | -Werror=implicit-function-declaration \ 34 | -Werror=trampolines \ 35 | - -msse2 \ 36 | -fbuiltin \ 37 | -DHAVE_STDINT_H \ 38 | -DLINUX \ 39 | diff --git a/modules/javafx.media/src/main/native/gstreamer/projects/mac/fxplugins/Makefile b/modules/javafx.media/src/main/native/gstreamer/projects/mac/fxplugins/Makefile 40 | index 9f80434..659ab1c 100644 41 | --- a/modules/javafx.media/src/main/native/gstreamer/projects/mac/fxplugins/Makefile 42 | +++ b/modules/javafx.media/src/main/native/gstreamer/projects/mac/fxplugins/Makefile 43 | @@ -30,8 +30,7 @@ CFLAGS += -fPIC \ 44 | -DHAVE_STDINT_H \ 45 | -DGSTREAMER_LITE \ 46 | -DG_DISABLE_DEPRECATED \ 47 | - -DOSX \ 48 | - -msse2 49 | + -DOSX 50 | 51 | ifeq ($(BUILD_TYPE), Release) 52 | CFLAGS += -Os 53 | diff --git a/modules/javafx.media/src/main/native/gstreamer/projects/mac/gstreamer-lite/Makefile b/modules/javafx.media/src/main/native/gstreamer/projects/mac/gstreamer-lite/Makefile 54 | index 2020404..34bdf42 100644 55 | --- a/modules/javafx.media/src/main/native/gstreamer/projects/mac/gstreamer-lite/Makefile 56 | +++ b/modules/javafx.media/src/main/native/gstreamer/projects/mac/gstreamer-lite/Makefile 57 | @@ -51,8 +51,7 @@ CFLAGS += -fPIC \ 58 | -DHAVE_CONFIG_H \ 59 | -DGSTREAMER_LITE \ 60 | -DGST_REMOVE_DISABLED \ 61 | - -DOSX \ 62 | - -msse2 63 | + -DOSX 64 | 65 | ifeq ($(BUILD_TYPE), Release) 66 | CFLAGS += -Os 67 | diff --git a/modules/javafx.media/src/main/native/jfxmedia/projects/linux/Makefile b/modules/javafx.media/src/main/native/jfxmedia/projects/linux/Makefile 68 | index aaef98e..f5b06c6 100644 69 | --- a/modules/javafx.media/src/main/native/jfxmedia/projects/linux/Makefile 70 | +++ b/modules/javafx.media/src/main/native/jfxmedia/projects/linux/Makefile 71 | @@ -42,7 +42,6 @@ ifdef HOST_COMPILE 72 | -Wformat-security \ 73 | -fstack-protector \ 74 | -Werror=trampolines \ 75 | - -msse2 \ 76 | -DGSTREAMER_LITE 77 | 78 | PACKAGES_INCLUDES := $(shell pkg-config --cflags glib-2.0) 79 | diff --git a/modules/javafx.media/src/main/native/jfxmedia/projects/mac/Makefile b/modules/javafx.media/src/main/native/jfxmedia/projects/mac/Makefile 80 | index 5ffd9ea..a7b3ddb 100644 81 | --- a/modules/javafx.media/src/main/native/jfxmedia/projects/mac/Makefile 82 | +++ b/modules/javafx.media/src/main/native/jfxmedia/projects/mac/Makefile 83 | @@ -30,8 +30,7 @@ CFLAGS += -pipe \ 84 | -fPIC \ 85 | -Werror=implicit-function-declaration \ 86 | -DTARGET_OS_MAC=1 \ 87 | - -D_GNU_SOURCE \ 88 | - -msse2 89 | + -D_GNU_SOURCE 90 | 91 | ifeq ($(BUILD_TYPE), Release) 92 | CFLAGS += -Os 93 | -------------------------------------------------------------------------------- /dev-java/openjfx/files/11/don-t-force-msse.patch: -------------------------------------------------------------------------------- 1 | From cf60da4cb9429f01b5793b0116651e6766068e7b Mon Sep 17 00:00:00 2001 2 | From: Georgy Yakovlev 3 | Date: Sat, 19 Sep 2020 18:30:58 -0700 4 | Subject: [PATCH] don't force -msse 5 | 6 | --- 7 | .../src/main/native/gstreamer/projects/linux/avplugin/Makefile | 1 - 8 | .../main/native/gstreamer/projects/linux/fxplugins/Makefile | 1 - 9 | .../src/main/native/gstreamer/projects/mac/fxplugins/Makefile | 3 +-- 10 | .../main/native/gstreamer/projects/mac/gstreamer-lite/Makefile | 3 +-- 11 | .../src/main/native/jfxmedia/projects/linux/Makefile | 1 - 12 | .../src/main/native/jfxmedia/projects/mac/Makefile | 3 +-- 13 | 6 files changed, 3 insertions(+), 9 deletions(-) 14 | 15 | diff --git a/modules/javafx.media/src/main/native/gstreamer/projects/linux/avplugin/Makefile b/modules/javafx.media/src/main/native/gstreamer/projects/linux/avplugin/Makefile 16 | index f27b9479..4e229f20 100644 17 | --- a/modules/javafx.media/src/main/native/gstreamer/projects/linux/avplugin/Makefile 18 | +++ b/modules/javafx.media/src/main/native/gstreamer/projects/linux/avplugin/Makefile 19 | @@ -23,7 +23,6 @@ CFLAGS := -fPIC \ 20 | -Wformat-security \ 21 | -fstack-protector \ 22 | -Werror=implicit-function-declaration \ 23 | - -msse2 \ 24 | -fbuiltin \ 25 | -DHAVE_STDINT_H \ 26 | -DLINUX \ 27 | diff --git a/modules/javafx.media/src/main/native/gstreamer/projects/linux/fxplugins/Makefile b/modules/javafx.media/src/main/native/gstreamer/projects/linux/fxplugins/Makefile 28 | index 627865f9..a4d99299 100644 29 | --- a/modules/javafx.media/src/main/native/gstreamer/projects/linux/fxplugins/Makefile 30 | +++ b/modules/javafx.media/src/main/native/gstreamer/projects/linux/fxplugins/Makefile 31 | @@ -20,7 +20,6 @@ CFLAGS := -fPIC \ 32 | -Wformat-security \ 33 | -fstack-protector \ 34 | -Werror=implicit-function-declaration \ 35 | - -msse2 \ 36 | -fbuiltin \ 37 | -DHAVE_STDINT_H \ 38 | -DLINUX \ 39 | diff --git a/modules/javafx.media/src/main/native/gstreamer/projects/mac/fxplugins/Makefile b/modules/javafx.media/src/main/native/gstreamer/projects/mac/fxplugins/Makefile 40 | index 9f80434d..659ab1c1 100644 41 | --- a/modules/javafx.media/src/main/native/gstreamer/projects/mac/fxplugins/Makefile 42 | +++ b/modules/javafx.media/src/main/native/gstreamer/projects/mac/fxplugins/Makefile 43 | @@ -30,8 +30,7 @@ CFLAGS += -fPIC \ 44 | -DHAVE_STDINT_H \ 45 | -DGSTREAMER_LITE \ 46 | -DG_DISABLE_DEPRECATED \ 47 | - -DOSX \ 48 | - -msse2 49 | + -DOSX 50 | 51 | ifeq ($(BUILD_TYPE), Release) 52 | CFLAGS += -Os 53 | diff --git a/modules/javafx.media/src/main/native/gstreamer/projects/mac/gstreamer-lite/Makefile b/modules/javafx.media/src/main/native/gstreamer/projects/mac/gstreamer-lite/Makefile 54 | index 2020404c..34bdf42c 100644 55 | --- a/modules/javafx.media/src/main/native/gstreamer/projects/mac/gstreamer-lite/Makefile 56 | +++ b/modules/javafx.media/src/main/native/gstreamer/projects/mac/gstreamer-lite/Makefile 57 | @@ -51,8 +51,7 @@ CFLAGS += -fPIC \ 58 | -DHAVE_CONFIG_H \ 59 | -DGSTREAMER_LITE \ 60 | -DGST_REMOVE_DISABLED \ 61 | - -DOSX \ 62 | - -msse2 63 | + -DOSX 64 | 65 | ifeq ($(BUILD_TYPE), Release) 66 | CFLAGS += -Os 67 | diff --git a/modules/javafx.media/src/main/native/jfxmedia/projects/linux/Makefile b/modules/javafx.media/src/main/native/jfxmedia/projects/linux/Makefile 68 | index c9500236..175be13e 100644 69 | --- a/modules/javafx.media/src/main/native/jfxmedia/projects/linux/Makefile 70 | +++ b/modules/javafx.media/src/main/native/jfxmedia/projects/linux/Makefile 71 | @@ -43,7 +43,6 @@ ifdef HOST_COMPILE 72 | -Wformat-security \ 73 | -fstack-protector \ 74 | -Werror=implicit-function-declaration \ 75 | - -msse2 \ 76 | -DGSTREAMER_LITE 77 | 78 | PACKAGES_INCLUDES := $(shell pkg-config --cflags glib-2.0) 79 | diff --git a/modules/javafx.media/src/main/native/jfxmedia/projects/mac/Makefile b/modules/javafx.media/src/main/native/jfxmedia/projects/mac/Makefile 80 | index 5ffd9eac..a7b3ddbb 100644 81 | --- a/modules/javafx.media/src/main/native/jfxmedia/projects/mac/Makefile 82 | +++ b/modules/javafx.media/src/main/native/jfxmedia/projects/mac/Makefile 83 | @@ -30,8 +30,7 @@ CFLAGS += -pipe \ 84 | -fPIC \ 85 | -Werror=implicit-function-declaration \ 86 | -DTARGET_OS_MAC=1 \ 87 | - -D_GNU_SOURCE \ 88 | - -msse2 89 | + -D_GNU_SOURCE 90 | 91 | ifeq ($(BUILD_TYPE), Release) 92 | CFLAGS += -Os 93 | -- 94 | 2.28.0 95 | 96 | -------------------------------------------------------------------------------- /dev-java/openjfx/files/11/glibc-compatibility.patch: -------------------------------------------------------------------------------- 1 | Description: Fixes the compatibility with the version of glibc in Debian 2 | Author: Emmanuel Bourg 3 | Forwarded: https://bugs.openjdk.java.net/browse/JDK-8211399 4 | --- a/modules/javafx.web/src/main/native/Source/ThirdParty/libxslt/src/libxslt/xsltlocale.h 5 | +++ b/modules/javafx.web/src/main/native/Source/ThirdParty/libxslt/src/libxslt/xsltlocale.h 6 | @@ -25,9 +25,6 @@ 7 | #ifdef HAVE_LOCALE_H 8 | #include 9 | #endif 10 | -#ifdef HAVE_XLOCALE_H 11 | -#include 12 | -#endif 13 | 14 | typedef locale_t xsltLocale; 15 | typedef xmlChar xsltLocaleChar; 16 | -------------------------------------------------------------------------------- /dev-java/openjfx/files/11/gstreamer-CVE-2021-3522.patch: -------------------------------------------------------------------------------- 1 | From 8a88e5c1db05ebadfd4569955f6f47c23cdca3c4 Mon Sep 17 00:00:00 2001 2 | From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= 3 | Date: Wed, 3 Mar 2021 01:08:25 +0000 4 | Subject: [PATCH] tag: id3v2: fix frame size check and potential invalid reads 5 | 6 | Check the right variable when checking if there's 7 | enough data left to read the frame size. 8 | 9 | Closes https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/issues/876 10 | 11 | Part-of: 12 | --- 13 | gst-libs/gst/tag/id3v2frames.c | 2 +- 14 | 1 file changed, 1 insertion(+), 1 deletion(-) 15 | 16 | diff --git a/gst-libs/gst/tag/id3v2frames.c b/gst-libs/gst/tag/id3v2frames.c 17 | index 8e9f78254..f39659bf7 100644 18 | --- a/modules/javafx.media/src/main/native/gstreamer/gstreamer-lite/gst-plugins-base/gst-libs/gst/tag/id3v2frames.c 19 | +++ b/modules/javafx.media/src/main/native/gstreamer/gstreamer-lite/gst-plugins-base/gst-libs/gst/tag/id3v2frames.c 20 | @@ -109,7 +109,7 @@ id3v2_parse_frame (ID3TagsWorking * work) 21 | 22 | if (work->frame_flags & (ID3V2_FRAME_FORMAT_COMPRESSION | 23 | ID3V2_FRAME_FORMAT_DATA_LENGTH_INDICATOR)) { 24 | - if (work->hdr.frame_data_size <= 4) 25 | + if (frame_data_size <= 4) 26 | return FALSE; 27 | if (ID3V2_VER_MAJOR (work->hdr.version) == 3) { 28 | work->parse_size = GST_READ_UINT32_BE (frame_data); 29 | -- 30 | GitLab 31 | 32 | -------------------------------------------------------------------------------- /dev-java/openjfx/files/11/respect-user-cflags-11.0.11.patch: -------------------------------------------------------------------------------- 1 | From a28f9aaab759d82384279c16d86bb98ab47412a3 Mon Sep 17 00:00:00 2001 2 | From: Georgy Yakovlev 3 | Date: Sat, 1 Jun 2019 00:12:55 -0700 4 | Subject: [PATCH] respect user cflags 5 | 6 | --- 7 | buildSrc/linux.gradle | 7 ++++++- 8 | .../gstreamer/projects/linux/avplugin/Makefile | 16 ++++++---------- 9 | .../gstreamer/projects/linux/fxplugins/Makefile | 17 ++++++----------- 10 | .../projects/linux/gstreamer-lite/Makefile | 16 ++++++---------- 11 | .../native/jfxmedia/projects/linux/Makefile | 16 ++++++---------- 12 | 5 files changed, 30 insertions(+), 42 deletions(-) 13 | 14 | diff --git a/buildSrc/linux.gradle b/buildSrc/linux.gradle 15 | index 7a7cbc72..6705a0f3 100644 16 | --- a/buildSrc/linux.gradle 17 | +++ b/buildSrc/linux.gradle 18 | @@ -44,8 +44,11 @@ LINUX.library = { name -> return "lib${name}.so" as String } 19 | def commonFlags = [ 20 | "-fno-strict-aliasing", "-fPIC", "-fno-omit-frame-pointer", // optimization flags 21 | "-fstack-protector", 22 | + "-Wno-error=cast-function-type", 23 | "-Wextra", "-Wall", "-Wformat-security", "-Wno-unused", "-Wno-parentheses", "-Werror=trampolines"] // warning flags 24 | 25 | +commonFlags.addAll(System.getenv("CFLAGS").trim().split(" ")) 26 | + 27 | if (!IS_64) { 28 | commonFlags += "-m32" 29 | } 30 | @@ -61,6 +64,8 @@ def linkFlags = ["-static-libgcc", "-static-libstdc++", "-shared", commonFlags, 31 | "-z", "relro", 32 | "-Wl,--gc-sections"].flatten() 33 | 34 | +linkFlags.addAll(System.getenv("LDFLAGS").trim().split(" ")) 35 | + 36 | if (IS_DEBUG_NATIVE) { 37 | linkFlags += "-g" 38 | } 39 | @@ -294,7 +299,7 @@ LINUX.iio.nativeSource = [ 40 | LINUX.iio.compiler = compiler 41 | LINUX.iio.ccFlags = [ccFlags].flatten() 42 | LINUX.iio.linker = linker 43 | -LINUX.iio.linkFlags = [linkFlags].flatten() 44 | +LINUX.iio.linkFlags = [linkFlags, "-ljpeg"].flatten() 45 | LINUX.iio.lib = "javafx_iio" 46 | 47 | LINUX.prismES2 = [:] 48 | diff --git a/modules/javafx.media/src/main/native/gstreamer/projects/linux/avplugin/Makefile b/modules/javafx.media/src/main/native/gstreamer/projects/linux/avplugin/Makefile 49 | index 450b55d3..f27b9479 100644 50 | --- a/modules/javafx.media/src/main/native/gstreamer/projects/linux/avplugin/Makefile 51 | +++ b/modules/javafx.media/src/main/native/gstreamer/projects/linux/avplugin/Makefile 52 | @@ -17,7 +17,7 @@ TARGET = $(BUILD_DIR)/lib$(BASE_NAME).so 53 | OBJBASE_DIR = $(BUILD_DIR)/obj/plugins/avplugin 54 | endif 55 | 56 | -CFLAGS = -fPIC \ 57 | +CFLAGS := -fPIC \ 58 | -Wformat \ 59 | -Wextra \ 60 | -Wformat-security \ 61 | @@ -29,13 +29,8 @@ CFLAGS = -fPIC \ 62 | -DLINUX \ 63 | -DGST_DISABLE_LOADSAVE \ 64 | -DGSTREAMER_LITE \ 65 | - -ffunction-sections -fdata-sections 66 | - 67 | -ifeq ($(BUILD_TYPE), Release) 68 | - CFLAGS += -Os 69 | -else 70 | - CFLAGS += -g -Wall 71 | -endif 72 | + -ffunction-sections -fdata-sections \ 73 | + ${CFLAGS} 74 | 75 | PACKAGES_INCLUDES := $(shell pkg-config --cflags glib-2.0) 76 | PACKAGES_LIBS := $(shell pkg-config --libs glib-2.0 gobject-2.0) 77 | @@ -46,11 +41,12 @@ INCLUDES= -I../../../plugins \ 78 | -I../../../gstreamer-lite/gstreamer/libs \ 79 | $(PACKAGES_INCLUDES) 80 | 81 | -LDFLAGS = -L$(BUILD_DIR) \ 82 | +LDFLAGS := -L$(BUILD_DIR) \ 83 | -lgstreamer-lite \ 84 | $(PACKAGES_LIBS) \ 85 | -z relro \ 86 | - -static-libgcc -static-libstdc++ -Wl,--gc-sections 87 | + -static-libgcc -static-libstdc++ -Wl,--gc-sections \ 88 | + ${LDFLAGS} 89 | 90 | ifneq ($(strip $(LIBAV_DIR)),) 91 | INCLUDES += -I$(LIBAV_DIR)/include 92 | diff --git a/modules/javafx.media/src/main/native/gstreamer/projects/linux/fxplugins/Makefile b/modules/javafx.media/src/main/native/gstreamer/projects/linux/fxplugins/Makefile 93 | index 1e58d4d3..627865f9 100644 94 | --- a/modules/javafx.media/src/main/native/gstreamer/projects/linux/fxplugins/Makefile 95 | +++ b/modules/javafx.media/src/main/native/gstreamer/projects/linux/fxplugins/Makefile 96 | @@ -14,7 +14,7 @@ DIRLIST = progressbuffer \ 97 | 98 | TARGET = $(BUILD_DIR)/lib$(BASE_NAME).so 99 | 100 | -CFLAGS = -fPIC \ 101 | +CFLAGS := -fPIC \ 102 | -Wformat \ 103 | -Wextra \ 104 | -Wformat-security \ 105 | @@ -30,14 +30,8 @@ CFLAGS = -fPIC \ 106 | -DGST_DISABLE_LOADSAVE \ 107 | -DGST_DISABLE_GST_DEBUG \ 108 | -DGSTREAMER_LITE \ 109 | - -ffunction-sections -fdata-sections 110 | - 111 | -ifeq ($(BUILD_TYPE), Release) 112 | - CFLAGS += -Os 113 | -else 114 | - CFLAGS += -g -Wall 115 | -endif 116 | - 117 | + -ffunction-sections -fdata-sections \ 118 | + ${CFLAGS} 119 | 120 | INCLUDES = -I$(SRCBASE_DIR) \ 121 | $(addprefix -I$(SRCBASE_DIR)/,$(DIRLIST)) \ 122 | @@ -47,9 +41,10 @@ INCLUDES = -I$(SRCBASE_DIR) \ 123 | PACKAGES_INCLUDES := $(shell pkg-config --cflags glib-2.0) 124 | PACKAGES_LIBS := $(shell pkg-config --libs glib-2.0 gobject-2.0) 125 | 126 | -LDFLAGS = -L$(BUILD_DIR) -lgstreamer-lite $(PACKAGES_LIBS) \ 127 | +LDFLAGS := -L$(BUILD_DIR) -lgstreamer-lite $(PACKAGES_LIBS) \ 128 | -z relro \ 129 | - -static-libgcc -static-libstdc++ -Wl,--gc-sections 130 | + -static-libgcc -static-libstdc++ -Wl,--gc-sections \ 131 | + ${LDFLAGS} 132 | 133 | ifeq ($(ARCH), x32) 134 | CFLAGS += -m32 135 | diff --git a/modules/javafx.media/src/main/native/gstreamer/projects/linux/gstreamer-lite/Makefile b/modules/javafx.media/src/main/native/gstreamer/projects/linux/gstreamer-lite/Makefile 136 | index 5baa30a1..ddf0e521 100644 137 | --- a/modules/javafx.media/src/main/native/gstreamer/projects/linux/gstreamer-lite/Makefile 138 | +++ b/modules/javafx.media/src/main/native/gstreamer/projects/linux/gstreamer-lite/Makefile 139 | @@ -37,7 +37,7 @@ DIRLIST = gstreamer/gst \ 140 | 141 | TARGET = $(BUILD_DIR)/lib$(BASE_NAME).so 142 | 143 | -CFLAGS =-fPIC \ 144 | +CFLAGS :=-fPIC \ 145 | -Wformat \ 146 | -Wextra \ 147 | -Wformat-security \ 148 | @@ -51,13 +51,8 @@ CFLAGS =-fPIC \ 149 | -DLINUX \ 150 | -DGST_DISABLE_GST_DEBUG \ 151 | -DGST_DISABLE_LOADSAVE \ 152 | - -ffunction-sections -fdata-sections 153 | - 154 | -ifeq ($(BUILD_TYPE), Release) 155 | - CFLAGS += -Os 156 | -else 157 | - CFLAGS += -g -Wall 158 | -endif 159 | + -ffunction-sections -fdata-sections \ 160 | + ${CFLAGS} 161 | 162 | INCLUDES = -I$(BASE_DIR)/plugins \ 163 | -I$(SRCBASE_DIR)/projects/build/linux/common \ 164 | @@ -75,9 +70,10 @@ INCLUDES = -I$(BASE_DIR)/plugins \ 165 | PACKAGES_INCLUDES := $(shell pkg-config --cflags alsa glib-2.0) 166 | PACKAGES_LIBS := $(shell pkg-config --libs alsa glib-2.0 gobject-2.0 gmodule-2.0 gthread-2.0) 167 | 168 | -LDFLAGS = -L$(BUILD_DIR) -lm $(PACKAGES_LIBS) \ 169 | +LDFLAGS := -L$(BUILD_DIR) -lm $(PACKAGES_LIBS) \ 170 | -z relro \ 171 | - -static-libgcc -static-libstdc++ -Wl,--gc-sections 172 | + -static-libgcc -static-libstdc++ -Wl,--gc-sections \ 173 | + ${LDFLAGS} 174 | 175 | ifeq ($(ARCH), x32) 176 | CFLAGS += -m32 177 | diff --git a/modules/javafx.media/src/main/native/jfxmedia/projects/linux/Makefile b/modules/javafx.media/src/main/native/jfxmedia/projects/linux/Makefile 178 | index ecbd859f..5881cf53 100644 179 | --- a/modules/javafx.media/src/main/native/jfxmedia/projects/linux/Makefile 180 | +++ b/modules/javafx.media/src/main/native/jfxmedia/projects/linux/Makefile 181 | @@ -17,7 +17,7 @@ DIRLIST = jni \ 182 | 183 | TARGET = $(BUILD_DIR)/lib$(BASE_NAME).so 184 | 185 | -CFLAGS = -DTARGET_OS_LINUX=1 \ 186 | +CFLAGS := -DTARGET_OS_LINUX=1 \ 187 | -D_GNU_SOURCE \ 188 | -DGST_REMOVE_DEPRECATED \ 189 | -DGST_DISABLE_GST_DEBUG \ 190 | @@ -26,7 +26,8 @@ CFLAGS = -DTARGET_OS_LINUX=1 \ 191 | -DHAVE_CONFIG_H \ 192 | -DJFXMEDIA_JNI_EXPORTS \ 193 | -DLINUX \ 194 | - -ffunction-sections -fdata-sections 195 | + -ffunction-sections -fdata-sections \ 196 | + ${CFLAGS} 197 | 198 | CPPFLAGS = -fno-rtti -ffunction-sections -fdata-sections 199 | 200 | @@ -56,21 +57,16 @@ ifdef HOST_COMPILE 201 | -I$(GSTREAMER_LITE_DIR)/gstreamer/libs \ 202 | $(PACKAGES_INCLUDES) 203 | 204 | - LDFLAGS = -Wl,-rpath,\$$ORIGIN -L$(BUILD_DIR) -lgstreamer-lite $(PACKAGES_LIBS) \ 205 | + LDFLAGS := -Wl,-rpath-link,\$$ORIGIN -L$(BUILD_DIR) -lgstreamer-lite $(PACKAGES_LIBS) \ 206 | -z relro \ 207 | - -static-libgcc -static-libstdc++ -Wl,--gc-sections 208 | + -static-libgcc -static-libstdc++ -Wl,--gc-sections \ 209 | + ${LDFLAGS} 210 | else 211 | CFLAGS += $(EXTRA_CFLAGS) 212 | INCLUDES = $(BASE_INCLUDES) 213 | LDFLAGS = -Wl,-rpath,\$$ORIGIN -L$(BUILD_DIR) $(EXTRA_LDFLAGS) 214 | endif 215 | 216 | -ifeq ($(BUILD_TYPE), Release) 217 | - CFLAGS += -Os 218 | -else 219 | - CFLAGS += -g -Wall -D_DEBUG 220 | -endif 221 | - 222 | ifeq ($(ARCH), x32) 223 | CFLAGS += -m32 224 | LDFLAGS += -m32 225 | -- 226 | 2.21.0 227 | 228 | -------------------------------------------------------------------------------- /dev-java/openjfx/files/11/respect-user-cflags.patch: -------------------------------------------------------------------------------- 1 | From a28f9aaab759d82384279c16d86bb98ab47412a3 Mon Sep 17 00:00:00 2001 2 | From: Georgy Yakovlev 3 | Date: Sat, 1 Jun 2019 00:12:55 -0700 4 | Subject: [PATCH] respect user cflags 5 | 6 | --- 7 | buildSrc/linux.gradle | 7 ++++++- 8 | .../gstreamer/projects/linux/avplugin/Makefile | 16 ++++++---------- 9 | .../gstreamer/projects/linux/fxplugins/Makefile | 17 ++++++----------- 10 | .../projects/linux/gstreamer-lite/Makefile | 16 ++++++---------- 11 | .../native/jfxmedia/projects/linux/Makefile | 16 ++++++---------- 12 | 5 files changed, 30 insertions(+), 42 deletions(-) 13 | 14 | diff --git a/buildSrc/linux.gradle b/buildSrc/linux.gradle 15 | index 7a7cbc72..6705a0f3 100644 16 | --- a/buildSrc/linux.gradle 17 | +++ b/buildSrc/linux.gradle 18 | @@ -44,8 +44,11 @@ LINUX.library = { name -> return "lib${name}.so" as String } 19 | def commonFlags = [ 20 | "-fno-strict-aliasing", "-fPIC", "-fno-omit-frame-pointer", // optimization flags 21 | "-fstack-protector", 22 | + "-Wno-error=cast-function-type", 23 | "-Wextra", "-Wall", "-Wformat-security", "-Wno-unused", "-Wno-parentheses", "-Werror=implicit-function-declaration"] // warning flags 24 | 25 | +commonFlags.addAll(System.getenv("CFLAGS").trim().split(" ")) 26 | + 27 | if (!IS_64) { 28 | commonFlags += "-m32" 29 | } 30 | @@ -61,6 +64,8 @@ def linkFlags = ["-static-libgcc", "-static-libstdc++", "-shared", commonFlags, 31 | "-z", "relro", 32 | "-Wl,--gc-sections"].flatten() 33 | 34 | +linkFlags.addAll(System.getenv("LDFLAGS").trim().split(" ")) 35 | + 36 | if (IS_DEBUG_NATIVE) { 37 | linkFlags += "-g" 38 | } 39 | @@ -294,7 +299,7 @@ LINUX.iio.nativeSource = [ 40 | LINUX.iio.compiler = compiler 41 | LINUX.iio.ccFlags = [ccFlags].flatten() 42 | LINUX.iio.linker = linker 43 | -LINUX.iio.linkFlags = [linkFlags].flatten() 44 | +LINUX.iio.linkFlags = [linkFlags, "-ljpeg"].flatten() 45 | LINUX.iio.lib = "javafx_iio" 46 | 47 | LINUX.prismES2 = [:] 48 | diff --git a/modules/javafx.media/src/main/native/gstreamer/projects/linux/avplugin/Makefile b/modules/javafx.media/src/main/native/gstreamer/projects/linux/avplugin/Makefile 49 | index 450b55d3..f27b9479 100644 50 | --- a/modules/javafx.media/src/main/native/gstreamer/projects/linux/avplugin/Makefile 51 | +++ b/modules/javafx.media/src/main/native/gstreamer/projects/linux/avplugin/Makefile 52 | @@ -17,7 +17,7 @@ TARGET = $(BUILD_DIR)/lib$(BASE_NAME).so 53 | OBJBASE_DIR = $(BUILD_DIR)/obj/plugins/avplugin 54 | endif 55 | 56 | -CFLAGS = -fPIC \ 57 | +CFLAGS := -fPIC \ 58 | -Wformat \ 59 | -Wextra \ 60 | -Wformat-security \ 61 | @@ -29,13 +29,8 @@ CFLAGS = -fPIC \ 62 | -DLINUX \ 63 | -DGST_DISABLE_LOADSAVE \ 64 | -DGSTREAMER_LITE \ 65 | - -ffunction-sections -fdata-sections 66 | - 67 | -ifeq ($(BUILD_TYPE), Release) 68 | - CFLAGS += -Os 69 | -else 70 | - CFLAGS += -g -Wall 71 | -endif 72 | + -ffunction-sections -fdata-sections \ 73 | + ${CFLAGS} 74 | 75 | PACKAGES_INCLUDES := $(shell pkg-config --cflags glib-2.0) 76 | PACKAGES_LIBS := $(shell pkg-config --libs glib-2.0 gobject-2.0) 77 | @@ -46,11 +41,12 @@ INCLUDES= -I../../../plugins \ 78 | -I../../../gstreamer-lite/gstreamer/libs \ 79 | $(PACKAGES_INCLUDES) 80 | 81 | -LDFLAGS = -L$(BUILD_DIR) \ 82 | +LDFLAGS := -L$(BUILD_DIR) \ 83 | -lgstreamer-lite \ 84 | $(PACKAGES_LIBS) \ 85 | -z relro \ 86 | - -static-libgcc -static-libstdc++ -Wl,--gc-sections 87 | + -static-libgcc -static-libstdc++ -Wl,--gc-sections \ 88 | + ${LDFLAGS} 89 | 90 | ifneq ($(strip $(LIBAV_DIR)),) 91 | INCLUDES += -I$(LIBAV_DIR)/include 92 | diff --git a/modules/javafx.media/src/main/native/gstreamer/projects/linux/fxplugins/Makefile b/modules/javafx.media/src/main/native/gstreamer/projects/linux/fxplugins/Makefile 93 | index 1e58d4d3..627865f9 100644 94 | --- a/modules/javafx.media/src/main/native/gstreamer/projects/linux/fxplugins/Makefile 95 | +++ b/modules/javafx.media/src/main/native/gstreamer/projects/linux/fxplugins/Makefile 96 | @@ -14,7 +14,7 @@ DIRLIST = progressbuffer \ 97 | 98 | TARGET = $(BUILD_DIR)/lib$(BASE_NAME).so 99 | 100 | -CFLAGS = -fPIC \ 101 | +CFLAGS := -fPIC \ 102 | -Wformat \ 103 | -Wextra \ 104 | -Wformat-security \ 105 | @@ -30,14 +30,8 @@ CFLAGS = -fPIC \ 106 | -DGST_DISABLE_LOADSAVE \ 107 | -DGST_DISABLE_GST_DEBUG \ 108 | -DGSTREAMER_LITE \ 109 | - -ffunction-sections -fdata-sections 110 | - 111 | -ifeq ($(BUILD_TYPE), Release) 112 | - CFLAGS += -Os 113 | -else 114 | - CFLAGS += -g -Wall 115 | -endif 116 | - 117 | + -ffunction-sections -fdata-sections \ 118 | + ${CFLAGS} 119 | 120 | INCLUDES = -I$(SRCBASE_DIR) \ 121 | $(addprefix -I$(SRCBASE_DIR)/,$(DIRLIST)) \ 122 | @@ -47,9 +41,10 @@ INCLUDES = -I$(SRCBASE_DIR) \ 123 | PACKAGES_INCLUDES := $(shell pkg-config --cflags glib-2.0) 124 | PACKAGES_LIBS := $(shell pkg-config --libs glib-2.0 gobject-2.0) 125 | 126 | -LDFLAGS = -L$(BUILD_DIR) -lgstreamer-lite $(PACKAGES_LIBS) \ 127 | +LDFLAGS := -L$(BUILD_DIR) -lgstreamer-lite $(PACKAGES_LIBS) \ 128 | -z relro \ 129 | - -static-libgcc -static-libstdc++ -Wl,--gc-sections 130 | + -static-libgcc -static-libstdc++ -Wl,--gc-sections \ 131 | + ${LDFLAGS} 132 | 133 | ifeq ($(ARCH), x32) 134 | CFLAGS += -m32 135 | diff --git a/modules/javafx.media/src/main/native/gstreamer/projects/linux/gstreamer-lite/Makefile b/modules/javafx.media/src/main/native/gstreamer/projects/linux/gstreamer-lite/Makefile 136 | index 5baa30a1..ddf0e521 100644 137 | --- a/modules/javafx.media/src/main/native/gstreamer/projects/linux/gstreamer-lite/Makefile 138 | +++ b/modules/javafx.media/src/main/native/gstreamer/projects/linux/gstreamer-lite/Makefile 139 | @@ -37,7 +37,7 @@ DIRLIST = gstreamer/gst \ 140 | 141 | TARGET = $(BUILD_DIR)/lib$(BASE_NAME).so 142 | 143 | -CFLAGS =-fPIC \ 144 | +CFLAGS :=-fPIC \ 145 | -Wformat \ 146 | -Wextra \ 147 | -Wformat-security \ 148 | @@ -51,13 +51,8 @@ CFLAGS =-fPIC \ 149 | -DLINUX \ 150 | -DGST_DISABLE_GST_DEBUG \ 151 | -DGST_DISABLE_LOADSAVE \ 152 | - -ffunction-sections -fdata-sections 153 | - 154 | -ifeq ($(BUILD_TYPE), Release) 155 | - CFLAGS += -Os 156 | -else 157 | - CFLAGS += -g -Wall 158 | -endif 159 | + -ffunction-sections -fdata-sections \ 160 | + ${CFLAGS} 161 | 162 | INCLUDES = -I$(BASE_DIR)/plugins \ 163 | -I$(SRCBASE_DIR)/projects/build/linux/common \ 164 | @@ -75,9 +70,10 @@ INCLUDES = -I$(BASE_DIR)/plugins \ 165 | PACKAGES_INCLUDES := $(shell pkg-config --cflags alsa glib-2.0) 166 | PACKAGES_LIBS := $(shell pkg-config --libs alsa glib-2.0 gobject-2.0 gmodule-2.0 gthread-2.0) 167 | 168 | -LDFLAGS = -L$(BUILD_DIR) -lm $(PACKAGES_LIBS) \ 169 | +LDFLAGS := -L$(BUILD_DIR) -lm $(PACKAGES_LIBS) \ 170 | -z relro \ 171 | - -static-libgcc -static-libstdc++ -Wl,--gc-sections 172 | + -static-libgcc -static-libstdc++ -Wl,--gc-sections \ 173 | + ${LDFLAGS} 174 | 175 | ifeq ($(ARCH), x32) 176 | CFLAGS += -m32 177 | diff --git a/modules/javafx.media/src/main/native/jfxmedia/projects/linux/Makefile b/modules/javafx.media/src/main/native/jfxmedia/projects/linux/Makefile 178 | index ecbd859f..5881cf53 100644 179 | --- a/modules/javafx.media/src/main/native/jfxmedia/projects/linux/Makefile 180 | +++ b/modules/javafx.media/src/main/native/jfxmedia/projects/linux/Makefile 181 | @@ -17,7 +17,7 @@ DIRLIST = jni \ 182 | 183 | TARGET = $(BUILD_DIR)/lib$(BASE_NAME).so 184 | 185 | -CFLAGS = -DTARGET_OS_LINUX=1 \ 186 | +CFLAGS := -DTARGET_OS_LINUX=1 \ 187 | -D_GNU_SOURCE \ 188 | -DGST_REMOVE_DEPRECATED \ 189 | -DGST_DISABLE_GST_DEBUG \ 190 | @@ -26,7 +26,8 @@ CFLAGS = -DTARGET_OS_LINUX=1 \ 191 | -DHAVE_CONFIG_H \ 192 | -DJFXMEDIA_JNI_EXPORTS \ 193 | -DLINUX \ 194 | - -ffunction-sections -fdata-sections 195 | + -ffunction-sections -fdata-sections \ 196 | + ${CFLAGS} 197 | 198 | CPPFLAGS = -fno-rtti -ffunction-sections -fdata-sections 199 | 200 | @@ -56,21 +57,16 @@ ifdef HOST_COMPILE 201 | -I$(GSTREAMER_LITE_DIR)/gstreamer/libs \ 202 | $(PACKAGES_INCLUDES) 203 | 204 | - LDFLAGS = -Wl,-rpath,\$$ORIGIN -L$(BUILD_DIR) -lgstreamer-lite $(PACKAGES_LIBS) \ 205 | + LDFLAGS := -Wl,-rpath-link,\$$ORIGIN -L$(BUILD_DIR) -lgstreamer-lite $(PACKAGES_LIBS) \ 206 | -z relro \ 207 | - -static-libgcc -static-libstdc++ -Wl,--gc-sections 208 | + -static-libgcc -static-libstdc++ -Wl,--gc-sections \ 209 | + ${LDFLAGS} 210 | else 211 | CFLAGS += $(EXTRA_CFLAGS) 212 | INCLUDES = $(BASE_INCLUDES) 213 | LDFLAGS = -Wl,-rpath,\$$ORIGIN -L$(BUILD_DIR) $(EXTRA_LDFLAGS) 214 | endif 215 | 216 | -ifeq ($(BUILD_TYPE), Release) 217 | - CFLAGS += -Os 218 | -else 219 | - CFLAGS += -g -Wall -D_DEBUG 220 | -endif 221 | - 222 | ifeq ($(ARCH), x32) 223 | CFLAGS += -m32 224 | LDFLAGS += -m32 225 | -- 226 | 2.21.0 227 | 228 | -------------------------------------------------------------------------------- /dev-java/openjfx/files/11/use-system-swt-jar.patch: -------------------------------------------------------------------------------- 1 | From c7a04feac8281cd3e53c8d0215a229bb6cd4fce8 Mon Sep 17 00:00:00 2001 2 | From: Georgy Yakovlev 3 | Date: Sat, 1 Jun 2019 00:36:04 -0700 4 | Subject: [PATCH] use system swt jar 5 | 6 | --- 7 | build.gradle | 2 +- 8 | 1 file changed, 1 insertion(+), 1 deletion(-) 9 | 10 | diff --git a/build.gradle b/build.gradle 11 | index 1e414b7..3d967bb 100644 12 | --- a/build.gradle 13 | +++ b/build.gradle 14 | @@ -2477,7 +2477,7 @@ project(":swt") { 15 | commonModuleSetup(project, [ 'base', 'graphics' ]) 16 | 17 | dependencies { 18 | - compile name: SWT_FILE_NAME 19 | + compile files("__gentoo_swt_jar__") 20 | } 21 | 22 | classes { 23 | -- 24 | 2.21.0 25 | 26 | -------------------------------------------------------------------------------- /dev-java/openjfx/files/11/wno-error-11.0.11.patch: -------------------------------------------------------------------------------- 1 | From 9df57c50dcf4b0ac729595600932f844e1f8d4a3 Mon Sep 17 00:00:00 2001 2 | From: Georgy Yakovlev 3 | Date: Wed, 17 Nov 2021 19:52:13 -0800 4 | Subject: [PATCH] no -Werror 5 | 6 | --- 7 | buildSrc/linux.gradle | 6 +++--- 8 | 1 file changed, 3 insertions(+), 3 deletions(-) 9 | 10 | diff --git a/buildSrc/linux.gradle b/buildSrc/linux.gradle 11 | index 00a3bca..2295566 100644 12 | --- a/buildSrc/linux.gradle 13 | +++ b/buildSrc/linux.gradle 14 | @@ -231,7 +231,7 @@ FileTree ft_gtk = fileTree("${project(":graphics").projectDir}/src/main/native-g 15 | LINUX.glass.glass = [:] 16 | LINUX.glass.glass.nativeSource = ft_gtk_launcher.getFiles() 17 | LINUX.glass.glass.compiler = compiler 18 | -LINUX.glass.glass.ccFlags = [cppFlags, "-Werror"].flatten() 19 | +LINUX.glass.glass.ccFlags = [cppFlags].flatten() 20 | LINUX.glass.glass.linker = linker 21 | LINUX.glass.glass.linkFlags = IS_STATIC_BUILD? linkFlags : [linkFlags, "-lX11", "-ldl"].flatten() 22 | LINUX.glass.glass.lib = "glass" 23 | @@ -241,7 +241,7 @@ LINUX.glass.glassgtk2.nativeSource = ft_gtk.getFiles() 24 | LINUX.glass.glassgtk2.compiler = compiler 25 | LINUX.glass.glassgtk2.ccFlags = IS_STATIC_BUILD ? 26 | ["-fno-threadsafe-statics", cppFlags, gtk2CCFlags].flatten() : 27 | - [cppFlags, gtk2CCFlags, "-Werror"].flatten() 28 | + [cppFlags, gtk2CCFlags].flatten() 29 | LINUX.glass.glassgtk2.linker = linker 30 | LINUX.glass.glassgtk2.linkFlags = IS_STATIC_BUILD ? linkFlags : [linkFlags, gtk2LinkFlags].flatten() 31 | LINUX.glass.glassgtk2.lib = "glassgtk2" 32 | @@ -251,7 +251,7 @@ LINUX.glass.glassgtk3.nativeSource = ft_gtk.getFiles() 33 | LINUX.glass.glassgtk3.compiler = compiler 34 | LINUX.glass.glassgtk3.ccFlags = IS_STATIC_BUILD ? 35 | ["-fno-threadsafe-statics", cppFlags, gtk3CCFlags].flatten() : 36 | - [cppFlags, gtk3CCFlags, "-Werror"].flatten() 37 | + [cppFlags, gtk3CCFlags].flatten() 38 | LINUX.glass.glassgtk3.linker = linker 39 | LINUX.glass.glassgtk3.linkFlags = IS_STATIC_BUILD ? linkFlags : [linkFlags, gtk3LinkFlags].flatten() 40 | LINUX.glass.glassgtk3.lib = "glassgtk3" 41 | -- 42 | 2.34.0 43 | 44 | -------------------------------------------------------------------------------- /dev-java/openjfx/files/11/wno-error.patch: -------------------------------------------------------------------------------- 1 | From 737acaff3658663de61813ba877379841e76631e Mon Sep 17 00:00:00 2001 2 | From: Georgy Yakovlev 3 | Date: Thu, 19 Mar 2020 09:50:22 -0700 4 | Subject: [PATCH] remove werror 5 | 6 | --- 7 | buildSrc/linux.gradle | 6 +++--- 8 | 1 file changed, 3 insertions(+), 3 deletions(-) 9 | 10 | diff --git a/buildSrc/linux.gradle b/buildSrc/linux.gradle 11 | index 7a7cbc7..6955155 100644 12 | --- a/buildSrc/linux.gradle 13 | +++ b/buildSrc/linux.gradle 14 | @@ -223,7 +223,7 @@ FileTree ft_gtk = fileTree("${project(":graphics").projectDir}/src/main/native-g 15 | LINUX.glass.glass = [:] 16 | LINUX.glass.glass.nativeSource = ft_gtk_launcher.getFiles() 17 | LINUX.glass.glass.compiler = compiler 18 | -LINUX.glass.glass.ccFlags = [ccFlags, gtk2CCFlags, "-Werror"].flatten() 19 | +LINUX.glass.glass.ccFlags = [ccFlags, gtk2CCFlags].flatten() 20 | LINUX.glass.glass.linker = linker 21 | LINUX.glass.glass.linkFlags = [linkFlags, "-lX11", "-ldl" ].flatten() 22 | LINUX.glass.glass.lib = "glass" 23 | @@ -231,7 +231,7 @@ LINUX.glass.glass.lib = "glass" 24 | LINUX.glass.glassgtk2 = [:] 25 | LINUX.glass.glassgtk2.nativeSource = ft_gtk.getFiles() 26 | LINUX.glass.glassgtk2.compiler = compiler 27 | -LINUX.glass.glassgtk2.ccFlags = [ccFlags, gtk2CCFlags, "-Werror"].flatten() 28 | +LINUX.glass.glassgtk2.ccFlags = [ccFlags, gtk2CCFlags].flatten() 29 | LINUX.glass.glassgtk2.linker = linker 30 | LINUX.glass.glassgtk2.linkFlags = [linkFlags, gtk2LinkFlags ].flatten() 31 | LINUX.glass.glassgtk2.lib = "glassgtk2" 32 | @@ -239,7 +239,7 @@ LINUX.glass.glassgtk2.lib = "glassgtk2" 33 | LINUX.glass.glassgtk3 = [:] 34 | LINUX.glass.glassgtk3.nativeSource = ft_gtk.getFiles() 35 | LINUX.glass.glassgtk3.compiler = compiler 36 | -LINUX.glass.glassgtk3.ccFlags = [ccFlags, gtk3CCFlags, "-Werror"].flatten() 37 | +LINUX.glass.glassgtk3.ccFlags = [ccFlags, gtk3CCFlags].flatten() 38 | LINUX.glass.glassgtk3.linker = linker 39 | LINUX.glass.glassgtk3.linkFlags = [linkFlags, gtk3LinkFlags ].flatten() 40 | LINUX.glass.glassgtk3.lib = "glassgtk3" 41 | -- 42 | 2.24.1 43 | 44 | -------------------------------------------------------------------------------- /dev-java/openjfx/metadata.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | gyakovlev@gentoo.org 6 | Georgy Yakovlev 7 | 8 | 9 | java@gentoo.org 10 | 11 | 12 | OpenJFX is an open source, next generation client application platform for desktop, 13 | mobile and embedded systems built on Java. 14 | 15 | 16 | Compile media module, based on gstreamer-minimal (does not pull gstreamer) 17 | Install JavaFX sources 18 | 19 | 20 | -------------------------------------------------------------------------------- /dev-java/openjfx/openjfx-11.0.11_p1.ebuild: -------------------------------------------------------------------------------- 1 | # Copyright 2019-2023 Gentoo Authors 2 | # Distributed under the terms of the GNU General Public License v2 3 | 4 | EAPI=8 5 | 6 | MY_PV="${PV/_p/+}" 7 | SLOT="${MY_PV%%[.+]*}" 8 | EGRADLE_BUNDLED_VER="4.10.3" 9 | 10 | inherit flag-o-matic gradle java-pkg-2 multiprocessing 11 | 12 | DESCRIPTION="Java OpenJFX client application platform" 13 | HOMEPAGE="https://openjfx.io" 14 | 15 | SRC_URI=" 16 | https://hg.openjdk.java.net/${PN}/${SLOT}-dev/rt/archive/${MY_PV}.tar.bz2 -> ${P}.tar.bz2 17 | https://repo.maven.apache.org/maven2/org/apache/lucene/lucene-sandbox/7.1.0/lucene-sandbox-7.1.0.jar 18 | https://repo.maven.apache.org/maven2/org/apache/lucene/lucene-grouping/7.1.0/lucene-grouping-7.1.0.jar 19 | https://repo.maven.apache.org/maven2/org/apache/lucene/lucene-queryparser/7.1.0/lucene-queryparser-7.1.0.jar 20 | https://repo.maven.apache.org/maven2/org/apache/lucene/lucene-queries/7.1.0/lucene-queries-7.1.0.jar 21 | https://repo.maven.apache.org/maven2/org/apache/lucene/lucene-core/7.1.0/lucene-core-7.1.0.jar 22 | https://repo.maven.apache.org/maven2/org/antlr/gunit/3.5.2/gunit-3.5.2.jar 23 | https://repo1.maven.org/maven2/org/antlr/antlr4/4.7.2/antlr4-4.7.2-complete.jar 24 | https://repo.maven.apache.org/maven2/org/antlr/ST4/4.0.8/ST4-4.0.8.jar 25 | $(gradle-src_uri) 26 | " 27 | 28 | LICENSE="GPL-2-with-classpath-exception" 29 | KEYWORDS="-* ~amd64 ~ppc64" 30 | 31 | IUSE="cpu_flags_x86_sse2 debug doc source +media" 32 | 33 | RDEPEND=" 34 | dev-java/swt:4.10[cairo,opengl] 35 | dev-libs/atk 36 | dev-libs/glib:2 37 | dev-libs/libxml2:2 38 | dev-libs/libxslt 39 | media-libs/freetype:2 40 | media-libs/fontconfig:1.0 41 | media-video/ffmpeg:0= 42 | x11-libs/gdk-pixbuf 43 | x11-libs/gtk+:2 44 | x11-libs/gtk+:3 45 | x11-libs/cairo[glib] 46 | x11-libs/libX11 47 | x11-libs/libXtst 48 | x11-libs/libXxf86vm 49 | x11-libs/pango 50 | virtual/jpeg 51 | virtual/opengl 52 | doc? ( dev-java/openjdk:${SLOT}[doc] ) 53 | !doc? ( 54 | || ( 55 | dev-java/openjdk-bin:${SLOT} 56 | dev-java/openjdk:${SLOT} 57 | ) 58 | ) 59 | " 60 | 61 | DEPEND="${RDEPEND} 62 | app-arch/unzip 63 | app-arch/zip 64 | >=dev-java/ant-core-1.10.7-r1:0 65 | dev-java/antlr:0 66 | dev-java/antlr:3.5 67 | dev-java/hamcrest-core:0 68 | dev-java/stringtemplate:0 69 | virtual/ttf-fonts 70 | virtual/pkgconfig 71 | " 72 | 73 | REQUIRED_USE="amd64? ( cpu_flags_x86_sse2 )" 74 | 75 | PATCHES=( 76 | "${FILESDIR}"/11/disable-buildSrc-tests.patch 77 | "${FILESDIR}"/11/glibc-compatibility.patch 78 | "${FILESDIR}"/11/respect-user-cflags-11.0.11.patch 79 | "${FILESDIR}"/11/use-system-swt-jar.patch 80 | "${FILESDIR}"/11/wno-error-11.0.11.patch 81 | "${FILESDIR}"/11/don-t-force-msse-11.0.11.patch 82 | "${FILESDIR}"/11/disable-architecture-verification.patch 83 | "${FILESDIR}"/11/gstreamer-CVE-2021-3522.patch 84 | ) 85 | 86 | S="${WORKDIR}/rt-${MY_PV}" 87 | 88 | # Fails to build if gradle is invoked with --parallel. 89 | EGRADLE_PARALLEL=false 90 | 91 | pkg_setup() { 92 | JAVA_PKG_WANT_BUILD_VM="openjdk-${SLOT} openjdk-bin-${SLOT}" 93 | JAVA_PKG_WANT_SOURCE="${SLOT}" 94 | JAVA_PKG_WANT_TARGET="${SLOT}" 95 | 96 | # The nastiness below is necessary while the gentoo-vm USE flag is 97 | # masked. First we call java-pkg-2_pkg_setup if it looks like the 98 | # flag was unmasked against one of the possible build VMs. If not, 99 | # we try finding one of them in their expected locations. This would 100 | # have been slightly less messy if openjdk-bin had been installed to 101 | # /opt/${PN}-${SLOT} or if there was a mechanism to install a VM env 102 | # file but disable it so that it would not normally be selectable. 103 | 104 | local vm 105 | for vm in ${JAVA_PKG_WANT_BUILD_VM}; do 106 | if [[ -d ${EPREFIX}/usr/lib/jvm/${vm} ]]; then 107 | java-pkg-2_pkg_setup 108 | return 109 | fi 110 | done 111 | 112 | if has_version --host-root dev-java/openjdk:${SLOT}; then 113 | export JAVA_HOME=${EPREFIX}/usr/$(get_libdir)/openjdk-${SLOT} 114 | export JDK_HOME="${JAVA_HOME}" 115 | export ANT_RESPECT_JAVA_HOME=true 116 | 117 | else 118 | if [[ ${MERGE_TYPE} != "binary" ]]; then 119 | JDK_HOME=$(best_version --host-root dev-java/openjdk-bin:${SLOT}) 120 | [[ -n ${JDK_HOME} ]] || die "Build VM not found!" 121 | JDK_HOME=${JDK_HOME#*/} 122 | JDK_HOME=${EPREFIX}/opt/${JDK_HOME%-r*} 123 | export JDK_HOME 124 | export JAVA_HOME="${JDK_HOME}" 125 | export ANT_RESPECT_JAVA_HOME=true 126 | fi 127 | fi 128 | } 129 | 130 | src_unpack() { 131 | unpack "${P}.tar.bz2" 132 | gradle_src_unpack 133 | 134 | mkdir "${T}/jars" || die 135 | 136 | local line jar 137 | for line in ${SRC_URI}; do 138 | if [[ ${line} =~ (http|https)://[a-zA-Z0-9.-_]*/(maven2|m2|eclipse)/(.*[.]jar)$ ]]; then 139 | jar=$(basename "${BASH_REMATCH[-1]}") 140 | cp -v "${DISTDIR}/${jar}" "${T}/jars/" || die 141 | fi 142 | done 143 | } 144 | 145 | src_prepare() { 146 | default 147 | 148 | local d="${T}/jars" 149 | 150 | java-pkg_jar-from --build-only --with-dependencies --into "${d}" antlr 151 | java-pkg_jar-from --build-only --with-dependencies --into "${d}" antlr-3.5 152 | java-pkg_jar-from --build-only --with-dependencies --into "${d}" stringtemplate 153 | java-pkg_jar-from --build-only --with-dependencies --into "${d}" hamcrest-core 154 | 155 | sed -i "s#__gentoo_swt_jar__#$(java-pkg_getjars swt-4.10)#" build.gradle || die 156 | } 157 | 158 | src_configure() { 159 | append-flags -Wno-error -fcommon 160 | 161 | #FIXME: still calls gcc, pkg-config etc by name without chost prefix 162 | #FIXME: should we enable webkit? doubt so 163 | 164 | # build is very sensetive to doc presense, take extra steps 165 | if use doc; then 166 | local jdk_doc 167 | if has_version --host-root dev-java/openjdk:${SLOT}[doc]; then 168 | jdk_doc="${EPREFIX}/usr/share/doc/openjdk-${SLOT}/html/api" 169 | fi 170 | [[ -r ${jdk_doc}/element-list ]] || die "JDK Docs not found, terminating build early" 171 | fi 172 | 173 | cat <<- _EOF_ > gradle.properties 174 | COMPILE_TARGETS = linux 175 | COMPILE_WEBKIT = false 176 | COMPILE_MEDIA = $(usex media true false) 177 | JDK_DOCS = https://docs.oracle.com/en/java/javase/${SLOT}/docs/api 178 | JDK_DOCS_LINK = $(usex doc "${jdk_doc}" "") 179 | BUILD_LIBAV_STUBS = false 180 | GRADLE_VERSION_CHECK = false 181 | LINT = none 182 | CONF = $(usex debug DebugNative Release) 183 | NUM_COMPILE_THREADS = $(makeopts_jobs) 184 | JFX_DEPS_URL = ${T}/jars 185 | COMPANY_NAME = "Gentoo" 186 | _EOF_ 187 | } 188 | 189 | src_compile() { 190 | # FIXME: build.gradle believes $ANT_HOME/bin/ant should exist 191 | unset ANT_HOME 192 | 193 | egradle zips $(usex doc "" "--exclude-task javadoc") 194 | } 195 | 196 | src_install() { 197 | if ! use source ; then 198 | rm -v build/sdk/lib/src.zip || die 199 | fi 200 | 201 | insinto "/usr/$(get_libdir)/${PN}-${SLOT}" 202 | doins -r build/sdk/. 203 | doins build/javafx-exports.zip 204 | 205 | if use doc; then 206 | docinto html 207 | dodoc -r build/javadoc/. 208 | dosym ../../../usr/share/doc/"${PF}" /usr/share/doc/"${PN}-${SLOT}" 209 | fi 210 | } 211 | -------------------------------------------------------------------------------- /dev-util/ghidra/Manifest: -------------------------------------------------------------------------------- 1 | DIST AXMLPrinter2.jar 24552 BLAKE2B 3ff09da948c2962919927ad35f8d38a13391c763a83962f8fdce90ec4720430b00be891f68fc149f62180ddf5f5e818af4e6b6a153d1a55e871f181e930d2b7b SHA512 c1168ec913f1fbb0675915d4fd865ec9a8e8573f6c8aedcb6e68166f61f11aeaececc7548d54d78134843c0102c57d6350973f6d3027d0ffdae52a5c57a7f601 2 | DIST Ghidra_10.2.2_build.tar.gz 65081499 BLAKE2B 77c95f4df445dc7ff4ba2409173cd27f50629f5367a22ffd4033a2531c689a4727a847459f8a2043ef87ef844a58eb0cc84fa96012c163a7ce7c506a752c22b5 SHA512 443cc6a3b5883c612d81883399dc32147245a4a7b501d4ddd1a559874e22d6ff074530d011f1994892a9f2c05eed02304f2accc61b017d7f01d1bf75c57aea0a 3 | DIST PyDev-6.3.1.zip 24756333 BLAKE2B e9a942e0ff90b9eafbd1fa0df5429f2ff227ed140b7352a1003be04ffbc043e17bf19bd622d7fe9b958286a75ff4897c03088c1627ee62ea7b6e832752cb427e SHA512 411ed78d1057f5e9780e44169935fb8a0da17e97ce26e9a7a9fa9a251d4d3c1118e9b47dd9f7af03bde1f47180bde0d456039b65687f600026a148055311ecfa 4 | DIST cdt-8.6.0.zip 76639241 BLAKE2B 32c724b1f6ff43132f09c544bac8b35ed3f4f5866c844810abba3a52f82a3585ae7a57430fcf5603afecbeec1f46461a831339e442ca628b77f78c319bd9fc26 SHA512 2b8bb498146aa29995e807c5b4e9d5dab0f6afe89a5ce256978b7b2c478677a0cb5a0f15913a32bd99cb7b4bb31230521f70b9c26cdef1cb983dfcea599737c0 5 | DIST dex-tools-2.0.zip 2362460 BLAKE2B 464f2a143f1c8720eddd4d1c7db5a6f681db1091518d915b0d7807c12d021c8a734d8980bccfd417bc60297647b33ed0b7cc1e004716804bb9e25ee99f29f8ad SHA512 c4a6c72ea09b58a44fcb8918cfada600467f10f99a02b53d2436ac68295e73c8daf9ba0a8bc7160ba1e28e87f032ee034435ebe40af35b6e2fe9fa4607581358 6 | DIST ghidra-dependencies-20221104.tar.gz 85678075 BLAKE2B a298b3a52137c8077f90b5d7cddba43a6437ef7906aae130158691c032c31c57be55f9f072d6a44b351b47f8fe04f397dabb24c1bd976593294a68b5d2a4fece SHA512 7dcbc5bdba0fce2e0ae0a6f41d1fbd88cb6080a97e5404f5bfce393e07165f15f0549d3254b446f5ab5352484dd32bdf54ea92f50f96e572520b10672519aeb9 7 | DIST gradle-7.3-bin.zip 115763517 BLAKE2B 80c0368582acdbae5a959386ce679c63f6bee349810a6ddd39981192349cefafabfa9e498891a53fc423a86b6a53fb66eac4aace968990707d623c037b27cee2 SHA512 f5703de1305b013ad7fcc1a7d56922198e8e597e13d2aeb89cec60631db51b73466a1ce382d5e828ed065fbd8a1971f628b0e4eb3348f01b7a71fdc6184e4a56 8 | DIST hfsexplorer-0_21-bin.zip 1473278 BLAKE2B e9d2a3fae4da8046a17ce5e6828b4d1ff27da6384aac4be3864fe2c16f83bb95cb728eaeec9a42c3e1febaef98ba9357bfc3744b4950deb4b783d36e723d6cc0 SHA512 b85b4316115695acc78cc7c675c673058c05a238451562be0c6a48b2d11a28e5645a42cb62cdf063be015369df26201dfab6cf2e60f39e6468d1d53b23f94415 9 | DIST yajsw-stable-13.05.zip 27823454 BLAKE2B e43e6a97e356be40e776568deafeeb19e3e8b462a20e53a7456f3ce61364d3c4fe08d48f7710e6f570641618a6c75b75d98427d04d25133cdf7aa3c9f0aeee8b SHA512 ba6421fcc9d5fd5edf0b5f299914a54a8e3d8cbe79b83cf9b1a4a1828eb26f32f8d04299235233581a848e274665c6d2da9b8394be1d7a824e443efd2508413c 10 | -------------------------------------------------------------------------------- /dev-util/ghidra/files/repos.gradle: -------------------------------------------------------------------------------- 1 | allprojects { 2 | repositories { 3 | flatDir name:'flat', dirs:["S_DIR/.gradle/flatRepo"] 4 | if ('allow' == System.properties['build.network_access']) { 5 | mavenCentral() 6 | jcenter() 7 | } else { 8 | maven { 9 | url "S_DIR/dependencies" 10 | } 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /dev-util/ghidra/ghidra-10.2.2-r2.ebuild: -------------------------------------------------------------------------------- 1 | # Copyright 1999-2023 Gentoo Authors 2 | # Distributed under the terms of the GNU General Public License v2 3 | 4 | EAPI=8 5 | 6 | inherit gradle java-pkg-2 desktop 7 | 8 | EGRADLE_BUNDLED_VER="7.3" 9 | 10 | GRADLE_DEP_VER="20221104" 11 | 12 | DESCRIPTION="A software reverse engineering framework" 13 | HOMEPAGE="https://ghidra-sre.org/" 14 | SRC_URI=" 15 | https://github.com/NationalSecurityAgency/${PN}/archive/Ghidra_${PV}_build.tar.gz 16 | https://dev.pentoo.ch/~blshkv/distfiles/${PN}-dependencies-${GRADLE_DEP_VER}.tar.gz 17 | https://github.com/pxb1988/dex2jar/releases/download/2.0/dex-tools-2.0.zip 18 | https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/android4me/AXMLPrinter2.jar 19 | https://sourceforge.net/projects/catacombae/files/HFSExplorer/0.21/hfsexplorer-0_21-bin.zip 20 | mirror://sourceforge/yajsw/yajsw/yajsw-stable-13.05.zip 21 | https://dev.pentoo.ch/~blshkv/distfiles/cdt-8.6.0.zip 22 | mirror://sourceforge/project/pydev/pydev/PyDev%206.3.1/PyDev%206.3.1.zip -> PyDev-6.3.1.zip 23 | $(gradle-src_uri) 24 | " 25 | # run: "pentoo/scripts/gradle_dependencies.py buildGhidra" from "${S}" directory to generate dependencies 26 | # https://www.eclipse.org/downloads/download.php?r=1&protocol=https&file=/tools/cdt/releases/8.6/cdt-8.6.0.zip 27 | 28 | # https://sourceforge.net/projects/yajsw/files/yajsw/yajsw-stable-13.05/yajsw-stable-13.05.zip/download 29 | 30 | LICENSE="Apache-2.0" 31 | SLOT="0" 32 | KEYWORDS="amd64" 33 | 34 | #FIXME: 35 | # * QA Notice: Files built without respecting LDFLAGS have been detected 36 | # * Please include the following list of files in your report: 37 | # * /usr/share/ghidra/GPL/DemanglerGnu/os/linux_x86_64/demangler_gnu_v2_24 38 | # * /usr/share/ghidra/GPL/DemanglerGnu/os/linux_x86_64/demangler_gnu_v2_33_1 39 | # * /usr/share/ghidra/Ghidra/Features/Decompiler/os/linux_x86_64/decompile 40 | # * /usr/share/ghidra/Ghidra/Features/Decompiler/os/linux_x86_64/sleigh 41 | 42 | #java-pkg-2 sets java based on RDEPEND so the java slot in rdepend is used to build 43 | RDEPEND="virtual/jre:17" 44 | DEPEND=" 45 | virtual/jdk:17 46 | sys-devel/bison 47 | dev-java/jflex 48 | app-arch/unzip 49 | " 50 | 51 | S="${WORKDIR}/ghidra-Ghidra_${PV}_build" 52 | 53 | src_unpack() { 54 | # https://github.com/NationalSecurityAgency/ghidra/blob/master/DevGuide.md 55 | unpack ${A} 56 | mkdir -p "${S}/.gradle/flatRepo" || die "(1) mkdir failed" 57 | cd "${S}/.gradle" 58 | 59 | unpack dex-tools-2.0.zip 60 | cp dex2jar-2.0/lib/dex-*.jar ./flatRepo || die "(3) cp failed" 61 | 62 | cp "${DISTDIR}/AXMLPrinter2.jar" ./flatRepo || die "(4) cp failed" 63 | 64 | unpack hfsexplorer-0_21-bin.zip 65 | cp lib/*.jar ./flatRepo || die "(5) cp failed" 66 | 67 | mkdir -p "${WORKDIR}"/ghidra.bin/Ghidra/Features/GhidraServer/ || die "(6) mkdir failed" 68 | # cp "${DISTDIR}"/yajsw-stable-12.12.zip "${WORKDIR}"/ghidra.bin/Ghidra/Features/GhidraServer/ || die "(7) cp failed" 69 | cp "${DISTDIR}"/yajsw-stable-13.05.zip "${WORKDIR}"/ghidra.bin/Ghidra/Features/GhidraServer/ || die "(7) cp failed" 70 | 71 | mkdir -p "${WORKDIR}"/ghidra.bin/GhidraBuild/EclipsePlugins/GhidraDev/buildDependencies/ || die "(8) mkdir failed" 72 | cp "${DISTDIR}"/PyDev-6.3.1.zip "${WORKDIR}/ghidra.bin/GhidraBuild/EclipsePlugins/GhidraDev/buildDependencies/PyDev 6.3.1.zip" || die "(9) cp failed" 73 | cp "${DISTDIR}"/cdt-8.6.0.zip "${WORKDIR}"/ghidra.bin/GhidraBuild/EclipsePlugins/GhidraDev/buildDependencies/ || die "(10) cp failed" 74 | 75 | cd "${S}" 76 | mv ../dependencies . 77 | } 78 | 79 | src_prepare() { 80 | default 81 | local repos_gradle="${EGRADLE_USER_HOME}/init.d/repos.gradle" 82 | install -D "${FILESDIR}"/repos.gradle "${repos_gradle}" || die 83 | sed -i "s|S_DIR|${S}|g" "${repos_gradle}" || die 84 | 85 | #remove build date so we can unpack dist.zip later 86 | sed -i "s|_\${rootProject.BUILD_DATE_SHORT}||g" gradle/root/distribution.gradle || die "(13) sed failed" 87 | 88 | #10.0 workaround 89 | ln -s ../.gradle/flatRepo ./dependencies/flatRepo 90 | } 91 | 92 | src_compile() { 93 | egradle prepDev -x check -x test 94 | egradle buildGhidra -x check -x test --parallel 95 | 96 | #build without eclipse plugin 97 | # ${GRADLE} yajswDevUnpack -x check -x test || die 98 | # ${GRADLE} buildNatives_linux64 -x check -x test || die 99 | # ${GRADLE} sleighCompile -x check -x test || die 100 | } 101 | 102 | src_install() { 103 | #FIXME: it is easier to unpack existing archive for now 104 | dodir /usr/share 105 | unzip build/dist/ghidra_"${PV}"_DEV_linux_x86_64.zip -d "${ED}"/usr/share/ || die "unable to unpack dist zip" 106 | mv "${ED}"/usr/share/ghidra_"${PV}"_DEV "${ED}"/usr/share/ghidra || die "mv failed" 107 | # remove zip files which aren't needed at runtime 108 | find "${ED}"/usr/share/ghidra -type f -name '*.zip' -exec rm -f {} + 109 | 110 | #fixme: add doc flag 111 | rm -r "${ED}"/usr/share/ghidra/docs/ || die "rm failed" 112 | dosym "${EPREFIX}"/usr/share/ghidra/ghidraRun usr/bin/ghidra 113 | 114 | # icon 115 | doicon GhidraDocs/GhidraClass/Beginner/Images/GhidraLogo64.png 116 | # desktop entry 117 | make_desktop_entry ${PN} "Ghidra" /usr/share/pixmaps/GhidraLogo64.png "Utility" 118 | } 119 | -------------------------------------------------------------------------------- /dev-util/ghidra/metadata.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Florian Schmaus 6 | flow@gentoo.org 7 | 8 | 9 | -------------------------------------------------------------------------------- /eclass/clojure.eclass: -------------------------------------------------------------------------------- 1 | # Copyright 1999-2009 Gentoo Foundation 2 | # Distributed under the terms of the GNU General Public License v2 3 | # $Id$ 4 | 5 | # @ECLASS: clojure.eclass 6 | # @MAINTAINER: 7 | # Daniel Solano Gómez 8 | # @BLURB: Eclass for Clojure projects 9 | # @DESCRIPTION: 10 | # This eclass extends the functionality of Java eclasses to support Clojure 11 | # projects. 12 | # 13 | # @EXAMPLE: 14 | # The following example uses Clojure 1.0.0 and includes a compatible version of 15 | # clojure-contrib. 16 | # 17 | # @CODE 18 | # CLOJURE_VERSION="1.0.0" 19 | # WANT_CONTRIB="yes" 20 | # import java-pkg-2 java-ant-2 clojure 21 | # @CODE 22 | 23 | inherit java-pkg-2 24 | 25 | local ECLOJURE_CDEPEND="" 26 | local ECLOJURE_DEPEND="" 27 | local ECLOJURE_RDEPEND="" 28 | 29 | # @ECLASS-VARIABLE: CLOJURE_VERSION 30 | # @DESCRIPTION: 31 | # Sets the version of Clojure to use. This variable should be set before the 32 | # eclass is imported. 33 | CLOJURE_VERSION=${CLOJURE_VERSION:-1.0} 34 | 35 | # @ECLASS-VARIABLE: WANT_CLOJURE_CONTRIB 36 | # @DESCRIPTION: 37 | # If set, this variable will cause the eclass to depend on a suitable version of 38 | # clojure-contrib. By default, this value is unset. This variable should be set 39 | # before the eclass is imported. 40 | WANT_CLOJURE_CONTRIB=${WANT_CLOJURE_CONTRIB:-} 41 | 42 | # @ECLASS-VARIABLE: CLOJURE_CONTRIB_VERSION 43 | # @DESCRIPTION: 44 | # Sets the version of Clojure-conrib to use. This variable should be set before 45 | # the eclass is imported. This variable has no effect if WANT_CLOJURE_CONTRIB 46 | # is not set. By default, it will use the latest version compatible with 47 | # CLOJURE_VERSION. 48 | CLOJURE_CONTRIB_VERSION=${CLOJURE_CONTRIB_VERSION:-${CLOJURE_VERSION}} 49 | 50 | # @ECLASS-VARIABLE: CLOJURE_BOOTSTRAP_MODE 51 | # @DESCRIPTION: 52 | # If set, the eclass will not pull in any Clojure dependencies or export the 53 | # compile function. This should be used only for the ebuilds that build 54 | # Clojure itself. 55 | [[ -n "${CLOJURE_BOOTSTRAP_MODE}" ]] && CLOJURE_VERSION="bootstrap" 56 | 57 | # Check and normalise Clojure version 58 | case "${CLOJURE_VERSION}" in 59 | 1.0*) 60 | CLOJURE_SLOT="0" 61 | [[ -n "${JAVA_PKG_DEBUG}" && "${EBUILD_PHASE}" == "setup" ]] \ 62 | && einfo "Building with Clojure 1.0" 63 | ;; 64 | 1.1*) 65 | CLOJURE_SLOT="1.1" 66 | [[ -n "${JAVA_PKG_DEBUG}" && "${EBUILD_PHASE}" == "setup" ]] \ 67 | && einfo "Building with Clojure 1.1" 68 | ;; 69 | bootstrap) 70 | [[ -n "${JAVA_PKG_DEBUG}" && "${EBUILD_PHASE}" == "setup" ]] \ 71 | && einfo "Bootstrapping Clojure" 72 | ;; 73 | *) 74 | die "Clojure version ${CLOJURE_VERSION} is not currently supported by this eclass" 75 | ;; 76 | esac 77 | 78 | CLOJURE_ATOM="clojure" 79 | CLOJURE_CONTRIB_ATOM="clojure-contrib" 80 | if [[ "${CLOJURE_SLOT}" != "0" ]]; then 81 | CLOJURE_ATOM="${CLOJURE_ATOM}-${CLOJURE_SLOT}" 82 | CLOJURE_CONTRIB_ATOM="${CLOJURE_CONTRIB_ATOM}-${CLOJURE_SLOT}" 83 | fi 84 | 85 | 86 | # set up Java depends 87 | ECLOJURE_DEPEND="${ECLOJURE_DEPEND} >=virtual/jdk-1.5" 88 | ECLOJURE_RDEPEND="${ECLOJURE_RDEPEND} >=virtual/jre-1.5" 89 | 90 | # set up Clojure depends 91 | if [[ "${CLOJURE_VERSION}" != "bootstrap" ]]; then 92 | ECLOJURE_CDEPEND="${ECLOJURE_CDEPEND} dev-lang/clojure:${CLOJURE_SLOT}" 93 | if [[ -n ${WANT_CLOJURE_CONTRIB} ]]; then 94 | ECLOJURE_CDEPEND="${ECLOJURE_CDEPEND} \ 95 | dev-lang/clojure-contrib:${CLOJURE_SLOT}" 96 | fi 97 | fi 98 | 99 | # finalise depends 100 | DEPEND="${ECLOJURE_CDEPEND} ${ECLOJURE_DEPEND}" 101 | RDEPEND="${ECLOJURE_CDEPEND} ${ECLOJURE_RDEPEND}" 102 | 103 | if [[ "${CLOJURE_VERSION}" != "bootstrap" ]]; then 104 | EXPORT_FUNCTIONS src_compile 105 | fi 106 | 107 | # @FUNCTION: clojure_src_compile 108 | # @USAGE: 109 | # @DESCRIPTION: 110 | # A thin wrapper around java-pkg-2_src_compile that adds ‘clojure.jar’ and 111 | # ‘clojure-contrib.jar’ properties to EANT_EXTRA_ARGS. 112 | clojure_src_compile() { 113 | local ant_args="-Dclojure.jar=$(java-pkg_getjars ${CLOJURE_ATOM})" 114 | if [[ "${DEPEND}" == *dev-lang/clojure-contrib* ]] ; then 115 | ant_args="${ant_args} -Dclojure-contrib.jar=$(java-pkg_getjars ${CLOJURE_CONTRIB_ATOM})" 116 | fi 117 | EANT_EXTRA_ARGS="${EANT_EXTRA_ARGS} ${ant_args}" 118 | java-pkg-2_src_compile 119 | } 120 | 121 | # @FUNCTION: clojure_dosrc 122 | # @USAGE: [--nojava] [--zip-name NAME] ... 123 | # @DESCRIPTION: 124 | # Installs a zip file containing the source for a package so that it can be used 125 | # in IDEs like Eclipse and NetBeans. It will recursively search for source 126 | # files below each of the given directories and add them to the zip file. Each 127 | # directory DIR is the base directory for a source tree. 128 | # 129 | # By default, the zip file’s name is ‘${PN}-src.zip’. This can be changed by 130 | # using the ‘--zip-name NAME’ argument. The default is also to zip up both Java 131 | # and Clojure source files, i.e. ‘*.clj’ and ‘*.java’ files. The packaging of 132 | # Java source files can be disabled through the use of the ‘--nojava’ argument. 133 | clojure_dosrc() { 134 | debug-print-function ${FUNCNAME} $* 135 | 136 | java-pkg_check-phase install 137 | 138 | [[ ${#} -lt 1 ]] && die "${FUNCNAME}: At least one argument needed" 139 | 140 | local zip_name="${PN}-src.zip" 141 | local javaincl="-i *.java" 142 | while [[ ${1} == --* ]]; do 143 | if [[ ${1} == "--zip-name" ]]; then 144 | [[ ${#} -lt 2 ]] && die "${FUNCNAME}: --zip-name requires an argument" 145 | zip_name="${2}" 146 | [[ ${zip_name} != *.zip ]] \ 147 | && die "${FUNCNAME}: '${zip_name}' is not a valid zip file name (must end with .zip)" 148 | [[ ${zip_name} == */* ]] \ 149 | && die "${FUNCNAME}: '${zip_name}' is not a valid zip file name (must not contain '/')" 150 | shift 151 | elif [[ ${1} == "--nojava" ]]; then 152 | javaincl="" 153 | else 154 | die "${FUNCNAME}: Argument '${1}' not recognised" 155 | fi 156 | shift 157 | done 158 | 159 | if ! [[ ${DEPEND} = *app-arch/zip* ]]; then 160 | local msg="${FUNCNAME}: Called without app-arch/zip in DEPEND" 161 | java-pkg_announce-qa-violation ${msg} 162 | fi 163 | 164 | java-pkg_init_paths_ 165 | 166 | local zip_path="${T}/${zip_name}" 167 | 168 | local dir 169 | for dir in "${@}"; do 170 | [[ ! -d ${dir} ]] && die "${FUNCNAME}: '${dir}' is not a directory" 171 | pushd ${dir} > /dev/null || die "${FUNCNAME}: Unable to change directories to '${dir}'" 172 | zip -q -r ${zip_path} . ${javaincl} -i '*.clj' 173 | local result=$? 174 | if [[ ${result} != 0 ]]; then 175 | die "${FUNCNAME}: Failed to zip ${dir}" 176 | fi 177 | popd >/dev/null 178 | done 179 | 180 | # Install the zip 181 | INSDESTTREE=${JAVA_PKG_SOURCESPATH} \ 182 | doins ${zip_path} || die "Failed to install source" 183 | 184 | JAVA_SOURCES="${JAVA_PKG_SOURCESPATH}/${zip_name}" 185 | java-pkg_do_write_ 186 | } 187 | -------------------------------------------------------------------------------- /eclass/excalibur-multi.eclass: -------------------------------------------------------------------------------- 1 | # Copyright 1999-2004 Gentoo Foundation 2 | # Distributed under the terms of the GNU General Public License v2 3 | # $Id$ 4 | # 5 | # Author: Petteri Räty 6 | # Maintained by the java project 7 | # 8 | # The excalibur-multi eclass is a helper for stuff from http://excalibur.apache.org/ 9 | 10 | inherit excalibur 11 | 12 | for module in ${EXCALIBUR_MODULES}; do 13 | if [[ "${EXCALIBUR_MODULE_USES_PV}" == "false" ]]; then 14 | SRC_URI="${SRC_URI} 15 | mirror://apache/excalibur/${PN}/source/${module}-${PV}-src.tar.gz" 16 | else 17 | SRC_URI="${SRC_URI} 18 | mirror://apache/excalibur/${PN}/source/${module}-src.tar.gz" 19 | fi 20 | done 21 | 22 | EXPORT_FUNCTIONS src_unpack src_compile src_test src_install 23 | 24 | excalibur-multi_src_unpack() { 25 | unpack ${A} 26 | if [[ -n "${@}" ]];then 27 | for i in ${@};do 28 | epatch ${i} 29 | done 30 | fi 31 | 32 | for module in ${EXCALIBUR_MODULES}; do 33 | cd ${module}* || die 34 | excalibur_src_prepare 35 | cd "${WORKDIR}" 36 | done 37 | } 38 | 39 | excalibur-multi_src_compile() { 40 | 41 | for module in ${EXCALIBUR_MODULES}; do 42 | cd ${module}* || die 43 | local jar 44 | for module in ${EXCALIBUR_MODULES}; do 45 | for jar in "${WORKDIR}"/${module}/target/*.jar; do 46 | [[ -e "${jar}" ]] && ln -s "${jar}" target/lib 47 | done 48 | done 49 | java-pkg-2_src_compile 50 | cd "${WORKDIR}" 51 | done 52 | } 53 | 54 | excalibur-multi_src_test() { 55 | for module in ${EXCALIBUR_MODULES}; do 56 | cd ${module}* || die 57 | excalibur_src_test || die 58 | cd "${WORKDIR}" 59 | done 60 | } 61 | 62 | excalibur-multi_src_install() { 63 | for module in ${EXCALIBUR_MODULES}; do 64 | cd ${module}* 65 | java-pkg_newjar target/${module}*.jar ${module/-${PV}}.jar 66 | if use doc; then 67 | # Doing this manually or we would have api/x/api/ 68 | docinto html/api/${PN}-${sub} 69 | dohtml -r dist/docs/api/* || die 70 | fi 71 | use source && java-pkg_dosrc src/java/* 72 | cd "${WORKDIR}" 73 | done 74 | use doc && java-pkg_recordjavadoc 75 | } 76 | -------------------------------------------------------------------------------- /eclass/excalibur.eclass: -------------------------------------------------------------------------------- 1 | # Copyright 1999-2004 Gentoo Foundation 2 | # Distributed under the terms of the GNU General Public License v2 3 | # $Id$ 4 | # 5 | # Author: Petteri Räty 6 | # Maintained by the java project 7 | # 8 | # The excalibur eclass is a helper for stuff from http://excalibur.apache.org/ 9 | 10 | JAVA_PKG_IUSE="doc source" 11 | 12 | inherit java-pkg-2 java-ant-2 13 | 14 | DESCRIPTION="${PN} from Apache Excalibur" 15 | HOMEPAGE="http://excalibur.apache.org/" 16 | 17 | [[ "${EXCALIBUR_MODULES}" ]] || SRC_URI="mirror://apache/excalibur/source/${P}-src.tar.gz" 18 | 19 | LICENSE="Apache-2.0" 20 | 21 | _excalibur_test() { 22 | [[ "${EXCALIBUR_TESTS}" ]] || return 1 23 | } 24 | 25 | [[ -z "${EXCALIBUR_JDK}" ]] && EXCALIBUR_JDK=1.4 26 | [[ -z "${EXCALIBUR_JRE}" ]] && EXCALIBUR_JRE=1.4 27 | 28 | DEPEND=">=virtual/jdk-${EXCALIBUR_JDK}" 29 | 30 | RDEPEND=">=virtual/jre-${EXCALIBUR_JRE}" 31 | 32 | if _excalibur_test; then 33 | IUSE="${IUSE} test" 34 | DEPEND=" 35 | ${DEPEND} 36 | dev-java/ant-junit" 37 | fi 38 | 39 | EXPORT_FUNCTIONS src_unpack src_test src_install 40 | 41 | excalibur_src_prepare() { 42 | java-ant_ignore-system-classes 43 | mkdir -p target/lib 44 | cd target/lib 45 | for atom in ${EXCALIBUR_JAR_FROM}; do 46 | java-pkg_jar-from ${atom} 47 | done 48 | if _excalibur_test; then 49 | java-pkg_jar-from --build-only junit 50 | for atom in ${EXCALIBUR_TEST_JAR_FROM}; do 51 | java-pkg_jar-from --build-only --with-dependencies ${atom} 52 | done 53 | fi 54 | } 55 | 56 | excalibur_src_unpack() { 57 | unpack ${A} 58 | cd "${S}" 59 | excalibur_src_prepare 60 | } 61 | 62 | excalibur_src_test() { 63 | if _excalibur_test; then 64 | ANT_TASKS="ant-junit" eant -DJunit.present=true 65 | else 66 | einfo "This package does not support or have unit tests." 67 | fi 68 | } 69 | 70 | excalibur_src_install() { 71 | java-pkg_newjar target/${P}.jar 72 | # There might not be any 73 | for txt in *.txt; do 74 | dodoc ${txt} || die "dodoc ${txt} failed" 75 | done 76 | use doc && java-pkg_dojavadoc dist/docs/api 77 | use source && java-pkg_dosrc src/java/* 78 | } 79 | -------------------------------------------------------------------------------- /eclass/gradle.eclass: -------------------------------------------------------------------------------- 1 | # Copyright 2021-2023 Gentoo Authors 2 | # Distributed under the terms of the GNU General Public License v2 3 | 4 | # @ECLASS: gradle.eclass 5 | # @MAINTAINER: 6 | # Gentoo Java Project 7 | # @AUTHOR: 8 | # Florian Schmaus 9 | # @BLURB: common ebuild functions for gradle-based packages. 10 | # @DESCRIPTION: 11 | # This eclass provides support for the gradle build system. There 12 | # are currently two approaches to using gradle in ebuilds. You can either 13 | # depend on a gradle system-wide installation from a gradle ebuild, typically 14 | # dev-java/gradle-bin, or, bundle gradle with the ebuild. 15 | # 16 | # To use a system-wide gradle installation, set EGRADLE_MIN and 17 | # EGRADLE_MAX_EXCLUSIVE and declare a BDEPEND on the gradle package. 18 | # @CODE 19 | # inherit gradle 20 | # EGRADLE_MIN=7.3 21 | # EGRADLE_MAX_EXCLUSIVE=8 22 | # 23 | # BDEPEND="|| (dev-java/gradle-bin:7.3 dev-java/gradle-bin:7.4)" 24 | # @CODE 25 | # 26 | # To use a bundled gradle version, set EGRADLE_BUNDLED_VER and add 27 | # $(gradle_src_uri) to SRC_URI. 28 | # @CODE 29 | # inherit gradle 30 | # EGRADLE_BUNDLED_VER=7.6 31 | # SRC_URI=" 32 | # ... 33 | # $(gradle_src_uri) 34 | # " 35 | # src_unpack() { 36 | # default 37 | # gradle_src_unpack 38 | # } 39 | # @CODE 40 | # This "bundles" gradle as part of the ebuild, that is, a gradle 41 | # distribution with the version specified by EGRADLE_BUNDLED_VER 42 | # will be added to SRC_URI, unpacked by gradle_src_unpack, and then 43 | # later used by egradle. 44 | # 45 | # Afterwards, use egradle to invoke gradle. 46 | # @CODE 47 | # src_compile() { 48 | # egradle build 49 | # } 50 | # @CODE 51 | 52 | case ${EAPI} in 53 | 7|8) ;; 54 | *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;; 55 | esac 56 | 57 | if [[ -z ${_GRADLE_ECLASS} ]] ; then 58 | _GRADLE_ECLASS=1 59 | 60 | inherit edo 61 | 62 | # @ECLASS_VARIABLE: EGRADLE_MIN 63 | # @DEFAULT_UNSET 64 | # @DESCRIPTION: 65 | # Minimum required gradle version. 66 | 67 | # @ECLASS_VARIABLE: EGRADLE_MAX_EXCLUSIVE 68 | # @DEFAULT_UNSET 69 | # @DESCRIPTION: 70 | # First gradle version that is not supported. 71 | 72 | # @ECLASS_VARIABLE: EGRADLE_EXACT_VER 73 | # @DEFAULT_UNSET 74 | # @DESCRIPTION: 75 | # The exact required gradle version. If set, neither of EGRADLE_MIN 76 | # EGRADLE_MAX_EXCLUSIVE, nor EGRADLE_BUNDLED_VER should be set. 77 | 78 | # @ECLASS_VARIABLE: EGRADLE_BUNDLED_VER 79 | # @DEFAULT_UNSET 80 | # @DESCRIPTION: 81 | # The gradle version that will be bundled with this package. If set, 82 | # neither of EGRADLE_MIN, EGRADLE_MAX_EXCLUSIVE, nor 83 | # EGRADLE_EXACT_VER should be set. 84 | 85 | # @ECLASS_VARIABLE: EGRADLE_PARALLEL 86 | # @DESCRIPTION: 87 | # Set to the 'true', the default, to invoke gradle with --parallel. Set 88 | # to 'false' to disable parallel gradle builds. 89 | : "${EGRADLE_PARALLEL=true}" 90 | 91 | # @ECLASS_VARIABLE: EGRADLE_USER_HOME 92 | # @DESCRIPTION: 93 | # Directory used as the user's home directory by gradle. Defaults to 94 | # ${T}/gradle_user_home 95 | : "${EGRADLE_USER_HOME="${T}/gradle_user_home"}" 96 | 97 | # @ECLASS_VARIABLE: EGRADLE_OVERRIDE 98 | # @USER_VARIABLE 99 | # @DEFAULT_UNSET 100 | # @DESCRIPTION: 101 | # User-specified override of the used gradle binary. 102 | 103 | # @ECLASS_VARIABLE: EGRADLE_SEARCH_PATH 104 | # @USER_VARIABLE 105 | # @DESCRIPTION: 106 | # Path in which gradle installations are searched. This path is 107 | # prefixed with BROOT. Defaults to /usr/bin. Mostly used for 108 | # testing this eclass. 109 | : "${EGRADLE_SEARCH_PATH=/usr/bin}" 110 | 111 | # @FUNCTION: gradle-set_EGRADLE 112 | # @DESCRIPTION: 113 | # Set the EGRADLE environment variable. 114 | gradle-set_EGRADLE() { 115 | [[ -n ${EGRADLE} ]] && return 116 | 117 | if [[ -n ${EGRADLE_OVERRIDE} ]]; then 118 | EGRADLE="${EGRADLE_OVERRIDE}" 119 | return 120 | fi 121 | 122 | if [[ -n ${EGRADLE_BUNDLED_VER} ]]; then 123 | EGRADLE="${WORKDIR}/gradle-${EGRADLE_BUNDLED_VER}/bin/gradle" 124 | return 125 | fi 126 | 127 | local candidate selected selected_ver ver 128 | 129 | for candidate in "${BROOT}${EGRADLE_SEARCH_PATH}"/gradle-*; do 130 | if [[ ${candidate} != */gradle?(-bin)-+([.0-9]) ]]; then 131 | continue 132 | fi 133 | 134 | ver=${candidate##*-} 135 | 136 | if [[ -n ${EGRADLE_EXACT_VER} ]]; then 137 | ver_test "${ver}" -ne "${EGRADLE_EXACT_VER}" && continue 138 | 139 | selected="${candidate}" 140 | break 141 | fi 142 | 143 | if [[ -n ${EGRADLE_MIN} ]] \ 144 | && ver_test "${ver}" -lt "${EGRADLE_MIN}"; then 145 | # Candidate does not satisfy EGRADLE_MIN condition. 146 | continue 147 | fi 148 | 149 | if [[ -n ${EGRADLE_MAX_EXCLUSIVE} ]] \ 150 | && ver_test "${ver}" -ge "${EGRADLE_MAX_EXCLUSIVE}"; then 151 | # Candidate does not satisfy EGRADLE_MAX_EXCLUSIVE condition. 152 | continue 153 | fi 154 | 155 | if [[ -n ${selected_ver} ]] \ 156 | && ver_test "${selected_ver}" -gt "${ver}"; then 157 | # Candidate is older than the currently selected candidate. 158 | continue 159 | fi 160 | 161 | selected="${candidate}" 162 | selected_ver="${ver}" 163 | done 164 | 165 | if [[ -z ${selected} ]]; then 166 | die "Could not find (suitable) gradle installation in ${BROOT}/usr/bin" 167 | fi 168 | 169 | EGRADLE="${selected}" 170 | } 171 | 172 | # @FUNCTION: gradle-src_uri 173 | # @DESCRIPTION: 174 | # Generate SRC_URI data from EGRADLE_BUNDLED_VER. 175 | gradle-src_uri() { 176 | if [[ -z ${EGRADLE_BUNDLED_VER} ]]; then 177 | die "Must set EGRADLE_BUNDLED_VER when calling gradle-src_uri" 178 | fi 179 | echo "https://services.gradle.org/distributions/gradle-${EGRADLE_BUNDLED_VER}-bin.zip" 180 | } 181 | 182 | # @FUNCTION: gradle_src_unpack 183 | # @DESCRIPTION: 184 | # Unpack the "bundled" gradle version. You must have 185 | # EGRADLE_BUNDLED_VER set when calling this function. 186 | gradle_src_unpack() { 187 | if [[ -z ${EGRADLE_BUNDLED_VER} ]]; then 188 | die "Must set EGRADLE_BUNDLED_VER when calling gradle_src_unpack" 189 | fi 190 | 191 | unpack "gradle-${EGRADLE_BUNDLED_VER}-bin.zip" 192 | } 193 | 194 | # @FUNCTION: egradle 195 | # @USAGE: [gradle-args] 196 | # @DESCRIPTION: 197 | # Invoke gradle with the optionally provided arguments. 198 | egradle() { 199 | gradle-set_EGRADLE 200 | 201 | local gradle_args=( 202 | --console=plain 203 | --info 204 | --stacktrace 205 | --no-daemon 206 | --offline 207 | --no-build-cache 208 | --gradle-user-home "${EGRADLE_USER_HOME}" 209 | --project-cache-dir "${T}/gradle_project_cache" 210 | ) 211 | 212 | if ${EGRADLE_PARALLEL}; then 213 | gradle_args+=( --parallel ) 214 | fi 215 | 216 | local -x JAVA_TOOL_OPTIONS="${JAVA_TOOL_OPTIONS} -Duser.home=\"${T}\"" 217 | # TERM needed, otherwise gradle may fail on terms it does not know about 218 | TERM=xterm \ 219 | edo \ 220 | "${EGRADLE}" "${gradle_args[@]}" "${@}" 221 | } 222 | 223 | fi 224 | -------------------------------------------------------------------------------- /eclass/java-maven-plugin-2.eclass: -------------------------------------------------------------------------------- 1 | # Copyright 1999-2006 Gentoo Foundation 2 | # Distributed under the terms of the GNU General Public License v2 3 | # $Id$ 4 | 5 | inherit java-maven-2 6 | 7 | HOMEPAGE="http://maven.apache.org" 8 | LICENSE="Apache-2.0" 9 | 10 | JAVA_MAVEN_PLUGIN_COMMON_DEPS=" 11 | >dev-java/doxia-1.0_alpha9 12 | dev-java/junit 13 | dev-java/maven-artifact 14 | dev-java/maven-base-poms 15 | dev-java/maven-core 16 | dev-java/maven-model 17 | dev-java/maven-plugin-api 18 | dev-java/maven-plugin-descriptor 19 | dev-java/maven-project 20 | dev-java/maven-reporting 21 | dev-java/maven-settings 22 | dev-java/maven-shared-components 23 | dev-java/plexus-classworlds 24 | >=dev-java/plexus-component-api-1.0_alpha33_pre20071021 25 | >=dev-java/plexus-container-default-1.0_alpha33_pre20071021 26 | >=dev-java/plexus-utils-1.4.7_pre20071021 27 | dev-java/wagon-provider-api 28 | " 29 | JAVA_MAVEN_PLUGIN_CLASSPATH=" 30 | doxia 31 | junit 32 | maven-artifact 33 | maven-core 34 | maven-model 35 | maven-plugin-api 36 | maven-plugin-descriptor 37 | maven-project 38 | maven-reporting 39 | maven-settings 40 | maven-shared-components 41 | plexus-classworlds 42 | plexus-utils-1.4.7 43 | plexus-component-api-1.0_alpha33 44 | plexus-container-default-1.0_alpha33 45 | wagon-provider-api 46 | " 47 | 48 | RDEPEND=">=virtual/jre-1.4 ${JAVA_MAVEN_PLUGIN_COMMON_DEPS}" 49 | DEPEND=">=virtual/jdk-1.4 ${JAVA_MAVEN_PLUGIN_COMMON_DEPS}" 50 | 51 | java-maven-plugin-2_src_unpack() { 52 | java-maven-2_src_unpack 53 | } 54 | 55 | # if you override, think to append the eclass classpath. 56 | java-maven-plugin-2_src_compile() { 57 | JAVA_MAVEN_CLASSPATH="${JAVA_MAVEN_CLASSPATH} ${JAVA_MAVEN_PLUGIN_CLASSPATH}" 58 | java-maven-2_src_compile 59 | } 60 | 61 | java-maven-plugin-2_src_install() { 62 | java-maven-2_src_install 63 | } 64 | 65 | EXPORT_FUNCTIONS src_unpack src_compile src_install 66 | 67 | -------------------------------------------------------------------------------- /eclass/openoffice-ext.eclass: -------------------------------------------------------------------------------- 1 | # Copyright 1999-2008 Gentoo Foundation 2 | # Distributed under the terms of the GNU General Public License v2 3 | # $Id$ 4 | 5 | ECLASS="openoffice-ext" 6 | INHERITED="$INHERITED $ECLASS" 7 | 8 | inherit eutils multilib 9 | 10 | # list of extentions 11 | # OOO_EXTENSIONS="" 12 | 13 | OOO_ROOT_DIR="/usr/$(get_libdir)/openoffice" 14 | OOO_PROGRAM_DIR="${OOO_ROOT_DIR}/program" 15 | UNOPKG="${OOO_PROGRAM_DIR}/unopkg" 16 | OOO_EXT_DIR="${OOO_ROOT_DIR}/share/extension/install" 17 | OPENOFFICE_EXT_OPT_USE=${OPENOFFICE_EXT_OPT_USE:-openoffice} 18 | 19 | add_extension() { 20 | ebegin "Adding extension $1" 21 | INSTDIR=$(mktemp -d --tmpdir=${T}) 22 | ${UNOPKG} add --shared $1 \ 23 | "-env:UserInstallation=file:///${INSTDIR}" \ 24 | "-env:JFW_PLUGIN_DO_NOT_CHECK_ACCESSIBILITY=1" 25 | if [ -n ${INSTDIR} ]; then rm -rf ${INSTDIR}; fi 26 | eend 27 | } 28 | 29 | flush_unopkg_cache() { 30 | ${UNOPKG} list --shared > /dev/null 2>&1 31 | } 32 | 33 | remove_extension() { 34 | if ${UNOPKG} list --shared $1 >/dev/null; then 35 | ebegin "Removing extension $1" 36 | INSTDIR=$(mktemp -d --tmpdir=${T}) 37 | ${UNOPKG} remove --shared $1 \ 38 | "-env:UserInstallation=file://${INSTDIR}" \ 39 | "-env:JFW_PLUGIN_DO_NOT_CHECK_ACCESSIBILITY=1" 40 | if [ -n ${INSTDIR} ]; then rm -rf ${INSTDIR}; fi 41 | eend 42 | flush_unopkg_cache 43 | fi 44 | } 45 | 46 | _openoffice-utils_src_install() { 47 | cd "${S}" || die 48 | insinto ${OOO_EXT_DIR} 49 | for i in ${OOO_EXTENSIONS} 50 | do 51 | doins ${i} || die "doins failed." 52 | done 53 | } 54 | 55 | _openoffice-utils_pkg_postinst() { 56 | for i in ${OOO_EXTENSIONS} 57 | do 58 | add_extension ${OOO_EXT_DIR}/${i} 59 | done 60 | 61 | } 62 | 63 | _openoffice-utils_pkg_prerm() { 64 | for i in ${OOO_EXTENSIONS} 65 | do 66 | remove_extension ${i} 67 | done 68 | } 69 | 70 | _openoffice-ext_check_use() { 71 | return $(has ${OPENOFFICE_EXT_OPT_USE} "${IUSE}") 72 | } 73 | 74 | if _openoffice-ext_check_use; then 75 | DEPEND="${OPENOFFICE_EXT_OPT_USE}? ( >=virtual/ooo-3.0 )" 76 | RDEPEND="${OPENOFFICE_EXT_OPT_USE}? ( >=virtual/ooo-3.0 )" 77 | else 78 | DEPEND=">=virtual/ooo-3.0" 79 | RDEPEND=">=virtual/ooo-3.0" 80 | fi 81 | 82 | openoffice-ext_src_install() { 83 | if _openoffice-ext_check_use; then 84 | use ${OPENOFFICE_EXT_OPT_USE} && _openoffice-utils_src_install 85 | else 86 | _openoffice-utils_src_install 87 | fi 88 | 89 | } 90 | 91 | openoffice-ext_pkg_postinst() { 92 | if _openoffice-ext_check_use; then 93 | use ${OPENOFFICE_EXT_OPT_USE} && _openoffice-utils_pkg_postinst 94 | else 95 | _openoffice-utils_pkg_postinst 96 | fi 97 | 98 | } 99 | 100 | openoffice-ext_pkg_prerm() { 101 | if _openoffice-ext_check_use; then 102 | use ${OPENOFFICE_EXT_OPT_USE} && _openoffice-utils_pkg_prerm 103 | else 104 | _openoffice-utils_pkg_prerm 105 | fi 106 | } 107 | 108 | EXPORT_FUNCTIONS src_install pkg_postinst pkg_prerm 109 | -------------------------------------------------------------------------------- /eclass/tests/gradle.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # Copyright 2022-2023 Gentoo Authors 3 | # Distributed under the terms of the GNU General Public License v2 4 | 5 | EAPI=8 6 | 7 | SCRIPT_DIR=$(cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd) 8 | cd "${SCRIPT_DIR}" 9 | 10 | source tests-common.sh || exit 11 | 12 | inherit gradle 13 | 14 | # TODO: hack because tests-common don't implement ver_cut 15 | EAPI=6 inherit eapi7-ver 16 | 17 | test_set_EGRADLE() { 18 | local expected_EGRADLE="${1}" 19 | 20 | shift 21 | 22 | local tmpdir 23 | tmpdir=$(mktemp -d || die) 24 | for pseudo_gradle in "${@}"; do 25 | local pseudo_gradle_path="${tmpdir}/${pseudo_gradle}" 26 | touch "${pseudo_gradle_path}" 27 | chmod 755 "${pseudo_gradle_path}" 28 | done 29 | 30 | EGRADLE_SEARCH_PATH="${tmpdir}" 31 | 32 | local test_desc=( 33 | test_set_EGRADLE 34 | ) 35 | [[ -v EGRADLE_MIN ]] && test_desc+=( "EGRADLE_MIN=${EGRADLE_MIN}" ) 36 | [[ -v EGRADLE_MAX_EXCLUSIVE ]] && test_desc+=( "EGRADLE_MAX_EXCLUSIVE=${EGRADLE_MAX_EXCLUSIVE}" ) 37 | test_desc+=( $@ ) 38 | 39 | tbegin "${test_desc[@]}" 40 | gradle-set_EGRADLE 41 | 42 | local saved_EGRADLE="${EGRADLE}" 43 | unset EGRADLE 44 | 45 | rm -rf "${tmpdir}" 46 | 47 | # The saved_EGRADLE variable will contain something like 48 | # /tmp/tmp.vTN7A1l6C7/gradle-2.0, but we only want to compare the 49 | # name of the binary. 50 | saved_EGRADLE=$(basename ${saved_EGRADLE}) 51 | 52 | [[ "${saved_EGRADLE}" == "${expected_EGRADLE}" ]] 53 | tend $? 54 | 55 | if (( $? > 0 )); then 56 | >&2 echo -e "\t expected=${expected_EGRADLE} actual=${saved_EGRADLE}" 57 | fi 58 | } 59 | 60 | test_set_EGRADLE gradle-2.0 gradle-1.0 gradle-2.0 61 | EGRADLE_MIN=2.0 test_set_EGRADLE gradle-2.2.3 gradle-1.0 gradle-2.0 gradle-2.2.3 62 | EGRADLE_MAX_EXCLUSIVE=2.2 test_set_EGRADLE gradle-2.0 gradle-1.0 gradle-2.0 gradle-2.2.3 63 | 64 | texit 65 | -------------------------------------------------------------------------------- /eclass/tests/tests-common.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # Copyright 2022-2023 Gentoo Authors 3 | # Distributed under the terms of the GNU General Public License v2 4 | 5 | GENTOO_REPO_PATH=$(portageq get_repo_path / gentoo) 6 | JAVA_REPO_PATH=$(portageq get_repo_path / java) 7 | 8 | source "${GENTOO_REPO_PATH}/eclass/tests/tests-common.sh" 9 | TESTS_ECLASS_SEARCH_PATHS=( 10 | "${GENTOO_REPO_PATH}/eclass" 11 | "${JAVA_REPO_PATH}/eclass" 12 | ) 13 | -------------------------------------------------------------------------------- /licenses/CeCILL-1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gentoo/java-overlay/6d5454b3414d50352ce3a89f9239de31e66624c2/licenses/CeCILL-1 -------------------------------------------------------------------------------- /licenses/Egothor: -------------------------------------------------------------------------------- 1 | Egothor Software License version 1.00 2 | Copyright (C) 1997-2006 Leo Galambos. 3 | Copyright (C) 2002-2006 "Egothor developers" 4 | on behalf of the Egothor Project. 5 | All rights reserved. 6 | 7 | This software is copyrighted by the "Egothor developers". If this 8 | license applies to a single file or document, the "Egothor developers" 9 | are the people or entities mentioned as copyright holders in that file 10 | or document. If this license applies to the Egothor project as a 11 | whole, the copyright holders are the people or entities mentioned in 12 | the file CREDITS. This file can be found in the same location as this 13 | license in the distribution. 14 | 15 | Redistribution and use in source and binary forms, with or without 16 | modification, are permitted provided that the following conditions are 17 | met: 18 | 1. Redistributions of source code must retain the above copyright 19 | notice, the list of contributors, this list of conditions, and the 20 | following disclaimer. 21 | 2. Redistributions in binary form must reproduce the above copyright 22 | notice, the list of contributors, this list of conditions, and the 23 | disclaimer that follows these conditions in the documentation 24 | and/or other materials provided with the distribution. 25 | 3. The name "Egothor" must not be used to endorse or promote products 26 | derived from this software without prior written permission. For 27 | written permission, please contact Leo.G@seznam.cz 28 | 4. Products derived from this software may not be called "Egothor", 29 | nor may "Egothor" appear in their name, without prior written 30 | permission from Leo.G@seznam.cz. 31 | 32 | In addition, we request that you include in the end-user documentation 33 | provided with the redistribution and/or in the software itself an 34 | acknowledgement equivalent to the following: 35 | "This product includes software developed by the Egothor Project. 36 | http://egothor.sf.net/" 37 | 38 | THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED 39 | WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 40 | MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 41 | IN NO EVENT SHALL THE EGOTHOR PROJECT OR ITS CONTRIBUTORS BE LIABLE 42 | FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 43 | CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 44 | SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 45 | BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 46 | WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE 47 | OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN 48 | IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 49 | 50 | This software consists of voluntary contributions made by many 51 | individuals on behalf of the Egothor Project and was originally 52 | created by Leo Galambos (Leo.G@seznam.cz). 53 | -------------------------------------------------------------------------------- /licenses/IBM-J1.4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gentoo/java-overlay/6d5454b3414d50352ce3a89f9239de31e66624c2/licenses/IBM-J1.4 -------------------------------------------------------------------------------- /licenses/IntelliJ-IDEA-opensource: -------------------------------------------------------------------------------- 1 | IntelliJ IDEA License Agreement for Open Source 2 | Project Development 3 | 4 | IMPORTANT! READ CAREFULLY: THIS IS A LEGAL AGREEMENT. BY DOWNLOADING, INSTALLING, COPYING, SAVING ON YOUR COMPUTER, OR OTHERWISE USING THIS SOFTWARE, YOU (LICENSEE, AS DEFINED BELOW) ARE BECOMING A PARTY TO THIS AGREEMENT AND YOU ARE CONSENTING TO BE BOUND BY ALL THE TERMS AND CONDITIONS OF THIS AGREEMENT. 5 | 6 | IF YOU DO NOT AGREE TO THE TERMS AND CONDITIONS OF THIS AGREEMENT, YOU SHOULD NOT DOWNLOAD, INSTALL AND USE THE SOFTWARE. 7 | 1. PARTIES 8 | 9 | (a) "Licensor" means JetBrains s.r.o., having its principal place of business at Klanova 506/9, Prague, 14700, Czech Republic. 10 | 11 | (b) "Licensee" means an open source development group specified in the License Certificate. 12 | 2. DEFINITIONS 13 | 14 | (a) "Authorized User" means a software developer or other open source development group member who is authorized by Licensee to use the Software for the purpose of development of an open source project. 15 | 16 | (b) "Software" means software program known as IntelliJ IDEA in binary form, including its documentation, any third party software programs that are owned and licensed by parties other than Licensor and that either integrated with or made part of IntelliJ IDEA (collectively, "Third Party Software"). 17 | 18 | (c) "License Certificate" means evidence of a license provided by Licensor to Licensee in electronic or printed form. License Certificate contains a license key which enables Licensee to use the Software. 19 | 20 | (d) "License Key" means a unique key-code that enables Licensee to use the Software by multiple Authorized Users at a time. Only Licensor and/or its representatives are permitted to produce License Keys for the Software. 21 | 22 | (e) "Client" means a computer device used by Authorized User for running the Software. 23 | 3. OWNERSHIP 24 | 25 | (a) The Software is the property of Licensor or its suppliers. The Software is licensed, not sold. Title and copyrights to the Software, in whole and in part and all copies thereof, and all modifications, enhancements, derivatives and other alterations of the Software regardless of who made any modifications, if any, are, and will remain, the sole and exclusive property of Licensor and its suppliers. 26 | 27 | (b) The Software is protected by United States Copyright Law and International Treaty provisions. Further, the structure, organization, and code embodied in the Software are the valuable and confidential trade secrets of Licensor and its suppliers and are protected by intellectual property laws and treaties. Licensee agrees to abide by the copyright law and all other applicable laws of the United States including, but not limited to, export control laws. 28 | 4. GRANT OF LICENSE 29 | 30 | Subject to the terms, conditions, and limitations set forth in this Agreement, Licensor hereby grants to Licensee a limited, non-exclusive, non-transferable,royalty-free license to use the Software for a period of 1 (one) year as follows: 31 | 32 | (a) Licensee may: 33 | 34 | (i) install the version of the Software that has been specified in License Certificate on multiple Clients and operating systems; 35 | 36 | (ii) use the Software by Authorized Users solely for the purpose of development of non-commercial open source projects that meet the Open Source Definition at http://www.opensource.org/docs/definition_plain.html, and 37 | 38 | (iii) make one back-up copy of the Software solely for archival purposes. 39 | 40 | (b) Licensee may not: 41 | 42 | (i) sell, redistribute (except as set forth in Paragraph 5 herein), encumber, give, lend, rent, lease, sublicense, or otherwise transfer the Software, or any portions of the Software, to anyone without the prior written consent of Licensor; 43 | 44 | (ii) reverse engineer, decompile, disassemble, modify, translate, make any attempt to discover the source code of the Software, or create derivative works from the Software, or 45 | 46 | (iii) use the Software for any commercial purpose. 47 | 48 | Licensee agrees to comply with the terms of this Agreement, and to take reasonable measures to prevent use of the Software by Authorized Users in an inappropriate manner or access to the Software by unauthorized users. 49 | 5. LICENSE TO DISTRIBUTE REDISTRIBUTABLE 50 | 51 | In addition to the license granted in Section 4(a) of this Agreement, Licensor grants to Licensee a non-exclusive, limited license to use the files located in the "redist" folder in the Software installation under the terms of the Apache License, Version 2.0. Licensee may obtain a copy of the Apache License at http://www.apache.org/licenses/LICENSE-2.0. Unless required by applicable law or agreed in writing, software distributed under the Apache License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the Apache License for the specific language governing permissions and limitations under the Apache License. 52 | 6. THIRD PARTY SOFTWARE LICENSE 53 | 54 | Third Party Software is licensed to Licensee in accordance with a separate license agreement(s) included with the Software, and subject to any restrictions set forth herein. Licensee agrees to abide by the terms and conditions of the Third Party Software license agreements. Licensor will have no responsibility with respect to any Third Party Software, and Licensee will look solely to the licensor(s) of the Third Party Software for any remedy. Licensor claims no right in the Third Party Software, and the same is owned exclusively by the licensor(s) of the Third Party Software. LICENSOR PROVIDES NO WARRANTY, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE, AND NON-INFRINGEMENT, WITH RESPECT TO ANY THIRD PARTY SOFTWARE. 55 | 7. UPGRADES AND LICENSE RENEWAL 56 | 57 | (a) Upgrades to new versions of the Software are optional and free of charge during the 1-year license term. Licensee may obtain generally available new versions of the Software by downloading them from Licensor's web site. 58 | 59 | (b) Licensee may renew its license for another year by submitting a written request to Licensor 30 (thirty) days prior to the license expiration date. 60 | 8. PATENT AND COPYRIGHT INDEMNITY 61 | 62 | (a) Licensor will have no liability for any claim of infringement based on: 63 | 64 | (i) code contained within the Software which was not created by Licensor; 65 | 66 | (ii) use of a superseded or altered release of the Software, except for such alteration(s) or modification(s) which have been made by Licensor or under Licensor's direction, if such infringement would have been avoided by the use of a current, unaltered release of the Software that Licensor provides to Licensee, or 67 | 68 | (iii) the combination, operation, or use of any Software furnished under this Agreement with programs or data not furnished by Licensor if such infringement would have been avoided by the use of the Software without such programs or data. 69 | 70 | (b) In the event the Software is held or believed by Licensor to infringe, or Licensee's use of the Software is enjoined, Licensor will have the option, at its expense, to: 71 | 72 | (i) modify the Software to cause it to become non-infringing; 73 | 74 | (ii) obtain for Licensee a license to continue using the Software; 75 | 76 | (iii) substitute the Software with other Software reasonably suitable to Licensee, or 77 | 78 | (iv) if none of the foregoing remedies are commercially feasible, terminate the license for the infringing Software. 79 | 80 | This Section states Licensor's entire liability for infringement. 81 | 9. LIMITED WARRANTY 82 | 83 | THE SOFTWARE IS PROVIDED TO LICENSEE "AS IS" AND WITHOUT WARRANTIES. LICENSOR MAKES NO WARRANTY AS TO ITS USE OR PERFORMANCE. TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, LICENSOR, AND ITS SUPPLIERS AND RESELLERS, DISCLAIM ALL OTHER WARRANTIES AND CONDITIONS, EITHER EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE, AND NON-INFRINGEMENT, WITH REGARD TO THE SOFTWARE, AND THE PROVISION OF OR FAILURE TO PROVIDE SUPPORT SERVICES. THIS LIMITED WARRANTY GIVES LICENSEE SPECIFIC LEGAL RIGHTS. LICENSEE MAY HAVE OTHERS, WHICH VARY FROM STATE/JURISDICTION TO STATE/JURISDICTION. 84 | 10. DISCLAIMER OF DAMAGES 85 | 86 | (a) REGARDLESS OF WHETHER ANY REMEDY SET FORTH HEREIN FAILS OF ITS ESSENTIAL PURPOSE, IN NO EVENT WILL LICENSOR OR ITS SUPPLIERS OR RESELLERS BE LIABLE TO LICENSEE UNDER ANY THEORY FOR ANY DAMAGES SUFFERED BY LICENSEE OR ANY USER OF THE SOFTWARE, OR FOR ANY SPECIAL, INCIDENTAL, INDIRECT, CONSEQUENTIAL, OR SIMILAR DAMAGES (INCLUDING WITHOUT LIMITATION, DAMAGES FOR LOSS OF BUSINESS PROFITS, BUSINESS INTERRUPTION, LOSS OF BUSINESS INFORMATION, OR ANY OTHER PECUNIARY LOSS) ARISING OUT OF THE USE OR INABILITY TO USE THE SOFTWARE, OR THE PROVISION OF OR FAILURE TO PROVIDE SUPPORT SERVICES, EVEN IF LICENSOR HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES, AND REGARDLESS OF THE LEGAL OR EQUITABLE THEORY (CONTRACT, TORT OR OTHERWISE) UPON WHICH THE CLAIM IS BASED. 87 | 88 | (b) IN ANY CASE, LICENSOR'S ENTIRE LIABILITY UNDER ANY PROVISION OF THIS AGREEMENT WILL BE LIMITED TO THE AMOUNT ACTUALLY PAID BY LICENSEE FOR THE SOFTWARE. BECAUSE SOME STATES AND JURISDICTIONS DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY, THE ABOVE LIMITATION MAY NOT APPLY TO LICENSEE. 89 | 11. TERMINATION 90 | 91 | If Licensee fails to comply with the terms and conditions of this Agreement, this Agreement and Licensee's right and license to use the Software will terminate immediately. Licensee may terminate this Agreement at any time by notifying Licensor. Upon the termination of this Agreement, Licensee must delete the Software from its computers and archives. LICENSEE AGREES THAT UPON TERMINATION OF THIS AGREEMENT FOR ANY REASON, LICENSOR MAY TAKE ACTIONS SO THAT THE SOFTWARE NO LONGER OPERATES. 92 | 12. MARKETING 93 | 94 | Licensee agree to be identified as a customer of Licensor and that Licensor may refer to Licensee by name, trade name and trademark, if applicable, and may briefly describe Licensee's business in Licensor's marketing materials, on Licensor's web site, in public or legal documents. Licensee hereby grants Licensor a license to use Licensee's name and any of Licensee's trade names and trademarks solely pursuant to this marketing section. 95 | 13. GENERAL 96 | 97 | (a) Licensor reserves the right at any time to cease the support of the Software and to alter prices, features, specifications, capabilities, functions, licensing terms, release dates, general availability or other characteristics of the Software. 98 | 99 | (b) This Agreement, including the Third Party Software license agreements, constitutes the entire agreement between the parties concerning Licensee's use of the Software, and supersedes any and all prior or contemporaneous oral or written representations, communications, or advertising with respect to the Software. No purchase order, other ordering document or any hand written or typewritten text which purports to modify or supplement the printed text of this Agreement or any schedule will add to or vary the terms of this Agreement unless signed by both Licensee and Licensor. 100 | 101 | (c) A waiver by either party of any term or condition of this Agreement or any breach thereof, in any one instance, will not waive such term or condition or any subsequent breach. The provisions of this Agreement which require or contemplate performance after the expiration or termination of this Agreement will be enforceable notwithstanding said expiration or termination. 102 | 103 | (d) This Agreement will be governed by the laws of Czech Republic, without reference to conflict of laws principles. Licensee agrees that any litigation relating to this Agreement may only be brought in, and will be subject to the jurisdiction of, any Court of Czech Republic. 104 | 105 | (e) Titles are inserted for convenience only and will not affect in any way the meaning or interpretation of this Agreement. If any provision of this Agreement is held invalid, the remainder of this Agreement will continue in full force and effect. Either Licensor or Licensee may assign this Agreement in the case of a merger or sale of substantially all of its respective assets to another entity. This Agreement will be binding upon and will inure to the benefit of the parties, their successors and assigns. 106 | 107 | For exceptions or modifications to this Agreement, please contact Licensor at: 108 | 109 | Address: Klanova 9/506, Prague, 14700, Czech Republic 110 | 111 | Fax: +420 261 711 724 112 | 113 | E-mail: sales@jetbrains.com 114 | 115 | -------------------------------------------------------------------------------- /licenses/Minecraft: -------------------------------------------------------------------------------- 1 | MINECRAFT END USER LICENCE AGREEMENT 2 | 3 | In order to protect Minecraft (our “Game”) and the members of our community, we 4 | need these end user licence terms to set out some rules for downloading and 5 | using our Game. We don‘t like rules any more than you do, so we have tried to 6 | keep this as short as possible. If you break these rules we may stop you from 7 | using our Game. If we think it is necessary, we might even have to ask our 8 | lawyers to get in touch. 9 | 10 | If you buy, download, use or play our Game, you are agreeing to stick to the 11 | rules of these end user licence terms ("EULA”). If you don‘t want to or can‘t 12 | agree to these rules, then you must not buy, download, use or play our Game. 13 | This EULA incorporates the terms of use for the mojang.com website (“Account 14 | Terms”), our brand and asset usage guidelines and our privacy policy. By 15 | agreeing to this EULA you also agree to all parts of these three documents, so 16 | please read through them carefully. 17 | 18 | ONE MAJOR RULE 19 | 20 | The one major rule is that you must not distribute anything we‘ve made. By “distribute 21 | anything we‘ve made” what we mean is “give copies of the game away, make 22 | commercial use of, try to make money from, or let other people get access to our 23 | game and its parts in a way that is unfair or unreasonable”. So the one major 24 | rule is that (unless we specifically agree it – such as in brand and asset usage 25 | guidelines) you must not: 26 | 27 | * give copies of our Game to anyone else; 28 | 29 | * make commercial use of anything we‘ve made; 30 | 31 | * try to make money from anything we‘ve made; or 32 | 33 | * let other people get access to anything we‘ve made in a way that is unfair or 34 | unreasonable. 35 | 36 | …and so that we are crystal clear, what we have made includes, but is not 37 | limited to, the client or the server software for our Game. It also includes 38 | modified versions of a Game, part of it or anything else we‘ve made. 39 | 40 | Otherwise we are quite relaxed about what you do - in fact we really encourage 41 | you to do cool stuff - but just don‘t do those things that we say you can‘t. 42 | 43 | USING OUR GAME 44 | 45 | You have bought the game so you can use it, yourself, on your computer. 46 | 47 | Below we also give you limited rights to do other things but we have to draw a 48 | line somewhere or else people will go too far. If you wish to make something 49 | pertaining to anything we‘ve made we‘re humbled, but please make sure that it 50 | can‘t be interpreted as being official and that it complies with this EULA and 51 | the brand and asset usage guidelines and above all do not make commercial use of 52 | anything we‘ve made. 53 | 54 | The permission we give you to use and play our Game can be revoked if you break 55 | the terms of this EULA. 56 | 57 | When you buy our Game, we give you permission to install the Game on your own 58 | personal computer and use and play it on that computer as set out in this EULA. 59 | This permission is personal to you, so you are not allowed to distribute the 60 | Game (or any part of it) to anyone else. This also means you cannot sell or rent 61 | the Game, or make it available for access to other people and you cannot pass on 62 | or resell any licence keys. You may however give gift codes that have been 63 | bought through our official gift code system. This is important to help us stop 64 | piracy and fraud and to protect our Game. It is also important to prevent 65 | members of our community from buying pirated versions of our Game or fraudulent 66 | licence keys – which we may cancel, such as in the case of fraud. 67 | 68 | If you've bought the Game, you may play around with it and modify it. We'd 69 | appreciate it if you didn't use this for griefing, though, and remember not to 70 | distribute the changed versions of our software. Basically, mods (or plugins, or 71 | tools) are cool (you can distribute those), hacked versions of the Game client 72 | or server are not (you can't distribute those). 73 | 74 | Within reason you‘re free to do whatever you want with screenshots and videos of 75 | the Game. By “within reason” we mean that you can‘t make any commercial use of 76 | them or do things that are unfair or adversely affect our rights. If you upload 77 | videos of the game to video sharing and streaming sites you are however allowed 78 | to put ads on them. Also, don‘t just rip art resources and pass them around, 79 | that‘s no fun. 80 | 81 | Essentially the simple rule is do not make commercial use of anything we‘ve made 82 | unless specifically agreed by us, either in our brand and asset usage guidelines 83 | or under this EULA. Oh and if the law expressly allows it, such as under a “fair 84 | use” or fair dealing” doctrine then that‘s ok too – but only to the extent that 85 | the law says so. 86 | 87 | In order to ensure the integrity of the Game, we need all Game downloads to come 88 | from a single central source: us. It‘s also important for us that 3rd party 89 | tools/services don‘t seem “too official” as we can‘t guarantee their quality. 90 | Make sure that you read through our brand and asset usage guidelines too. 91 | 92 | OWNERSHIP OF OUR GAME AND OTHER THINGS 93 | 94 | Although we give you permission to play our Game, we are still the owners of it. 95 | We are also the owners of our brands and any content contained in the Game. 96 | Therefore, when you pay for our Game, you are buying a permission to play / use 97 | our Game in accordance with this EULA - you are not buying the Game itself. The 98 | only permissions you have in connection with the Game are the permissions set 99 | out in this EULA. 100 | 101 | Any tools you write for the Game from scratch belong to you. . Modifications to 102 | the Game ("Mods") (including pre-run Mods and in-memory Mods) and plugins for 103 | the Game also belong to you and you can do whatever you want with them, as long 104 | as you don‘t sell them for money / try to make money from them. We have the 105 | final say on what constitutes a tool/mod/plugin and what doesn‘t. 106 | 107 | CONTENT 108 | 109 | If you make any content available on or through our Game, you must give us 110 | permission to use, copy, modify and adapt that content. This permission must be 111 | irrevocable, and you must also let us permit other people to use, copy, modify 112 | and adapt your content. If you don‘t want to give us this permission, do not 113 | make content available on or through our Game. Please think carefully before you 114 | make any content available, because it will be made public and might even be 115 | used by other people in a way you don‘t like. 116 | 117 | If you are going to make something available on or through our Game, it must not 118 | be offensive to people or illegal, it must be honest, and it must be your own 119 | creation. The types of things you must not make available using our Game include: 120 | posts that include racist or homophobic language; posts that are bullying or 121 | trolling; posts that might damage our or another person‘s reputation; posts that 122 | include porn, advertising or someone else‘s creation or image; or posts that 123 | impersonate a moderator or try to trick or exploit people. 124 | 125 | Any content you make available on our Game must also be your creation. You must 126 | not make any content available, using the Game, that infringes the rights of 127 | anyone else. If you post content on our Game, and we get challenged, threatened 128 | or sued by someone because the content infringes that persons rights, we may 129 | hold you responsible and that means you may have to pay us back for any damage 130 | we suffer as a result. Therefore it is really important that you only make 131 | content available that you have created and you don‘t do so with any content 132 | created by anyone else. 133 | 134 | Please watch out if you are talking to people in our Game. It is hard for either 135 | you or us to know for sure that what people say is true, or even if people are 136 | really who they say they are. You should think twice about giving out 137 | information about yourself. 138 | 139 | UPGRADES 140 | 141 | We might make upgrades and updates available from time to time, but we don‘t 142 | have to. We are also not obliged to provide ongoing support or maintenance of 143 | any Game. Of course, we hope to continue to release new updates for our Game, we 144 | just can‘t guarantee that we will do so. 145 | 146 | OUR LIABILITY 147 | 148 | When you get a copy of our Game, we provide it ‘as is‘. Updates and upgrades are 149 | also provided ‘as is‘. This means that we are not making any promises to you 150 | about the standard or quality of our Game or that our Game will be uninterrupted 151 | or error free or for any loss or damage that they cause. We only promise to 152 | provide the Game and any services with reasonable skill and care and even then 153 | you have to accept that we may release games well before they are complete and 154 | so they may (and often will) have bugs – but that‘s a price you pay for getting 155 | them so early. The law in most countries says that we can‘t disclaim liability 156 | for death or personal injury caused by our negligence so if your computer gets 157 | up and stabs you because of something we‘ve done wrong then we‘ll take the hit 158 | on that. 159 | 160 | TERMINATION 161 | 162 | If we want we can terminate this EULA if you breach the terms. You can terminate 163 | it too, at any time, all you have to do is uninstall the Game from your computer 164 | and the EULA will be terminated. If the EULA is terminated, you will no longer 165 | be allowed to play our Game. The paragraphs about "Ownership of Our Game”, “Our 166 | Liability” and “General Stuff” will continue to apply even after the EULA is 167 | terminated. 168 | 169 | GENERAL STUFF 170 | 171 | The EULA is subject to any legal rights you might have. Nothing in these terms 172 | and conditions will limit any of your rights that may not be excluded under law 173 | nor shall it exclude or limit our liability for death or personal injury 174 | resulting from our negligence nor any fraudulent representation. 175 | 176 | We may also change this EULA from time to time but those changes will only be 177 | effective to the extent that they can legally apply. For example if you only use 178 | the Game in single player mode and don‘t use the updates we make available then 179 | the old EULA applies but if you do use the updates or use parts of the game that 180 | rely on our providing ongoing online services then the new EULA will apply. In 181 | that case we may not be able to / don‘t need to tell you about the changes for 182 | them to have effect so you should check back here from time to time so you are 183 | aware of any changes to the EULA. We‘re not going to be unfair about this though 184 | - but sometimes the law changes or someone does something that affects other 185 | users of the Game and we therefore need to put a lid on it. 186 | 187 | If you come to us with a suggestion for any one of our Games, that suggestion is 188 | made for free. This means we can use your suggestion in any way we want and we 189 | don‘t have to pay you for it. If you think you have a suggestion that we would 190 | be willing to pay you for, you must tell us you expect to be paid before you 191 | tell us the suggestion. 192 | -------------------------------------------------------------------------------- /licenses/jai-imageio: -------------------------------------------------------------------------------- 1 | Copyright (c) 2005 Sun Microsystems, Inc. All Rights Reserved. 2 | 3 | Redistribution and use in source and binary forms, with or without 4 | modification, are permitted provided that the following conditions 5 | are met: 6 | 7 | - Redistribution of source code must retain the above copyright 8 | notice, this list of conditions and the following disclaimer. 9 | 10 | - Redistribution in binary form must reproduce the above copyright 11 | notice, this list of conditions and the following disclaimer in 12 | the documentation and/or other materials provided with the 13 | distribution. 14 | 15 | Neither the name of Sun Microsystems, Inc. or the names of 16 | contributors may be used to endorse or promote products derived 17 | from this software without specific prior written permission. 18 | 19 | This software is provided "AS IS," without a warranty of any 20 | kind. ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND 21 | WARRANTIES, INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY, 22 | FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE HEREBY 23 | EXCLUDED. SUN MIDROSYSTEMS, INC. ("SUN") AND ITS LICENSORS SHALL 24 | NOT BE LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF 25 | USING, MODIFYING OR DISTRIBUTING THIS SOFTWARE OR ITS 26 | DERIVATIVES. IN NO EVENT WILL SUN OR ITS LICENSORS BE LIABLE FOR 27 | ANY LOST REVENUE, PROFIT OR DATA, OR FOR DIRECT, INDIRECT, SPECIAL, 28 | CONSEQUENTIAL, INCIDENTAL OR PUNITIVE DAMAGES, HOWEVER CAUSED AND 29 | REGARDLESS OF THE THEORY OF LIABILITY, ARISING OUT OF THE USE OF OR 30 | INABILITY TO USE THIS SOFTWARE, EVEN IF SUN HAS BEEN ADVISED OF THE 31 | POSSIBILITY OF SUCH DAMAGES. 32 | 33 | You acknowledge that this software is not designed or intended for 34 | use in the design, construction, operation or maintenance of any 35 | nuclear facility. 36 | -------------------------------------------------------------------------------- /licenses/jibble.org: -------------------------------------------------------------------------------- 1 | This License Agreement is a legal agreement between you (either an individual or a single entity) and www.jibble.org for the software product identified above, including any software, media, and accompanying on-line or printed documentation ("Product"). 2 | 3 | BY INSTALLING, COPYING, OR OTHERWISE USING THE SOFTWARE, YOU AGREE TO BE BOUND BY ALL OF THE TERMS AND CONDITIONS OF THE LICENSE AGREEMENT. 4 | GRANT OF LICENSE 5 | 6 | Provided that you comply with all terms and conditions of this agreement, www.jibble.org grants you a nonexclusive license including the following rights: 7 | 8 | 1. You may install and use one copy of the Product on a single computer. Additional copies of the Product may be installed and used, up to the number of "Licensed Copies" specified above. 9 | 2. Incorporation of the Product into your own software, modification of the Product's source-code and incorporation of the modified source-code into your software, within the limits of the number of "Licenced Copies" specified above. 10 | 3. Royalty-free distribution of your software with the incorporated Product. 11 | 4. You may make copies of the Product for backup and archival purposes. 12 | 5. www.jibble.org reserves all rights not expressly granted to you in this agreement. 13 | 14 | NO WARRANTY 15 | 16 | This Product is provided on an "as is" basis without warranty of any kind, expressed or implied, including, but not limited to implied warranties of merchantability or fitness for a particular purpose. All other warranties are also expressly disclaimed. 17 | LIMITATION OF LIABILITY 18 | 19 | Under no circumstances and under no legal theory, tort, contract, or otherwise, shall www.jibble.org be liable to you or any other person for any indirect, special, incidental, or consequential damages of any character including, without limitation, damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses. In no event will www.jibble.org be liable for any damages in excess of the amount www.jibble.org received from you for a license to the Product, even if www.jibble.org shall have been informed of the possibility of such damages, or for any claim by any other party. 20 | SUITABILITY 21 | 22 | The persons or company using this Product are solely responsible for thoroughly testing it to make sure it works to their satisfaction before purchasing a license and/or incorporating it into their programs. By obtaining a license, the licensee indicates that the Product has met his/her expectations and runs to his/her satisfaction. 23 | TERMINATION 24 | 25 | This agreement terminates, you lose all rights licensed to you, and you must stop use of the Product if you: 26 | 27 | 1. fail to comply with any term or condition of this License Agreement or 28 | 2. do not pay the license fee. 29 | -------------------------------------------------------------------------------- /licenses/json: -------------------------------------------------------------------------------- 1 | Copyright (c) 2002 JSON.org 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 4 | 5 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 6 | 7 | The Software shall be used for Good, not Evil. 8 | 9 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 10 | -------------------------------------------------------------------------------- /licenses/lint4j: -------------------------------------------------------------------------------- 1 | CAREFULLY READ THE FOLLOWING TERMS AND CONDITIONS OF THIS LICENSE 2 | AGREEMENT. BY CLICKING ON THE "ACCEPT" BUTTON ACCOMPANYING THIS 3 | LICENSE AGREEMENT OR BY DOWNLOADING OR USING THE LINT4J SOFTWARE, 4 | YOU INDICATE THE ACCEPTANCE OF THE FOLLOWING TERMS AND CONDITIONS 5 | AND YOU AGREE TO BE BOUND BY THEM. IF YOU DO NOT AGREE TO BE BOUND 6 | BY THESE TERMS AND CONDITIONS, YOU MAY NOT DOWNLOAD OR USE THE 7 | LINT4J SOFTWARE. 8 | 9 | THIS LICENSE AGREEMENT CONSTITUTES THE COMPLETE AND EXCLUSIVE 10 | STATEMENT OF THE AGREEMENT BETWEEN YOU AND jutils.com WITH RESPECT 11 | TO THE LINT4J SOFTWARE AND SUPERSEDES ANY PROPOSAL OR PRIOR AGREEMENT, 12 | ORAL OR WRITTEN, AND ANY OTHER COMMUNICATIONS RELATING TO THE SUBJECT 13 | MATTER OF THIS AGREEMENT. 14 | 15 | 1. Grant of License and License Fee. 16 | By clicking on the "Accept" button accompanying this License Agreement 17 | or by downloading or using the "Lint4j" software accompanying this 18 | License Agreement (the "Licensed Product"), YOU shall be deemed to 19 | have accepted and agreed to be bound by the terms and conditions 20 | of this License Agreement and jutils.com, shall be deemed to have 21 | granted to YOU a License to install, use, and operate the Licensed 22 | Product. 23 | 24 | 2. Intellectual Property Rights. 25 | The Licensed Product and all intellectual property rights in the 26 | Licensed Product are, and shall remain, the property of jutils.com. 27 | All rights in and to the Licensed Product not expressly granted to 28 | YOU in this License Agreement are hereby expressly reserved and 29 | retained by jutils.com without restriction, including, without 30 | limitation, jutils.com right to sole ownership of the Licensed 31 | Product and Documentation. Without limiting the generality of the 32 | foregoing, YOU will not: 33 | 34 | (a) Sublicense, distribute, or use the Licensed Product outside 35 | of the scope of the License granted herein; 36 | 37 | (b) Copy, modify or reproduce the Licensed Product without the 38 | prior written consent of jutils.com; 39 | 40 | (c) Reverse engineer, disassemble, or decompile the Licensed Product 41 | or otherwise attempt to discover any source code or trade secrets 42 | related to the Licensed Product; 43 | 44 | (d) Use the trademarks or any copyright or other proprietary rights 45 | associated with the Licensed Product for any purpose without the 46 | express written consent of jutils.com; 47 | 48 | (e) Register, attempt to register, or assist anyone else to register 49 | any trademark, copyright or other proprietary rights associated 50 | with the jutils.com other than in the name of jutils.com; or 51 | 52 | (f) Remove, obscure, or alter any notice of copyright, trademark, or 53 | other proprietary right appearing in or on any item included 54 | with the Licensed Product. 55 | 56 | 3. Termination. 57 | This License Agreement and the License is effective until terminated 58 | by YOU or jutils.com. YOU may terminate this License Agreement and 59 | the License at any time by destroying the Licensed Product or 60 | removing it from your server. This License Agreement and the License 61 | will terminate immediately without notice from jutils.com if YOU 62 | fail to comply with any provision of this License Agreement or the 63 | License granted herein. Upon termination YOU must destroy the 64 | Licensed Product and related documentation and remove it from your 65 | computer. 66 | 67 | 4. Disclaimer of Warranty on Licensed Product. 68 | THE LICENSED PRODUCT IS LICENSED TO YOU "AS IS". NO WARRANTY, 69 | REPRESENTATION, CONDITION, UNDERTAKING OR TERM, EXPRESS OR IMPLIED, 70 | STATUTORY OR OTHERWISE, AS TO THE CONDITION, QUALITY, DURABILITY, 71 | PERFORMANCE, NON-INFRINGEMENT, MERCHANTABILITY, OR FITNESS FOR A 72 | PARTICULAR PURPOSE OR USE OF THE LICENSED PRODUCT IS GIVEN OR ASSUMED 73 | BY jutils.com, OR ITS AGENTS, AND ALL SUCH WARRANTIES, REPRESENTATIONS, 74 | CONDITIONS, UNDERTAKINGS AND TERMS ARE HEREBY EXCLUDED. 75 | 76 | 5. Limitation of Liability. 77 | YOU AGREE THAT jutils.com LIABILITY HEREUNDER FOR DIRECT DAMAGES 78 | ARISING OUT OF, UNDER, OR IN CONNECTION WITH THIS LICENSE, REGARDLESS 79 | OF THE FORM OF ACTION, WHETHER BASED IN CONTRACT, EQUITY, TORT, 80 | WARRANTY, OR OTHER FORM OF ACTION, WILL NOT EXCEED FIVE HUNDRED 81 | DOLLARS ($500.00). NOTWITHSTANDING ANYTHING TO THE CONTRARY CONTAINED 82 | IN THIS AGREEMENT, NEITHER PARTY SHALL UNDER ANY CIRCUMSTANCES BE 83 | LIABLE TO THE OTHER PARTY, OR ANY THIRD PARTY, TO THE EXTENT PERMITTED 84 | UNDER APPLICABLE LAW, FOR CONSEQUENTIAL, EXEMPLARY, PUNITIVE, 85 | MULTIPLE, INCIDENTAL OR SPECIAL DAMAGES, (INCLUDING WITHOUT LIMITATION, 86 | DAMAGES FOR LOST PROFITS, LOST SAVINGS, BUSINESS INTERUPTION, OR 87 | LOSS OF BUSINESS INFORMATION), EVEN IF SUCH PARTY HAS BEEN APPRISED 88 | OF THE LIKELIHOOD OF SUCH DAMAGES OCCURRING. BECAUSE SOME JURISDICTIONS 89 | DO NOT ALLOW THE EXCLUSION OR LIMITATION OF INCIDENTAL OR CONSEQUENTIAL 90 | DAMAGES, THE ABOVE EXCLUSIONS OF INCIDENTAL AND CONSEQUENTIAL DAMAGES 91 | MAY NOT APPLY. 92 | 93 | 6. Controlling Law and Severability. 94 | This License Agreement and the License shall be governed by and 95 | construed under the laws of the state of California without reference 96 | to its conflict of law principles. In the event of any conflicts 97 | between foreign law, rules, and regulations, and California law, 98 | rules, and regulations, California law, rules and regulations shall 99 | prevail and govern. The United Nations Convention on Contracts for 100 | the International Sale of Goods shall not apply to this License. 101 | If for any reason a court of competent jurisdiction finds any 102 | provision of this License Agreement or portion thereof, to be 103 | unenforceable, that provision of the License Agreement shall be 104 | enforced to the maximum extent permissible so as to effect the 105 | intent of the parties, and the remainder of this License Agreement 106 | shall continue in full force and effect. 107 | 108 | 7. Complete Agreement. 109 | This License Agreement constitutes the entire agreement between YOU 110 | and jutils.com with respect to the use of the Licensed Product and 111 | the related documentation, and supersedes all prior or contemporaneous 112 | understandings or agreements, written or oral, regarding such subject 113 | matter. No amendment to or modification of this License Agreement 114 | will be binding unless in writing and signed by a duly authorized 115 | representative of jutils.com. 116 | -------------------------------------------------------------------------------- /licenses/paulscode-SoundSystem: -------------------------------------------------------------------------------- 1 | The SoundSystem License: 2 | 3 | You are free to use this library for any purpose, commercial or otherwise. 4 | You may modify this library or source code, and distribute it any way you 5 | like, provided the following conditions are met: 6 | 7 | 1) You may not falsely claim to be the author of this library or any 8 | unmodified portion of it. 9 | 2) You may not copyright this library or a modified version of it and then 10 | sue me for copyright infringement. 11 | 3) If you modify the source code, you must clearly document the changes 12 | made before redistributing the modified source code, so other users know 13 | it is not the original code. 14 | 4) You are not required to give me credit for this library in any derived 15 | work, but if you do, you must also mention my website: 16 | http://www.paulscode.com 17 | 5) I the author will not be responsible for any damages (physical, 18 | financial, or otherwise) caused by the use if this library or any part 19 | of it. 20 | 6) I the author do not guarantee, warrant, or make any representations, 21 | either expressed or implied, regarding the use of this library or any 22 | part of it. 23 | 24 | Author: Paul Lamb 25 | http://www.paulscode.com 26 | -------------------------------------------------------------------------------- /licenses/sequence: -------------------------------------------------------------------------------- 1 | Sequence Library License 2 | 3 | This license applies to all portions of the Sequence library, which 4 | are not externally-maintained libraries (e.g. junit or jsch). 5 | ==================================================================== 6 | Copyright (c) 2000-2005 SyntEvo GmbH, Bayerisch Gmain, GERMANY. 7 | All rights reserved. 8 | 9 | Redistribution and use in source and binary forms, with or without 10 | modification, are permitted provided that the following conditions are 11 | met: 12 | 13 | 1. Redistributions of source code must retain the above copyright 14 | notice, this list of conditions and the following disclaimer. 15 | 16 | 2. Redistributions in binary form must reproduce the above copyright 17 | notice, this list of conditions and the following disclaimer in the 18 | documentation and/or other materials provided with the distribution. 19 | 20 | 3. The end-user documentation included with the redistribution, if 21 | any, must include the following acknowledgment: "This product includes 22 | software developed by SyntEvo GmbH, Bayerisch Gmain, GERMANY." 23 | Alternately, this acknowledgment may appear in the software itself, if 24 | and wherever such third-party acknowledgments normally appear. 25 | 26 | 4. The hosted project names must not be used to endorse or promote 27 | products derived from this software without prior written 28 | permission. For written permission, please contact 29 | sequence-library@syntevo.com. 30 | 31 | 5. Neither the name of SyntEvo GmbH nor the names of its contributors 32 | may be used to endorse or promote products derived from this 33 | software without specific prior written permission. 34 | 35 | THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED 36 | WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 37 | MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 38 | IN NO EVENT SHALL SyntEvo GmbH OR HIS CONTRIBUTORS BE LIABLE FOR ANY 39 | DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 40 | DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE 41 | GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 42 | INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER 43 | IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 44 | OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 45 | ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 46 | ==================================================================== 47 | 48 | 49 | -------------------------------------------------------------------------------- /licenses/tablelayout: -------------------------------------------------------------------------------- 1 | /* 2 | * ==================================================================== 3 | * 4 | * The Clearthought Software License, Version 2.0 5 | * 6 | * Copyright (c) 2001 Daniel Barbalace. All rights reserved. 7 | * 8 | * Project maintained at https://tablelayout.dev.java.net 9 | * 10 | * I. Terms for redistribution of original source and binaries 11 | * 12 | * Redistribution and use of unmodified source and/or binaries are 13 | * permitted provided that the following condition is met: 14 | * 15 | * 1. Redistributions of original source code must retain the above 16 | * copyright notice and license. You are not required to redistribute 17 | * the original source; you may choose to redistribute only the 18 | * binaries. 19 | * 20 | * Basically, if you distribute unmodified source, you meet 21 | * automatically comply with the license with no additional effort on 22 | * your part. 23 | * 24 | * II. Terms for distribution of derived works via subclassing and/or 25 | * composition. 26 | * 27 | * You may generate derived works by means of subclassing and/or 28 | * composition (e.g., the Adaptor Pattern), provided that the following 29 | * conditions are met: 30 | * 31 | * 1. Redistributions of original source code must retain the above 32 | * copyright notice and license. You are not required to redistribute 33 | * the original source; you may choose to redistribute only the 34 | * binaries. 35 | * 36 | * 2. The original software is not altered. 37 | * 38 | * 3. Derived works are not contained in the info.clearthought 39 | * namespace/package or any subpackage of info.clearthought. 40 | * 41 | * 4. Derived works do not use the class or interface names from the 42 | * info.clearthought... packages 43 | * 44 | * For example, you may define a class with the following full name: 45 | * org.nameOfMyOrganization.layouts.RowMajorTableLayout 46 | * 47 | * However, you may not define a class with the either of the 48 | * following full names: 49 | * info.clearthought.layout.RowMajorTableLayout 50 | * org.nameOfMyOrganization.layouts.TableLayout 51 | * 52 | * III. Terms for redistribution of source modified via patch files. 53 | * 54 | * You may generate derived works by means of patch files provided 55 | * that the following conditions are met: 56 | * 57 | * 1. Redistributions of original source code must retain the above 58 | * copyright notice and license. You are not required to 59 | * redistribute the original source; you may choose to redistribute 60 | * only the binaries resulting from the patch files. 61 | * 62 | * 2. The original source files are not altered. All alteration is 63 | * done in patch files. 64 | * 65 | * 3. Derived works are not contained in the info.clearthought 66 | * namespace/package or any subpackage of info.clearthought. This 67 | * means that your patch files must change the namespace/package 68 | * for the derived work. See section II for examples. 69 | * 70 | * 4. Derived works do not use the class or interface names from the 71 | * info.clearthought... packages. This means your patch files 72 | * must change the names of the interfaces and classes they alter. 73 | * See section II for examples. 74 | * 75 | * 5. Derived works must include the following disclaimer. 76 | * "This work is derived from Clearthought's TableLayout, 77 | * https://tablelayout.dev.java.net, by means of patch files 78 | * rather than subclassing or composition. Therefore, this work 79 | * might not contain the latest fixes and features of TableLayout." 80 | * 81 | * IV. Terms for repackaging, transcoding, and compiling of binaries. 82 | * 83 | * You may do any of the following with the binaries of the 84 | * original software. 85 | * 86 | * 1. You may move binaries (.class files) from the original .jar file 87 | * to your own .jar file. 88 | * 89 | * 2. You may move binaries from the original .jar file to other 90 | * resource containing files, including but not limited to .zip, 91 | * .gz, .tar, .dll, .exe files. 92 | * 93 | * 3. You may backend compile the binaries to any platform, including 94 | * but not limited to Win32, Win64, MAC OS, Linux, Palm OS, any 95 | * handheld or embedded platform. 96 | * 97 | * 4. You may transcribe the binaries to other virtual machine byte 98 | * code protocols, including but not limited to .NET. 99 | * 100 | * V. License Disclaimer. 101 | * 102 | * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED 103 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 104 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 105 | * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR, AFFILATED BUSINESSES, 106 | * OR ANYONE ELSE BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 107 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 108 | * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF 109 | * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 110 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 111 | * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT 112 | * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 113 | * SUCH DAMAGE. 114 | * ==================================================================== 115 | */ 116 | -------------------------------------------------------------------------------- /licenses/tmate: -------------------------------------------------------------------------------- 1 | The TMate Open Source License. 2 | 3 | This license applies to all portions of TMate SVNKit library, which 4 | are not externally-maintained libraries (e.g. Ganymed SSH library). 5 | 6 | All the source code and compiled classes in package org.tigris.subversion.javahl 7 | except SvnClient class are covered by the license in JAVAHL-LICENSE file 8 | 9 | Copyright (c) 2004-2006 TMate Software. All rights reserved. 10 | 11 | Redistribution and use in source and binary forms, with or without modification, 12 | are permitted provided that the following conditions are met: 13 | 14 | * Redistributions of source code must retain the above copyright notice, 15 | this list of conditions and the following disclaimer. 16 | 17 | * Redistributions in binary form must reproduce the above copyright notice, 18 | this list of conditions and the following disclaimer in the documentation 19 | and/or other materials provided with the distribution. 20 | 21 | * Redistributions in any form must be accompanied by information on how to 22 | obtain complete source code for the software that uses SVNKit and any 23 | accompanying software that uses the software that uses SVNKit. The source 24 | code must either be included in the distribution or be available for no 25 | more than the cost of distribution plus a nominal fee, and must be freely 26 | redistributable under reasonable conditions. For an executable file, complete 27 | source code means the source code for all modules it contains. It does not 28 | include source code for modules or files that typically accompany the major 29 | components of the operating system on which the executable file runs. 30 | 31 | * Redistribution in any form without redistributing source code for software 32 | that uses SVNKit is possible only when such redistribution is explictly permitted 33 | by TMate Software. Please, contact TMate Software at support@svnkit.com to 34 | get such permission. 35 | 36 | THIS SOFTWARE IS PROVIDED BY TMATE SOFTWARE ``AS IS'' AND ANY EXPRESS OR IMPLIED 37 | WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 38 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT, ARE 39 | DISCLAIMED. 40 | 41 | IN NO EVENT SHALL TMATE SOFTWARE BE LIABLE FOR ANY DIRECT, INDIRECT, 42 | INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 43 | LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 44 | PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 45 | LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE 46 | OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 47 | ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 48 | -------------------------------------------------------------------------------- /licenses/trilead-ssh2: -------------------------------------------------------------------------------- 1 | Copyright (c) 2007-2008 Trilead AG (http://www.trilead.com) 2 | 3 | All rights reserved. 4 | 5 | Redistribution and use in source and binary forms, with or without 6 | modification, are permitted provided that the following conditions 7 | are met: 8 | 9 | a.) Redistributions of source code must retain the above copyright 10 | notice, this list of conditions and the following disclaimer. 11 | b.) Redistributions in binary form must reproduce the above copyright 12 | notice, this list of conditions and the following disclaimer in the 13 | documentation and/or other materials provided with the distribution. 14 | c.) Neither the name of Trilead nor the names of its contributors may 15 | be used to endorse or promote products derived from this software 16 | without specific prior written permission. 17 | 18 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 19 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 20 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 21 | ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 22 | LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 23 | CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 24 | SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 25 | INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 26 | CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 27 | ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 28 | POSSIBILITY OF SUCH DAMAGE. 29 | 30 | Trilead SSH-2 for Java includes code that was written by Dr. Christian Plattner 31 | during his PhD at ETH Zurich. The license states the following: 32 | 33 | Copyright (c) 2005 - 2006 Swiss Federal Institute of Technology (ETH Zurich), 34 | Department of Computer Science (http://www.inf.ethz.ch), 35 | Christian Plattner. All rights reserved. 36 | 37 | Redistribution and use in source and binary forms, with or without 38 | modification, are permitted provided that the following conditions 39 | are met: 40 | 41 | a.) Redistributions of source code must retain the above copyright 42 | notice, this list of conditions and the following disclaimer. 43 | b.) Redistributions in binary form must reproduce the above copyright 44 | notice, this list of conditions and the following disclaimer in the 45 | documentation and/or other materials provided with the distribution. 46 | c.) Neither the name of ETH Zurich nor the names of its contributors may 47 | be used to endorse or promote products derived from this software 48 | without specific prior written permission. 49 | 50 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 51 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 52 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 53 | ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 54 | LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 55 | CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 56 | SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 57 | INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 58 | CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 59 | ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 60 | POSSIBILITY OF SUCH DAMAGE. 61 | 62 | The Java implementations of the AES, Blowfish and 3DES ciphers have been 63 | taken (and slightly modified) from the cryptography package released by 64 | "The Legion Of The Bouncy Castle". 65 | 66 | Their license states the following: 67 | 68 | Copyright (c) 2000 - 2004 The Legion Of The Bouncy Castle 69 | (http://www.bouncycastle.org) 70 | 71 | Permission is hereby granted, free of charge, to any person obtaining a copy 72 | of this software and associated documentation files (the "Software"), to deal 73 | in the Software without restriction, including without limitation the rights 74 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 75 | copies of the Software, and to permit persons to whom the Software is 76 | furnished to do so, subject to the following conditions: 77 | 78 | The above copyright notice and this permission notice shall be included in 79 | all copies or substantial portions of the Software. 80 | 81 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 82 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 83 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 84 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 85 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 86 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 87 | THE SOFTWARE. 88 | 89 | -------------------------------------------------------------------------------- /metadata/.gitignore: -------------------------------------------------------------------------------- 1 | /md5-cache/ 2 | /pkg_desc_index 3 | -------------------------------------------------------------------------------- /metadata/layout.conf: -------------------------------------------------------------------------------- 1 | masters = gentoo 2 | eapis-deprecated = 0 1 2 3 4 3 | manifest-hashes = BLAKE2B SHA512 4 | manifest-required-hashes = BLAKE2B 5 | update-changelog = false 6 | thin-manifests = true 7 | sign-manifests = false 8 | sign-commits = true 9 | cache-formats = md5-dict 10 | -------------------------------------------------------------------------------- /profiles/eapi: -------------------------------------------------------------------------------- 1 | 5 2 | -------------------------------------------------------------------------------- /profiles/package.mask: -------------------------------------------------------------------------------- 1 | ##################################################################### 2 | # $Id$ 3 | # When you add an entry to this file, add your name, the date, and an 4 | # explanation of why something is getting masked 5 | # 6 | # NOTE: Please add your entry at the top! 7 | # 8 | 9 | # Serkan Kaba (12 May 2009) 10 | # Mask date releases to provide a downgrade path 11 | >=dev-lang/clojure-20080916 12 | -------------------------------------------------------------------------------- /profiles/repo_name: -------------------------------------------------------------------------------- 1 | java 2 | -------------------------------------------------------------------------------- /profiles/updates/4Q-2011: -------------------------------------------------------------------------------- 1 | move dev-java/findbugs dev-util/findbugs 2 | -------------------------------------------------------------------------------- /skel.ebuild.java: -------------------------------------------------------------------------------- 1 | # Copyright 1999-2015 Gentoo Foundation 2 | # Distributed under the terms of the GNU General Public License v2 3 | # $Id$ 4 | 5 | EAPI=1 6 | JAVA_PKG_IUSE="doc source" 7 | 8 | inherit java-pkg-2 java-ant-2 9 | 10 | DESCRIPTION="" 11 | HOMEPAGE="" 12 | MY_PV= 13 | MY_PN= 14 | MY_P=${MY_PN}-${PV} 15 | SRC_URI="${P}.zip" 16 | 17 | LICENSE="" 18 | SLOT="0" 19 | KEYWORDS="~x86" 20 | 21 | IUSE="" 22 | 23 | COMMON_DEP=" 24 | " 25 | 26 | RDEPEND=">=virtual/jre-1.4 27 | ${COMMON_DEP}" 28 | DEPEND=">=virtual/jdk-1.4 29 | app-arch/unzip 30 | ${COMMON_DEP}" 31 | 32 | S=${WORKDIR}/${MY_P} 33 | 34 | src_unpack() { 35 | unpack ${A} 36 | cd "${S}" 37 | } 38 | 39 | EANT_BUILD_TARGET="" 40 | EANT_DOC_TARGET="" 41 | 42 | src_install() { 43 | java-pkg_dojar 44 | use doc && java-pkg_dojavadoc 45 | use source && java-pkg_dosrc 46 | } 47 | -------------------------------------------------------------------------------- /sys-apps/baselayout-java/baselayout-java-9999.ebuild: -------------------------------------------------------------------------------- 1 | # Copyright 1999-2021 Gentoo Authors 2 | # Distributed under the terms of the GNU General Public License v2 3 | 4 | EAPI=7 5 | 6 | inherit autotools xdg-utils 7 | 8 | DESCRIPTION="Baselayout for Java" 9 | HOMEPAGE="https://www.gentoo.org/proj/en/java/" 10 | 11 | if [[ "${PV}" == "9999" ]] || [[ -n "${EGIT_COMMIT_ID}" ]]; then 12 | EGIT_REPO_URI="https://anongit.gentoo.org/git/proj/baselayout-java.git" 13 | inherit git-r3 14 | else 15 | SRC_URI="https://dev.gentoo.org/~gyakovlev/distfiles/${P}.tar.gz" 16 | KEYWORDS="~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~x86 ~amd64-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" 17 | fi 18 | 19 | LICENSE="GPL-2" 20 | SLOT="0" 21 | IUSE="" 22 | 23 | RDEPEND="!! 2 | 3 | 4 | 5 | java@gentoo.org 6 | Java 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /virtual/gradle/gradle-0.ebuild: -------------------------------------------------------------------------------- 1 | # Copyright 1999-2021 Gentoo Authors 2 | # Distributed under the terms of the GNU General Public License v2 3 | 4 | EAPI=7 5 | 6 | DESCRIPTION="Virtual for gradle" 7 | SLOT="0" 8 | KEYWORDS="~amd64 ~x86" 9 | 10 | RDEPEND="|| ( dev-java/gradle-bin 11 | dev-java/gradle )" 12 | -------------------------------------------------------------------------------- /virtual/gradle/metadata.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | flow@gentoo.org 6 | Florian Schmaus 7 | 8 | 9 | --------------------------------------------------------------------------------