diff options
Diffstat (limited to 'dev-java')
-rw-r--r-- | dev-java/apt-mirror/Manifest | 3 | ||||
-rw-r--r-- | dev-java/apt-mirror/apt-mirror-1.0-r1.ebuild | 23 | ||||
-rw-r--r-- | dev-java/apt-mirror/metadata.xml | 8 | ||||
-rw-r--r-- | dev-java/lwjgl/lwjgl-2.9.3-r1.ebuild | 84 |
4 files changed, 118 insertions, 0 deletions
diff --git a/dev-java/apt-mirror/Manifest b/dev-java/apt-mirror/Manifest new file mode 100644 index 0000000..1a57c21 --- /dev/null +++ b/dev-java/apt-mirror/Manifest @@ -0,0 +1,3 @@ +DIST apt-mirror-1.0.tar.bz2 21396 BLAKE2B 996253732f3aeaffeb57d6ac26d5e18ae47a40843a60ffe570edcbd325691b43c69fdd866e44d1d35295b2ccc64f5042f1dbe588a3700cd01ad10927ded702b4 SHA512 fdb58498bc5ff1f77858716b67dd952a3f3bea55d06d7190b1a1d283d11843ebf03c7403ba58f23478c1c553402d21c2089c2dca52f216d693ab713a43f5c1ff +EBUILD apt-mirror-1.0-r1.ebuild 467 BLAKE2B e8eeb72ea941e450a35fa71f25c9b816aaa2bf71e41a9bfcb33312311a1169a51c56fc1bf8ec41d6d932d986c0d2c1eb433ac5f68c484d2d06294dca06238349 SHA512 b36a2cf77cd5ed11fffccc044513dd0b6885e5854475107fc7304fc192459e63cf584b327b6992ef4acb310861094b664310c8ef0a79fe8bab5eea5ec00602aa +MISC metadata.xml 242 BLAKE2B 6bf5b48906c64a18d9f27e7ecec168ed039f8d390792d62aedb8c86627a13ff09d583a736982057d245fe5db27c4016257125d69792d6bbe424e7d2a35067675 SHA512 50f4d6219b995b723d6ebbb4f2a18adbf558a685f862aea00f072254dcc0fe6c1388e4aeaf21fb3ce0fb840a2ef4851807536d037c9682b21cb1986198715a4f diff --git a/dev-java/apt-mirror/apt-mirror-1.0-r1.ebuild b/dev-java/apt-mirror/apt-mirror-1.0-r1.ebuild new file mode 100644 index 0000000..d87a263 --- /dev/null +++ b/dev-java/apt-mirror/apt-mirror-1.0-r1.ebuild @@ -0,0 +1,23 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" + +JAVA_PKG_IUSE="doc source" + +inherit java-pkg-2 java-pkg-simple + +DESCRIPTION="Annotation processing apt mirror API introduced in J2SE 5.0" +HOMEPAGE="http://aptmirrorapi.dev.java.net/" +SRC_URI="mirror://gentoo/${P}.tar.bz2" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="amd64 x86" + +IUSE="" + +RDEPEND=">=virtual/jre-1.5" +DEPEND=">=virtual/jdk-1.5" + +S="${WORKDIR}/apt" diff --git a/dev-java/apt-mirror/metadata.xml b/dev-java/apt-mirror/metadata.xml new file mode 100644 index 0000000..37998bf --- /dev/null +++ b/dev-java/apt-mirror/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>java@gentoo.org</email> + <name>Java</name> + </maintainer> +</pkgmetadata> diff --git a/dev-java/lwjgl/lwjgl-2.9.3-r1.ebuild b/dev-java/lwjgl/lwjgl-2.9.3-r1.ebuild new file mode 100644 index 0000000..2c1146d --- /dev/null +++ b/dev-java/lwjgl/lwjgl-2.9.3-r1.ebuild @@ -0,0 +1,84 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +JAVA_PKG_IUSE="doc source" + +inherit eutils java-pkg-2 java-ant-2 + +DESCRIPTION="The Lightweight Java Game Library (LWJGL)" +HOMEPAGE="http://www.lwjgl.org" +SRC_URI="mirror://sourceforge/java-game-lib/Official%20Releases/LWJGL%20${PV}/${PN}-source-${PV}.zip" +LICENSE="BSD" +SLOT="2.9" +KEYWORDS="~amd64 ~x86" +IUSE="gles" + +CDEPEND="dev-java/apple-java-extensions-bin:0 + dev-java/apt-mirror:0 + dev-java/asm:4 + dev-java/jinput:0 + dev-java/jutils:0 + x11-libs/libX11 + x11-libs/libXcursor + x11-libs/libXrandr + x11-libs/libXxf86vm + gles? ( media-libs/mesa[egl,gles2] )" + +DEPEND="${CDEPEND} + >=virtual/jdk-1.7 + x11-proto/xproto" + +RDEPEND="${CDEPEND} + >=virtual/jre-1.7 + media-libs/openal + virtual/opengl + x11-apps/xrandr" + +S="${WORKDIR}" + +JAVA_PKG_BSFIX_NAME="build.xml build-generator.xml" +JAVA_ANT_REWRITE_CLASSPATH="true" +EANT_GENTOO_CLASSPATH="apple-java-extensions-bin,apt-mirror,asm-4,jinput,jutils" + +java_prepare() { + # We don't want a prerelease in the tree. + epatch "${FILESDIR}/asm-4.patch" + + # This file is missing. + # Output separate JARs for GLES. + sed -i -r \ + -e "/build-updatesite\.xml/d" \ + -e '/<target name="-createjars_es">/,/<\/target>/s/lwjgl([^.]*\.jar)/lwjgles\1/g' \ + build.xml || die +} + +compile_native() { + # Their native build script sucks. + cd "${S}/src/native" || die + LIBRARY_PATH="$(java-config -g LDPATH)" gcc -shared -fPIC -std=c99 -pthread -Wall -Wl,--version-script=linux/${PN}.map -Wl,-z -Wl,defs ${CFLAGS} ${LDFLAGS} $(java-pkg_get-jni-cflags) -I{common,linux}{,/open$2} {common,linux}{,/open$2}/*.c generated/open{al,cl,$2}/*.c $3 -lm -lX11 -lXcursor -lXrandr -lXxf86vm -ljawt -ldl -o lib${PN%gl}$2$1.so || die +} + +src_compile() { + EANT_BUILD_TARGET="headers jars" + use gles && EANT_BUILD_TARGET+=" jars_es" + + # Build the JARs and headers. + java-pkg-2_src_compile + + # Add "64" for amd64. + local BITS= + use amd64 && BITS=64 + + compile_native "${BITS}" "gl" "" + use gles && compile_native "${BITS}" "gles" "-lEGL" +} + +src_install() { + java-pkg_dojar libs/${PN}*.jar + java-pkg_doso src/native/lib${PN}*.so + + use doc && java-pkg_dojavadoc doc/javadoc + use source && java-pkg_dosrc src/java/org +} |