# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils rpm java-utils-2 MY_PV="${PV/_p/-}" DESCRIPTION="Novell Groupwise Administration ConsoleOne Snapins" HOMEPAGE="http://www.novell.com" SRC_URI="http://${NOVELL_ACCOUNT_USERNAME}:${NOVELL_ACCOUNT_PASSWORD}@cdn.novell.com/prot/qnlYdOI57V4~/patchfiles/gw702HP1lnxmulti.tar.gz" LICENSE="Novell-eDir-87" SLOT="0" KEYWORDS="~x86" IUSE="linguas_da linguas_de linguas_es linguas_fi linguas_fr linguas_it linguas_nl linguas_no linguas_pt linguas_sv" DEPEND="" RDEPEND="virtual/libc >=virtual/jdk-1.4 >=app-admin/novell-novlc1-1.3.6_p1" RESTRICT="nomirror strip" src_unpack() { unpack ${A} mkdir -p ${WORKDIR}/${PN}-${MY_PV} cd ${PN}-${MY_PV} rpm_unpack ${WORKDIR}/admin/${PN}-${MY_PV}.i386.rpm } src_compile() { :; } src_install() { java-pkg_jarinto /usr/ConsoleOne/ConsoleOneExt java-pkg_dojar ${WORKDIR}/${PN}-${MY_PV}/usr/ConsoleOne/ConsoleOneExt/*.jar java-pkg_jarinto /usr/ConsoleOne/snapins/GroupWise java-pkg_dojar ${WORKDIR}/${PN}-${MY_PV}/usr/ConsoleOne/snapins/GroupWise/*.jar java-pkg_jarinto /usr/ConsoleOne/lib/GroupWise java-pkg_dojar ${WORKDIR}/${PN}-${MY_PV}/usr/ConsoleOne/lib/GroupWise/*.jar insinto /usr/ConsoleOne/help doins -r ${WORKDIR}/${PN}-${MY_PV}/usr/ConsoleOne/help/* dosym . /usr/ConsoleOne/bin/lib into /usr/ConsoleOne/bin dolib.so ${WORKDIR}/${PN}-${MY_PV}/usr/ConsoleOne/bin/*.so* rm ${D}/usr/ConsoleOne/bin/lib into /usr/ConsoleOne dobin ${WORKDIR}/${PN}-${MY_PV}/usr/ConsoleOne/bin/gwcheck* insinto /usr/ConsoleOne/bin doins ${WORKDIR}/${PN}-${MY_PV}/usr/ConsoleOne/bin/*.fil doins ${WORKDIR}/${PN}-${MY_PV}/usr/ConsoleOne/bin/*.xml doman ${WORKDIR}/${PN}-${MY_PV}/opt/novell/man/man*/*.* use linguas_da && doman -i18n=da ${WORKDIR}/${PN}-${MY_PV}/opt/novell/man/da/*/*.* use linguas_de && doman -i18n=de ${WORKDIR}/${PN}-${MY_PV}/opt/novell/man/de/*/*.* use linguas_es && doman -i18n=es ${WORKDIR}/${PN}-${MY_PV}/opt/novell/man/es/*/*.* use linguas_fi && doman -i18n=fi ${WORKDIR}/${PN}-${MY_PV}/opt/novell/man/fi/*/*.* use linguas_fr && doman -i18n=fr ${WORKDIR}/${PN}-${MY_PV}/opt/novell/man/fr/*/*.* use linguas_it && doman -i18n=it ${WORKDIR}/${PN}-${MY_PV}/opt/novell/man/it/*/*.* use linguas_nl && doman -i18n=nl ${WORKDIR}/${PN}-${MY_PV}/opt/novell/man/nl/*/*.* use linguas_no && doman -i18n=no ${WORKDIR}/${PN}-${MY_PV}/opt/novell/man/no/*/*.* use linguas_pt && doman -i18n=pt ${WORKDIR}/${PN}-${MY_PV}/opt/novell/man/pt/*/*.* use linguas_sv && doman -i18n=sv ${WORKDIR}/${PN}-${MY_PV}/opt/novell/man/sv/*/*.* }