diff options
author | Thomas Matthijs <axxo@gentoo.org> | 2004-07-30 19:06:13 +0000 |
---|---|---|
committer | Thomas Matthijs <axxo@gentoo.org> | 2004-07-30 19:06:13 +0000 |
commit | 99626c0865875dd73a410745495a80e26671412b (patch) | |
tree | a7525f79ee9528ff85a1d5d02c27cd5e4feb51d3 /dev-java/blackdown-java3d-bin/blackdown-java3d-bin-1.3.1.ebuild | |
parent | use packed seednodes instead of unpacked ones, #58898 (diff) | |
download | gentoo-2-99626c0865875dd73a410745495a80e26671412b.tar.gz gentoo-2-99626c0865875dd73a410745495a80e26671412b.tar.bz2 gentoo-2-99626c0865875dd73a410745495a80e26671412b.zip |
move dev-java/blackdown-java3d dev-java/blackdown-java3d-bin
Diffstat (limited to 'dev-java/blackdown-java3d-bin/blackdown-java3d-bin-1.3.1.ebuild')
-rw-r--r-- | dev-java/blackdown-java3d-bin/blackdown-java3d-bin-1.3.1.ebuild | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/dev-java/blackdown-java3d-bin/blackdown-java3d-bin-1.3.1.ebuild b/dev-java/blackdown-java3d-bin/blackdown-java3d-bin-1.3.1.ebuild new file mode 100644 index 000000000000..c56b8316e637 --- /dev/null +++ b/dev-java/blackdown-java3d-bin/blackdown-java3d-bin-1.3.1.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/blackdown-java3d-bin/blackdown-java3d-bin-1.3.1.ebuild,v 1.1 2004/07/30 19:06:13 axxo Exp $ + +DESCRIPTION="Java 3D Software Development Kit" +SRC_URI="x86? ( mirror://blackdown.org/java3d/1.3.1/i386/fcs/java3d-sdk-${PV}-linux-i386.bin ) + amd64? ( mirror://blackdown.org/java3d/1.3.1/amd64/fcs/java3d-sdk-${PV}-linux-amd64.bin )" +HOMEPAGE="http://www.blackdown.org" +LICENSE="sun-bcla-java-vm" +KEYWORDS="~x86 -sparc ~amd64" +SLOT="0" +DEPEND=">=virtual/jdk-1.4.1 + >=dev-java/java-config-1.2.6" +RDEPEND="" +IUSE="doc" + +S=${WORKDIR} + +# Extract the 'skip' value (offset of tarball) we should pass to tail +get_offset() { + [ ! -f "$1" ] && return + + local offset="`gawk ' + /^[[:space:]]*skip[[:space:]]*=/ { + + sub(/^[[:space:]]*skip[[:space:]]*=/, "") + SKIP = $0 + } + + END { print SKIP } + ' $1`" + + eval echo $offset +} + +src_unpack () { + local offset="`get_offset ${DISTDIR}/${A}`" + + if [ -z "${offset}" ] ; then + eerror "Failed to get offset of tarball!" && die + fi + + einfo "Unpacking ${A}..." + tail -n +${offset} ${DISTDIR}/${A} | tar --no-same-owner -jxp +} + + +src_install () { + dodoc README-Java3D + + dodir `java-config -O`/jre + cp -a jre/lib ${D}/`java-config -O`/jre + use doc && cp -a demo ${D}/`java-config -O`/demo +} + +pkg_postinst() { + einfo "Note: This package installs into your currently selected JDK!" + einfo "Your currently selected JDK path is:" + einfo "\t `java-config -O`" + einfo + einfo "If this is incorrect, please unmerge this package and set your desired" + einfo "JDK with java-config" +} |