Contents of /branches/R11-unstable/extras/rhino/rhino-1.7.7.1-r1.smage2
Parent Directory | Revision Log
Revision 32446 -
(show annotations)
(download)
Mon Apr 29 12:53:41 2019 UTC (5 years, 4 months ago) by niro
File size: 905 byte(s)
Mon Apr 29 12:53:41 2019 UTC (5 years, 4 months ago) by niro
File size: 905 byte(s)
-release branches/R11-unstable
1 | # $Id$ |
2 | |
3 | PNAME="rhino" |
4 | PVER="1.7.7.1" |
5 | PBUILD="r1" |
6 | |
7 | PCAT="dev-java" |
8 | |
9 | DEPEND=">= virtual/java" |
10 | |
11 | SDEPEND=">= virtual/java-jdk |
12 | >= dev-java/apache-ant-1.9 |
13 | >= app-arch/unzip-5" |
14 | |
15 | DESCRIPTION="Open-source implementation of JavaScript written entirely in Java." |
16 | HOMEPAGE="http://www.mozilla.org/rhino/" |
17 | |
18 | SRCFILE="Rhino${PVER//./_}_RELEASE.tar.gz" |
19 | SRCDIR="${BUILDDIR}/${PNAME}-Rhino${PVER//./_}_RELEASE" |
20 | |
21 | sminclude java |
22 | |
23 | SRC_URI=( |
24 | https://github.com/mozilla/rhino/archive/${SRCFILE} |
25 | mirror://${PNAME}/${SRCFILE} |
26 | ) |
27 | |
28 | UP2DATE="updatecmd https://github.com/mozilla/rhino/releases | grep ${PNAME}- | highesttarball zip" |
29 | |
30 | src_prepare() |
31 | { |
32 | munpack ${SRCFILE} || die |
33 | } |
34 | |
35 | src_compile() |
36 | { |
37 | cd ${SRCDIR} |
38 | ant jar || die |
39 | } |
40 | |
41 | src_install() |
42 | { |
43 | cd ${SRCDIR} || die |
44 | minstalljar build/${PNAME}${PVER}/js.jar || die |
45 | # missing symlink |
46 | mlink js-${PVER}.jar ${JAVA_CLASSPATH_DIR}/rhino.jar || die |
47 | minstalldocs LICENSE.txt || die |
48 | } |