Skip to content

Commit

Permalink
Fixup paths
Browse files Browse the repository at this point in the history
Signed-off-by: Alex J Lennon <ajlennon@dynamicdevices.co.uk>
  • Loading branch information
ajlennon committed Jan 23, 2025
1 parent 8859673 commit d1c6c14
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions recipes-core/rhino/rhino_1.7r4.bb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ SRC_URI = "\
file://rhino-jsc \
"

S = "${WORKDIR}/git"
UNPACKDIR = "${WORKDIR}/sources"
S = "${UNPACKDIR}/git"

PACKAGES = "${JPN} rhino"

Expand All @@ -32,17 +33,17 @@ do_compile() {
# java.lang classes. :(
bcp_arg="-bootclasspath ${STAGING_DATADIR_NATIVE}/classpath/glibj.zip"

javac $bcp_arg -source 1.6 -sourcepath src -d build `find src -name "*.java"`
javac $bcp_arg -source 1.6 -sourcepath ${S}/src -d build `find src -name "*.java"`

mkdir -p build/org/mozilla/javascript/resources
cp src/org/mozilla/javascript/resources/*.properties build/org/mozilla/javascript/resources
cp ${S}/src/org/mozilla/javascript/resources/*.properties build/org/mozilla/javascript/resources

fastjar cfm ${JARFILENAME} ${S}/src/manifest -C build .
}

do_install:append() {
install -d ${D}${bindir}

install -m 0755 ${WORKDIR}/rhino ${D}${bindir}
install -m 0755 ${WORKDIR}/rhino-jsc ${D}${bindir}
install -m 0755 ${UNPACKDIR}/rhino ${D}${bindir}
install -m 0755 ${UNPACKDIR}/rhino-jsc ${D}${bindir}
}

0 comments on commit d1c6c14

Please sign in to comment.