Lines 3-9
Link Here
|
3 |
# $Header: $ |
3 |
# $Header: $ |
4 |
|
4 |
|
5 |
DESCRIPTION="XML documentation framework providing XSLT resources" |
5 |
DESCRIPTION="XML documentation framework providing XSLT resources" |
6 |
HOMEPAGE="http://xml.apache.org/forrest" |
6 |
HOMEPAGE="http://xml.apache.org/forrest/" |
7 |
SRC_URI="http://xml.apache.org/forrest/dist/source/apache-forrest-${PV}-src.tar.gz" |
7 |
SRC_URI="http://xml.apache.org/forrest/dist/source/apache-forrest-${PV}-src.tar.gz" |
8 |
|
8 |
|
9 |
LICENSE="Apache-1.1" |
9 |
LICENSE="Apache-1.1" |
Lines 11-42
Link Here
|
11 |
|
11 |
|
12 |
# This is a Java package, and should work on all platforms |
12 |
# This is a Java package, and should work on all platforms |
13 |
KEYWORDS="~x86 ~ppc ~sparc ~alpha" |
13 |
KEYWORDS="~x86 ~ppc ~sparc ~alpha" |
14 |
IUSE="javac" |
14 |
IUSE="" |
|
|
15 |
RDEPEND=">=virtual/jre-1.2" |
16 |
DEPEND=">=virtual/jdk-1.2" |
15 |
|
17 |
|
16 |
# |
18 |
S=${WORKDIR}/apache-${P}-src |
17 |
# This is according to the documentation. |
19 |
MYDIR=/usr/share/${PN} |
18 |
# It has been tested with blackdown-jdk-1.4.1 |
|
|
19 |
# TODO: test with ibm-jdk-1.4.1 and sun-jdk-1.4.3 |
20 |
DEPEND=">=virtual/jre-1.2 |
21 |
>=virtual/jdk-1.2" |
22 |
|
23 |
# The package is called forrest, the tarball and directories |
24 |
# are apache-forrest |
25 |
S=${WORKDIR}/apache-forrest-${PV}-src |
26 |
|
27 |
MYDIR=/usr/local/forrest |
28 |
|
29 |
src_compile() { |
30 |
cd ${S} |
31 |
sh build.sh || die |
32 |
} |
33 |
|
20 |
|
34 |
src_install() { |
21 |
src_install() { |
35 |
einfo "Installing to ${MYDIR}" |
22 |
sh build.sh -Ddist-shbat.dir=${D}${MYDIR} || die |
36 |
dodir ${MYDIR} |
23 |
dodir /etc/env.d |
37 |
cp -rf ${S}/build/dist/shbat/* ${D}/${MYDIR} |
24 |
echo "PATH=${MYDIR}/bin" > ${D}/etc/env.d/80forrest |
|
|
25 |
dodoc etc/pdf_images.txt etc/RELEASE-NOTES*.txt |
38 |
} |
26 |
} |
39 |
|
27 |
|
40 |
pkg_postinst() { |
28 |
pkg_postinst() { |
41 |
einfo "you should add FORREST_HOME to your PATH" |
29 |
einfo "To get started with forrest, it might be a good idea to read the release notes" |
|
|
30 |
einfo "located in /usr/share/doc/${PF}/RELEASE-NOTES-${PV}.txt.gz" |
42 |
} |
31 |
} |