Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 73359 - New sun-java3d-bin ebuild
Summary: New sun-java3d-bin ebuild
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 All
: High normal (vote)
Assignee: Java team
URL: https://j3d-core.dev.java.net/servlet...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-04 10:36 UTC by James Le Cuirot
Modified: 2005-04-04 09:33 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
New ebuild for sun-java3d-bin (sun-java3d-bin-1.3.2_pre8.ebuild,1.18 KB, text/plain)
2004-12-04 10:37 UTC, James Le Cuirot
Details
This ebuild seems to work for the latest sun offering. (sun-java3d-bin-1.32-r2.ebuild,1.16 KB, text/plain)
2005-03-22 15:53 UTC, Chris Nix
Details

Note You need to log in before you can comment on or make changes to this bug.
Description James Le Cuirot gentoo-dev 2004-12-04 10:36:22 UTC
The current sun-java3d-bin ebuild downloads build4. Things have now moved up to build8. Perhaps there haven't been many changes but I thought I'd try it anyway. Unfortunately, the current ebuild wasn't correctly named and this new ebuild registers in Portage as a downgrade rather than an upgrade. I'm not sure what is usually done when that happens. packages.mask perhaps?
Comment 1 James Le Cuirot gentoo-dev 2004-12-04 10:37:24 UTC
Created attachment 45280 [details]
New ebuild for sun-java3d-bin
Comment 2 James Le Cuirot gentoo-dev 2004-12-04 12:08:36 UTC
Oh yeah, the name of the file is supposed to be sun-java3d-bin-1.3.2_pre8.ebuild. I thing pre would be the right suffix to use in this case since these are experimental builds.
Comment 3 Chris Nix 2005-03-22 15:53:36 UTC
Created attachment 54192 [details]
This ebuild seems to work for the latest sun offering.

Sun have changed things around a little.  This ebuild works for me, after
obtaining the zip file.
Comment 4 Mivz 2005-03-24 04:09:06 UTC
Hello,
I addapted the ebuil to work whit the new beta3 zip file. I also ajusted the download url. Mabey this wil help.
Mivz (H. Hoogeveen)
mivz@spugium.net

# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-java/sun-java3d-bin/sun-java3d-bin-1.32-r1.ebuild,v 1.2 2004/07/31 16:29:47 axxo Exp $

inherit java-pkg

MY_P="java3d-1_3_2-beta3-linux-i586"
DESCRIPTION="Sun Java3D"
HOMEPAGE="https://j3d-core.dev.java.net/"
SRC_URI="http://javadesktop.org/java3d/builds/stable/1_3_2-beta3/${MY_P}.zip"
KEYWORDS="~x86 -*"
SLOT="0"
LICENSE="sun-jrl sun-jdl"
IUSE=""
DEPEND=""
RDEPEND=">=virtual/jdk-1.3"
RESTRICT="nomirror"

S=${WORKDIR}/${MY_P}

pkg_nofetch() {
	einfo "Please download ${SRC_URI} from ${HOMEPAGE} and place it in ${DISTDIR}"
}

src_unpack() {
	jar xf ${DISTDIR}/${A}
	cd ${S}

	MY_P2=$(echo ${MY_P} | sed "s/java3d/j3d/g" | sed "s/_//g" | sed "s/i[0-9]86/x86/g")

	jar xf ${MY_P2}.zip
}
src_compile() { :; }

src_install() {
	dodoc COPYRIGHT.txt README.txt

	java-pkg_dojar lib/ext/*.jar
	java-pkg_doso lib/i386/*.so
}

pkg_postinst() {
	einfo "This ebuild now installs into /opt/${PN} and /usr/share/${PN}"
	einfo 'To use you need to pass the following to java'
	einfo '-Djava.library.path=$(java-config -i sun-java3d-bin) -cp $(java-config -p sun-java3d-bin)'
}
Comment 5 Jan Brinkmann (RETIRED) gentoo-dev 2005-04-04 09:33:25 UTC
version bumped, thanks for reporting