Magellan Linux

Annotation of /trunk/extras/rhino/rhino-1.7.7.1-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 29447 - (hide annotations) (download)
Wed Jun 14 14:31:27 2017 UTC (7 years ago) by niro
File size: 922 byte(s)
auto added: ver bump to 1.7.7.1-r1
1 niro 29443 # $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 niro 29447 SRCFILE="Rhino${PVER//./_}_RELEASE.tar.gz"
19 niro 29446 SRCDIR="${BUILDDIR}/${PNAME}${PVER}"
20 niro 29443
21     sminclude java
22    
23     SRC_URI=(
24 niro 29447 https://github.com/mozilla/rhino/archive/${SRCFILE}
25 niro 29443 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     munpack ${XMLBEANS_SRCFILE} || die
34     }
35    
36     src_compile()
37     {
38     cd ${SRCDIR}
39 niro 29447 ant jar || die
40 niro 29443 }
41    
42     src_install()
43     {
44     cd ${SRCDIR} || die
45 niro 29447 minstalljar build/${PNAME}${PVER}/js.jar || die
46 niro 29443 # missing symlink
47     mlink js-${PVER}.jar ${JAVA_CLASSPATH_DIR}/rhino.jar || die
48     minstalldocs LICENSE.txt || die
49     }