# Copyright 2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ MY_PV=${PV//./_} MY_P=java_card_kit-${MY_PV} MY_PVB=${PV%.*} DESCRIPTION="Sun's Java Card Development Kit, version ${PV}" HOMEPAGE="http://java.sun.com/products/javacard/dev_kit.html" At="java_card_kit-${PV//./_}-linux-dom.zip" SRC_URI="${At}" LICENSE="sun-bcla-java-vm" ###??? SLOT="2.2" # Don't know about compatibility beyond x86 -- probably so, since Java KEYWORDS="~x86" IUSE="java" # Build-time dependencies, such as # ssl? ( >=dev-libs/openssl-0.9.6b ) # >=dev-lang/perl-5.6.1-r1 # It is advisable to use the >= syntax show above, to reflect what you # had installed on your system when you tested the package. Then # other users hopefully won't be caught without the right version of # a dependency. DEPEND=">=dev-java/sun-jdk-1.4.1 app-arch/unzip " # Run-time dependencies, same as DEPEND if RDEPEND isn't defined: #RDEPEND="" S="${WORKDIR}/${MY_P}" RESTRICT="fetch" pkg_nofetch() { einfo "Please download ${DESCRIPTION} from:" einfo ${HOMEPAGE} einfo "and move ${At} to ${DISTDIR}" } src_install() { local dirs="api_export_files bin lib samples" dodir /opt/${P} for i in $dirs ; do cp -dPR ${S}/${i} ${D}opt/${P}/ done dodoc ${S}/COPYRIGHT_dom dohtml ${S}/LICENSE.html ${S}RELEASENOTES.html cat > 20java-card-kit <