# Copyright 2002 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License, v2 or later At="${PN}-1_3.zip" S="${WORKDIR}/${P}" SRC_URI="" DESCRIPTION="JavaMail extensions for java" HOMEPAGE="http://java.sun.com/j2se/1.4/download.html" LICENSE="sun-bcla" SLOT="0" KEYWORDS="x86 ppc sparc" DEPEND="app-arch/unzip" RDEPEND="java? ( virtual/jdk ) dev-java/jaf" #install demos OPT=/opt/${P} LIB=lib DEMO=demo CLIENT=${DEMO}/client SERVLET=${DEMO}/servlet WEBAPP=${DEMO}/webapp WEBSRC=${WEBAPP}/src SRCCLS=${WEBSRC}/classes SRCDOC=${WEBSRC}/docroot SRCTAG=${WEBSRC}/taglib DOCINF=${SRCDOC}/WEB-INF TAGDEMO=${SRCTAG}/demo TAGINF=${SRCTAG}/META-INF src_unpack(){ if [ ! -f ${DISTDIR}/${At} ] ; then die "Please download ${At} from ${HOMEPAGE} and move it to ${DISTDIR}" fi unpack ${At} || die } src_install(){ dodoc CHANGES.txt LICENSE.txt NOTES.txt README.txt #optional docs and api use doc && dodoc docs/* use doc && dohtml -r docs/javadocs/* #libs dodir ${OPT} insinto ${OPT} doins mail.jar dodir ${OPT}/${LIB} insinto ${OPT}/${LIB} doins ${LIB}/* #demos dodir ${OPT}/${DEMO} insinto ${OPT}/${DEMO} doins ${DEMO}/* dodir ${OPT}/${CLIENT} insinto ${OPT}/${CLIENT} doins ${CLIENT}/* dodir ${OPT}/${SERVLET} insinto ${OPT}/${SERVLET} doins ${SERVLET}/* dodir ${OPT}/${WEBAPP} insinto ${OPT}/${WEBAPP} doins ${WEBAPP}/* dodir ${OPT}/${WEBSRC} dodir ${OPT}/${SRCCLS} insinto ${OPT}/${SRCCLS} doins ${SRCCLS}/* dodir ${OPT}/${SRCDOC} insinto ${OPT}/${SRCDOC} doins ${SRCDOC}/* dodir ${OPT}/${DOCINF} insinto ${OPT}/${DOCINF} doins ${DOCINF}/* dodir ${OPT}/${SRCTAG} dodir ${OPT}/${TAGDEMO} insinto ${OPT}/${TAGDEMO} doins ${TAGDEMO}/* dodir ${OPT}/${TAGINF} insinto ${OPT}/${TAGINF} doins ${TAGINF}/* #CLASSPATH env dodir /usr/share/${PN} insinto /usr/share/${PN} newins ${FILESDIR}/${P}.env package.env }