diff --git a/Programming/Java/12.0.2/variants b/Programming/Java/12.0.2/variants new file mode 100644 index 0000000..c67ef1b --- /dev/null +++ b/Programming/Java/12.0.2/variants @@ -0,0 +1 @@ +Java/12.0.2 stable diff --git a/Programming/Java/build b/Programming/Java/build new file mode 100644 index 0000000..7589acb --- /dev/null +++ b/Programming/Java/build @@ -0,0 +1,55 @@ +#!/usr/bin/env modbuild + +pbuild::set_download_url "https://download.java.net/java/GA/jdk12.0.2/e482c34c86bd4bf8b56c0b35558996b9/10/GPL/openjdk-12.0.2_linux-x64_bin.tar.gz" + +pbuild::add_to_group 'Programming' + +pbuild::compile_in_sourcetree + +pbuild::install_docfiles "legal/jdk.net/LICENSE" "release" + +pbuild::compile() { + : +} + +pbuild::install() { + install -m 0755 -d "${PREFIX}/bin" + for binary_file in $(ls ${SRC_DIR}/bin/*) + do + install -m 0755 "${binary_file}" "${PREFIX}/bin" + done + + for java_dir in $(echo "lib lib/security lib/jfr lib/server") + do + mkdir -p "${PREFIX}/${java_dir}" + install -m 0755 -d "${PREFIX}/${java_dir}" + for library_file in $(find ${SRC_DIR}/${java_dir} -maxdepth 1 -type f) + do + install -m 0755 "${library_file}" "${PREFIX}/${java_dir}" + done + done + + for java_dir in $(echo "conf conf/management conf/security conf/security/policy conf/security/policy/unlimited conf/security/policy/limited conf/sdp") + do + mkdir -p "${PREFIX}/${java_dir}" + install -m 0755 -d "${PREFIX}/${java_dir}" + for library_file in $(find ${SRC_DIR}/${java_dir} -maxdepth 1 -type f) + do + install -m 0755 "${library_file}" "${PREFIX}/${java_dir}" + done + done + + for java_dir in $(echo "jmods") + do + mkdir -p "${PREFIX}/${java_dir}" + install -m 0755 -d "${PREFIX}/${java_dir}" + for library_file in $(find ${SRC_DIR}/${java_dir} -maxdepth 1 -type f) + do + install -m 0755 "${library_file}" "${PREFIX}/${java_dir}" + done + done +} + +pbuild::cleanup_src() { + : +} diff --git a/Programming/Java/modulefile b/Programming/Java/modulefile new file mode 100644 index 0000000..aad0de1 --- /dev/null +++ b/Programming/Java/modulefile @@ -0,0 +1,21 @@ +#%Module1.0 + +module-whatis "Java Development Kit builds, from Oracle" +module-url "http://jdk.java.net/" +module-license "See PREFIX/share/doc/COPYING" +module-maintainer "Marc Caubet " +module-help " +Open Java Development Kit) is a free and open-source +implementation of the Java Platform, Standard Edition +(Java SE). It is the result of an effort Sun Microsystems +began in 2006. + +The implementation is licensed under the GNU General +Public License (GNU GPL) version 2 with a linking +exception. Were it not for the GPL linking exception, +components that linked to the Java class library would be +subject to the terms of the GPL license. + +OpenJDK is the official reference implementation of Java +SE. +"