# Copyright 1999-2000 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License, v2 or later # Author Karl Trygve Kalleberg # $Header: /var/cvsroot/gentoo-x86/dev-java/blackdown-jdk/blackdown-jdk-1.3.1-r4.ebuild,v 1.1 2002/04/09 22:06:58 karltk Exp $ A=j2sdk-1.3.1-FCS-linux-i386.tar.bz2 S=${WORKDIR}/j2sdk1.3.1 DESCRIPTION="Blackdown Java Development Kit 1.3.1" SRC_URI="ftp://metalab.unc.edu/pub/linux/devel/lang/java/blackdown.org/JDK-1.3.1/i386/FCS/${A}" HOMEPAGE="http://www.blackdown.org" DEPEND="virtual/glibc >=dev-java/java-config-0.2.0" RDEPEND="$DEPEND" PROVIDE="virtual/jdk-1.3 virtual/jre-1.3 virtual/java-scheme-2" 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} ${D}/opt/${P}/share dodoc COPYRIGHT LICENSE README INSTALL dohtml README.html if [ "`use mozilla`" ] ; then dodir /usr/lib/mozilla/plugins dosym /opt/${P}/jre/plugin/i386/mozilla/javaplugin_oji.so /usr/lib/mozilla/plugins/javaplugin_oji.so fi 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 dodir /etc/env.d/java sed \ -e "s/@P@/${P}/g" \ -e "s/@PV@/${PV}/g" \ -e "s/@PF@/${PF}/g" \ < ${FILESDIR}/blackdown-jdk-${PV} \ > ${D}/etc/env.d/java/20blackdown-jdk-${PV} } pkg_postinst () { if [ "`use mozilla`" ] ; then einfo "The Mozilla browser plugin has been installed as /usr/lib/mozilla/plugins/javaplugin_oji.so" else einfo "For instructions on installing the ${P} browser plugin for" einfo "Netscape and Mozilla, see /usr/share/doc/${P}/INSTALL." fi }