Added Java in stable repo, was in unstable for some time
This commit is contained in:
1
Programming/Java/12.0.2/variants
Normal file
1
Programming/Java/12.0.2/variants
Normal file
@@ -0,0 +1 @@
|
||||
Java/12.0.2 stable
|
||||
55
Programming/Java/build
Normal file
55
Programming/Java/build
Normal file
@@ -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() {
|
||||
:
|
||||
}
|
||||
21
Programming/Java/modulefile
Normal file
21
Programming/Java/modulefile
Normal file
@@ -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 <marc.caubet@psi.ch>"
|
||||
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.
|
||||
"
|
||||
Reference in New Issue
Block a user