stable/branches/experimental/net-mail/novell-groupwise-gwclient/novell-groupwise-gwclient-7.0.2_p20070524-r1.ebuild
2007-07-23 14:52:49 +00:00

99 lines
4.3 KiB
Bash

# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit eutils rpm java-utils-2
MY_P="${P/_p/-}"
DESCRIPTION="Novell Groupwise 7 Client for Linux"
HOMEPAGE="http://www.novell.com/en/gropwise/"
SRC_URI="http://${NOVELL_ACCOUNT_USERNAME}:${NOVELL_ACCOUNT_PASSWORD}@cdn.novell.com/prot/T5KoQlP4WUo~/patchfiles/gw702HP1clnxmulti.tar.gz"
LICENSE="Novell-GW-7"
SLOT="0"
KEYWORDS="~x86"
IUSE="java linguas_ar linguas_cs linguas_da linguas_de linguas_es linguas_fi linguas_fr linguas_hu linguas_it linguas_iw linguas_ja linguas_ko
linguas_nl linguas_no linguas_pl linguas_pt linguas_ru linguas_sv linguas_zh_CN linguas_zh_TW"
DEPEND="!net-misc/novell-groupwise-gwclient
dev-java/itext
dev-java/sun-jaf
dev-java/sun-javamail
dev-java/sun-jai-bin
dev-java/javahelp-bin
dev-java/log4j"
RDEPEND="sys-libs/glibc
sys-libs/libstdc++-v3
sys-devel/gcc
>=virtual/jre-1.5
dev-java/itext
dev-java/sun-jaf
dev-java/sun-javamail
dev-java/sun-jai-bin
dev-java/javahelp-bin
dev-java/log4j"
# amd64? (app-emulation/emul-linux-x86-java)
RESTRICT="nostrip nomirror"
src_unpack() {
unpack ${A}
mkdir -p ${WORKDIR}/${MY_P}
cd ${MY_P}
rpm_unpack ${WORKDIR}/${MY_P}.i386.rpm
}
src_compile() {
#java-pkg_jar-from itext
#java-pkg_jar-from sun-jaf
#java-pkg_jar-from sun-javamail
#java-pkg_jar-from sun-jai-bin
#java-pkg_jar-from javahelp-bin
#java-pkg_jar-from log4j
java-pkg_addcp /opt/novell/groupwise/client/lib
}
src_install() {
# for x in ar cs da de es fi fr hu it iw ja ko nl no pl pt ru sv zh_CN zh_TW
# do
# if use linguas_${x}
# then
# java-pkg_jarinto /opt/novell/groupwise/client/lib
# java-pkg_dojar ${WORKDIR}/${MY_P}/opt/novell/groupwise/client/lib/gwclhlp${x}.jar
# insinto /opt/novell/groupwise/client/lib
# doins ${WORKDIR}/${MY_P}/opt/novell/groupwise/client/lib/gwenlx${x}.fil
# insinto /opt/novell/groupwise/client/lib/dicts
# doins ${WORKDIR}/${MY_P}/opt/novell/groupwise/client/lib/dicts/${x}.dar
# fi
# done
java-pkg_jarinto /opt/novell/groupwise/client/lib
java-pkg_dojar ${WORKDIR}/${MY_P}/opt/novell/groupwise/client/lib/gwclhlp*.jar
insinto /opt/novell/groupwise/client/lib
doins ${WORKDIR}/${MY_P}/opt/novell/groupwise/client/lib/gwenlx*.fil
insinto /opt/novell/groupwise/client/lib/dicts
doins ${WORKDIR}/${MY_P}/opt/novell/groupwise/client/lib/dicts/*.dar
java-pkg_jarinto /opt/novell/groupwise/client/lib
java-pkg_dojar ${WORKDIR}/${MY_P}/opt/novell/groupwise/client/lib/activation.jar
java-pkg_dojar ${WORKDIR}/${MY_P}/opt/novell/groupwise/client/lib/azcheck.jar
java-pkg_dojar ${WORKDIR}/${MY_P}/opt/novell/groupwise/client/lib/corecomponents-linux.jar
java-pkg_dojar ${WORKDIR}/${MY_P}/opt/novell/groupwise/client/lib/gwapi.jar
java-pkg_dojar ${WORKDIR}/${MY_P}/opt/novell/groupwise/client/lib/gwclient.jar
java-pkg_dojar ${WORKDIR}/${MY_P}/opt/novell/groupwise/client/lib/iText.jar
java-pkg_dojar ${WORKDIR}/${MY_P}/opt/novell/groupwise/client/lib/jai_codec.jar
java-pkg_dojar ${WORKDIR}/${MY_P}/opt/novell/groupwise/client/lib/jai_core.jar
java-pkg_dojar ${WORKDIR}/${MY_P}/opt/novell/groupwise/client/lib/jhall.jar
java-pkg_dojar ${WORKDIR}/${MY_P}/opt/novell/groupwise/client/lib/log4j-1.2.7.jar
java-pkg_dojar ${WORKDIR}/${MY_P}/opt/novell/groupwise/client/lib/mail.jar
java-pkg_dojar ${WORKDIR}/${MY_P}/opt/novell/groupwise/client/lib/mlibwrapper_jai.jar
java-pkg_dojar ${WORKDIR}/${MY_P}/opt/novell/groupwise/client/lib/webrenderer-linux.jar
java-pkg_dojar ${WORKDIR}/${MY_P}/opt/novell/groupwise/client/lib/webrenderer.jar
into /opt/novell/groupwise/client
dolib.so ${WORKDIR}/${MY_P}/opt/novell/groupwise/client/lib/*.so*
insinto /opt/novell/groupwise/client/lib
doins ${WORKDIR}/${MY_P}/opt/novell/groupwise/client/lib/*.dc
doicon ${WORKDIR}/${MY_P}/opt/novell/groupwise/client/gwclient.png
java-pkg_dolauncher groupwise --main GroupWise \
--java_args "-Djava.library.path=/opt/novell/groupwise/client/lib -Dswing.defaultlaf=javax.swing.plaf.metal.MetalLookAndFeel -Xms64M -Xmx128M" \
--pwd /opt/novell/groupwise/client/lib
# sed -i 's%/opt/novell/groupwise/client/jre%`java-config --jre-home`%' "${WORKDIR}"/${MY_P}/opt/novell/groupwise/client/bin/groupwise
}