# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils rpm MY_PV="${PV/_p/-}" DESCRIPTION="Novell ConsoleOne" HOMEPAGE="http://www.novell.com" SRC_URI="http://supportfiles.novell.com/support/pub/allupdates/c1_136e_linux.tgz" LICENSE="Novell-eDir-87" SLOT="0" KEYWORDS="~x86" IUSE="" DEPEND="" RDEPEND="virtual/libc virtual/jdk >=net-nds/novell-ndsbase-8.7.3.7_p38 >=net-nds/novell-ndscommon-8.7.3_p34 >=net-nds/novell-nldapbase-8.7.3_p34 >=net-nds/novell-nldapsdk-8.7.3_p34 >=net-nds/novell-novlice-8.7.3_p34 >=net-nds/novell-novllmgnt-8.7.3_p34 >=net-nds/novell-novlsas-8.7.3_p34 >=net-nds/novell-novlxis-8.7.3_p34 >=app-crypt/novell-npkit-2.7.0_p6 >=app-crypt/novell-pkiserver-2.7.0_p6 !net-misc/novell-novlc1" RESTRICT="nomirror nostrip" src_unpack() { unpack ${A} mkdir -p ${WORKDIR}/${PN}-${MY_PV} cd ${PN}-${MY_PV} rpm_unpack ${WORKDIR}/Linux/NOVLc1-${MY_PV}.i386.rpm rpm_unpack ${WORKDIR}/Linux/NOVLc1_de-${MY_PV}.i386.rpm rpm_unpack ${WORKDIR}/Linux/NOVLc1_es-${MY_PV}.i386.rpm rpm_unpack ${WORKDIR}/Linux/NOVLc1_fr-${MY_PV}.i386.rpm rpm_unpack ${WORKDIR}/Linux/NOVLc1_it-${MY_PV}.i386.rpm rpm_unpack ${WORKDIR}/Linux/NOVLc1_ja-${MY_PV}.i386.rpm rpm_unpack ${WORKDIR}/Linux/NOVLc1_pt-${MY_PV}.i386.rpm rpm_unpack ${WORKDIR}/Linux/NOVLc1_ru-${MY_PV}.i386.rpm rpm_unpack ${WORKDIR}/Linux/NOVLc1_zh_CN-${MY_PV}.i386.rpm rpm_unpack ${WORKDIR}/Linux/NOVLc1_zh_TW-${MY_PV}.i386.rpm } src_compile() { :; } src_install() { sed -i 's%$APPHOME/jre%${JAVA_HOME}%' "${WORKDIR}/${PN}-${MY_PV}"/usr/ConsoleOne/bin/ConsoleOne chmod 755 "${WORKDIR}/${PN}-${MY_PV}"/usr/ConsoleOne mv "${WORKDIR}/${PN}-${MY_PV}"/usr "${D}"/ || die "mv usr" insinto /usr/ConsoleOne/bin doins ${WORKDIR}/Linux/ConsoleOneIcon.png insinto /usr/share/applications doins ${WORKDIR}/Linux/consoleone.desktop }