# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ MY_PV=${PV/./_} DESCRIPTION="NetBeans Mobility Pack to create Java ME-applications" HOMEPAGE="http://www.netbeans.org" SRC_URI="http://www.netbeans.org/download/${MY_PV}/fcs/200505031930/66083d474e5fdfc80a1443fb851bd9d5/netbeans_mobility-${MY_PV}-linux.bin" LICENSE="Apache-1.1 Apache-2.0" SLOT="4.1" KEYWORDS="~x86" IUSE="" RDEPEND="" DEPEND=">=dev-util/netbeans-${PV}" src_unpack() { # Walk-around: copy installer to working-directory cp ${DISTDIR}/netbeans_mobility-${MY_PV}-linux.bin ${WORKDIR}/ chmod u+x ${WORKDIR}/netbeans_mobility-${MY_PV}-linux.bin if [[ -e /root/vpd.properties ]]; then einfo "The /root/vpd.properties file exists, this can" einfo "cause big problems." einfo "If so, please move this for the time of installation!" fi # allow the installer to write stupid file (illusion) addpredict /root/vpd.properties # execute installer ${WORKDIR}/netbeans_mobility-${MY_PV}-linux.bin -silent # Walk-around: remove installer again rm ${WORKDIR}/netbeans_mobility-${MY_PV}-linux.bin # remove unnecessary uninstall informations rm -R _uninst } src_install() { # install documentation-files dodoc ${WORKDIR}/*.txt # remove documentation to copy easily rm ${WORKDIR}/*.txt # install everything into netbeans subfolders insinto /usr/share/netbeans-${PV}/mobility7.1/ cp -R ${WORKDIR}/* ${D}/${INSDESTTREE} }