# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI=2 inherit java-vm-2 java-pkg-2 icedtea="icedtea-6.1.3_pre20080530-gentoo-sparc" DOWNLOAD_PAGE="ftp://gentoo.fs.lmu.de/" DESCRIPTION="Free Software build environment for OpenJDK using GNU Classpath plugs" HOMEPAGE="http://icedtea.classpath.org/" SRC_URI="${DOWNLOAD_PAGE}/${icedtea}.tar.bz2" LICENSE="GPL-2-with-linking-exception" SLOT="0" KEYWORDS="-* ~sparc" IUSE="" RDEPEND=">=net-print/cups-1.2.12 >=x11-libs/libX11-1.1.3 >=x11-libs/openmotif-2.3.0 >=media-libs/freetype-2.3.5 >=media-libs/alsa-lib-1.0 >=x11-libs/gtk+-2.8 nsplugin? ( net-libs/xulrunner ) >=x11-libs/libXinerama-1.0.2 >=media-libs/jpeg-6b >=media-libs/libpng-1.2 >=media-libs/giflib-4.1.6" DEPEND=" ${RDEPEND}" RESTRICT="mirror strip" S="${WORKDIR}/${PN}${SLOT}-${icedtea}" pkg_setup() { java-vm-2_pkg_setup java-pkg-2_pkg_setup } src_unpack() { unpack ${icedtea}.tar.bz2 } src_compile() { ewarn "This is a binary build of Icedtea, this is required" ewarn "on SPARC an an initial bootstrap, please feel free" ewarn "to merge a source based Icedtea after this merge" } src_install() { local dest="/opt/${P}" local ddest="${D}/${dest}" dodir ${dest} cd ${WORKDIR}/usr/lib/icedtea-6.1.3_pre20080530 # doins can't handle symlinks cp -vRP bin include jre lib man "${ddest}" || die "failed to copy" find "${ddest}" -type f -exec chmod 644 {} + find "${ddest}" -type d -exec chmod 755 {} + chmod 755 ${ddest}/bin/* \ ${ddest}/jre/bin/* \ ${ddest}/jre/lib/*/*.{so,cfg} \ ${ddest}/jre/lib/*/*/*.so \ ${ddest}/jre/lib/jexec \ ${ddest}/lib/jexec || die set_java_env } pkg_postinst() { # Set as default VM if none exists java-vm-2_pkg_postinst }