# 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/blackdown-jdk/blackdown-jdk-1.4.1_beta.ebuild,v 1.3 2002/10/24 17:42:05 azarah Exp $ . /usr/portage/eclass/inherit.eclass inherit java S=${WORKDIR}/j2sdk1.4.1 DESCRIPTION="Blackdown Java Development Kit 1.4.1 Beta" SRC_URI="x86? ftp://metalab.unc.edu/pub/linux/devel/lang/java/blackdown.org/JDK-1.4.1/i386/beta/j2sdk-1.4.1-beta-linux-i586.bin" HOMEPAGE="http://www.blackdown.org" DEPEND="virtual/glibc >=dev-java/java-config-0.2.6 doc? ( =dev-java/java-sdk-docs-1.4.1* )" RDEPEND="$DEPEND" PROVIDE="virtual/jdk-1.4.1 virtual/jre-1.4.1 virtual/java-scheme-2" SLOT="1.4.1" LICENSE="sun-bcla" KEYWORDS="~x86 -ppc -sparc -sparc64" IUSE="mozilla doc" src_unpack () { tail +350 ${DISTDIR}/${A} | tar --no-same-owner -jxp } src_install () { dodir /opt/${P} cp -dpR ${S}/{bin,jre,lib,man,include,include-old} ${D}/opt/${P} dodir /opt/${P}/share/java cp -R ${S}/{demo,src}.{jar,zip} ${D}/opt/${P}/share dodoc COPYRIGHT LICENSE README INSTALL dohtml README.html # Install mozilla plugin if [ "${ARCH}" == "x86" ] ; then PLATFORM="i386" fi install_mozilla_plugin /opt/${P}/jre/plugin/${PLATFORM}/mozilla/javaplugin_oji.so find ${D}/opt/${P} -type f -name "*.so" -exec chmod +x \{\} \; mv ${D}/opt/${P}/jre/lib/font.properties ${D}/opt/${P}/jre/lib/font.properties.orig sed "s/standard symbols l/symbol/g" \ < ${D}/opt/${P}/jre/lib/font.properties.orig \ > ${D}/opt/${P}/jre/lib/font.properties rm ${D}/opt/${P}/jre/lib/font.properties.orig # install env into /etc/env.d set_java_env ${FILESDIR}/${VMHANDLE} || die if [ `pkglist | grep net-www/phoenix-bin | wc -l` -ge 1 ] ; then dodir /usr/lib/phoenix/plugins dosym /opt/${P}/plugin/${PLATFORM}/mozilla/javaplugin_oji.so \ /usr/lib/phoenix/plugins/javaplugin_oji.so fi } pkg_postinst () { # Set as default system VM if none exists java_pkg_postinst if [ -z "`use mozilla`" ] ; then einfo "For instructions on installing the ${P} browser plugin for" einfo "Netscape and Mozilla, see /usr/share/doc/${P}/INSTALL." fi }