public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] sun-jdk-1.4.1 ebuild
@ 2002-09-29  8:53 bruce
  0 siblings, 0 replies; only message in thread
From: bruce @ 2002-09-29  8:53 UTC (permalink / raw
  To: tools

[-- Attachment #1: Type: text/plain, Size: 527 bytes --]

Hi,

I've made an ebuild of the Sun JDK 1.4.1.   It's based on the 1.4.1_rc1 file, except that a dependancy on sys-libs/lib-compat has been added because ControlPanel and the java plugin depend on libstdc++-libc6.1-1.so.2.

Note that I have also changed the cvs header, but it is, of course, invalid.
I don't know if the install.sfx file is needed, because the JDK installs by just running the file directly with /bin/sh, and so lines 30-33 could probably be replaced with

/bin/sh ${DISTDIR}/${At} || die

Thanks.

Bruce Cran

[-- Attachment #2: sun-jdk-1.4.1.ebuild --]
[-- Type: text/plain, Size: 2235 bytes --]

# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# $Header: /home/cvsroot/gentoo-x86/dev-java/sun-jdk/sun-jdk-1.4.1.ebuild,v 1.0 2002/09/29 08:13:15 bcran Exp $

. /usr/portage/eclass/inherit.eclass
inherit java

At="j2sdk-1_4_1-linux-i586.bin"
S=${WORKDIR}/j2sdk1.4.1
SRC_URI=""
DESCRIPTION="Sun's J2SE Development Kit, version 1.4.1"
HOMEPAGE="http://java.sun.com/j2se/1.4.1/download.html"
LICENSE="sun-bcla"
SLOT="1.4"
KEYWORDS="x86 -ppc"
DEPEND="virtual/glibc
	sys-libs/lib-compat
	>=dev-java/java-config-0.2.5
	doc? ( =dev-java/java-sdk-docs-1.4.0* )"
RDEPEND="$DEPEND"

PROVIDE="virtual/jre-1.4
	virtual/jdk-1.4
	virtual/java-scheme-2"
	
src_unpack() {
	if [ ! -f ${DISTDIR}/${At} ] ; then
		die "Please download ${At} from ${HOMEPAGE} (select the \"Linux self-extracting file\" package format of the SDK) and move it to ${DISTDIR}"
	fi
	cat        ${DISTDIR}/${At} > install.sfx
	chmod +x install.sfx
	./install.sfx || die
	rm install.sfx
}

src_install () {
	local dirs="bin include jre lib"
	dodir /opt/${P}
	
	
	for i in $dirs ; do
		cp -a $i ${D}/opt/${P}/
	done
	
	dodoc COPYRIGHT README LICENSE
	dohtml README.html
	
	doman man/man1/*.1
	
	dodir /opt/${P}/share/
	cp -a demo src.zip ${D}/opt/${P}/share/
	
	if [ "`use mozilla`" ] ; then
		dodir /usr/lib/mozilla/plugins
		dosym /opt/${P}/jre/plugin/i386/ns610/libjavaplugin_oji.so /usr/lib/mozilla/plugins/
	fi

	set_java_env ${FILESDIR}/${VMHANDLE}	
}

pkg_postinst () {                                                               
	# Set as default VM if none exists
	java_pkg_postinst

	einfo "To make ${P} the default JDK and JRE, run (as root): java-config --set-system-vm=${P}; env-update"

	if [ "`use mozilla`" ] ; then                                           
		einfo "The Mozilla browser plugin has been installed as /usr/lib/mozilla/plugins/libjavaplugin_oji140.so"
	else                                                                    
		einfo "To install the Java plugin for Mozilla manually, do:"
		einfo "ln -s /opt/${P}/jre/plugin/i386/ns610/libjavaplugin_oji.so /usr/lib/mozilla/plugins/"
		einfo "(Make certain the directory /usr/lib/mozilla/plugins exists first)"
	fi
}

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-09-29  8:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-09-29  8:53 [gentoo-dev] sun-jdk-1.4.1 ebuild bruce

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox