Contents of /smage/branches/alx08x-unstable/core/duktape/duktape-2.7.0-r1.smage2
Parent Directory | Revision Log
Revision 16294 -
(show annotations)
(download)
Mon Oct 2 13:00:17 2023 UTC (8 months, 1 week ago) by niro
File size: 1261 byte(s)
Mon Oct 2 13:00:17 2023 UTC (8 months, 1 week ago) by niro
File size: 1261 byte(s)
-release branches/alx08x-unstable
1 | # $Id$ |
2 | |
3 | PNAME="duktape" |
4 | PVER="2.7.0" |
5 | PBUILD="r1" |
6 | |
7 | PCAT="dev-java" |
8 | |
9 | DESCRIPTION="Duktape is an embeddable Javascript engine." |
10 | HOMEPAGE="https://duktape.org/" |
11 | |
12 | DEPEND=">= virtual/glibc |
13 | >= sys-libs/libgcc-13.1" |
14 | |
15 | ALX_LIB32_DEPEND=">= virtual/glibc-lib32 |
16 | >= sys-libs/libgcc-lib32-13.1" |
17 | |
18 | SRCFILE="${PNAME}-${PVER}.tar.xz" |
19 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
20 | |
21 | ALX_PKG_KEEP="usr/$(MABI=m64 mlibdir)/*.so.*" |
22 | ALX_LIB32_PKG_KEEP="usr/$(MABI=m32 mlibdir)/*.so.*" |
23 | sminclude multilib mbuild lib32-split alx-split |
24 | |
25 | SRC_URI=( |
26 | https://duktape.org/${SRCFILE} |
27 | mirror://${PNAME}/${SRCFILE} |
28 | ) |
29 | |
30 | UP2DATE="updatecmd https://duktape.org/download.html | highesttarball xz" |
31 | |
32 | src_prepare() |
33 | { |
34 | munpack ${SRCFILE} || die |
35 | |
36 | # tools/configure.py needs python 2 |
37 | all-abis "sed -i 's/^#undef DUK_USE_FASTINT$/#define DUK_USE_FASTINT/' src/duk_config.h || die" |
38 | |
39 | # add missing NEEDED on libm.so |
40 | all-abis "sed -i 's/duktape\.c/& -lm/' Makefile.sharedlibrary || die" |
41 | } |
42 | |
43 | src_compile() |
44 | { |
45 | mmake \ |
46 | -f Makefile.sharedlibrary \ |
47 | INSTALL_PREFIX=/usr \ |
48 | LIBDIR='/$(mlibdir)' \ |
49 | || die |
50 | } |
51 | |
52 | alx_generic_src_install() |
53 | { |
54 | mmake \ |
55 | -f Makefile.sharedlibrary \ |
56 | DESTDIR=${BINDIR} \ |
57 | INSTALL_PREFIX=/usr \ |
58 | LIBDIR='/$(mlibdir)' \ |
59 | install || die |
60 | |
61 | minstalldocs AUTHORS* LICENSE* README* || die |
62 | } |