--- forrest-0.5.1.ebuild 2004-05-15 23:35:03.000000000 +0200 +++ forrest-0.5.1-r1.ebuild 2004-05-15 23:11:44.000000000 +0200 @@ -3,7 +3,7 @@ # $Header: $ DESCRIPTION="XML documentation framework providing XSLT resources" -HOMEPAGE="http://xml.apache.org/forrest" +HOMEPAGE="http://xml.apache.org/forrest/" SRC_URI="http://xml.apache.org/forrest/dist/source/apache-forrest-${PV}-src.tar.gz" LICENSE="Apache-1.1" @@ -11,32 +11,21 @@ # This is a Java package, and should work on all platforms KEYWORDS="~x86 ~ppc ~sparc ~alpha" -IUSE="javac" +IUSE="" +RDEPEND=">=virtual/jre-1.2" +DEPEND=">=virtual/jdk-1.2" -# -# This is according to the documentation. -# It has been tested with blackdown-jdk-1.4.1 -# TODO: test with ibm-jdk-1.4.1 and sun-jdk-1.4.3 -DEPEND=">=virtual/jre-1.2 - >=virtual/jdk-1.2" - -# The package is called forrest, the tarball and directories -# are apache-forrest -S=${WORKDIR}/apache-forrest-${PV}-src - -MYDIR=/usr/local/forrest - -src_compile() { - cd ${S} - sh build.sh || die -} +S=${WORKDIR}/apache-${P}-src +MYDIR=/usr/share/${PN} src_install() { - einfo "Installing to ${MYDIR}" - dodir ${MYDIR} - cp -rf ${S}/build/dist/shbat/* ${D}/${MYDIR} + sh build.sh -Ddist-shbat.dir=${D}${MYDIR} || die + dodir /etc/env.d + echo "PATH=${MYDIR}/bin" > ${D}/etc/env.d/80forrest + dodoc etc/pdf_images.txt etc/RELEASE-NOTES*.txt } pkg_postinst() { - einfo "you should add FORREST_HOME to your PATH" + einfo "To get started with forrest, it might be a good idea to read the release notes" + einfo "located in /usr/share/doc/${PF}/RELEASE-NOTES-${PV}.txt.gz" }