Contents of /smage/trunk/extras/nodejs/nodejs-14.9.0-r1.smage2
Parent Directory | Revision Log
Revision 15433 -
(show annotations)
(download)
Mon Aug 31 11:59:26 2020 UTC (3 years, 7 months ago) by niro
File size: 1320 byte(s)
Mon Aug 31 11:59:26 2020 UTC (3 years, 7 months ago) by niro
File size: 1320 byte(s)
auto added: ver bump to 14.9.0-r1
1 | # $Id$ |
2 | |
3 | PNAME="nodejs" |
4 | PVER="14.9.0" |
5 | PBUILD="r1" |
6 | |
7 | PCAT="net-libs" |
8 | |
9 | DESCRIPTION="Chrome V8 JavaScript engine." |
10 | HOMEPAGE="https://nodejs.org/" |
11 | |
12 | DEPEND=">= sys-libs/zlib-1.2 |
13 | >= dev-libs/openssl-1.1 |
14 | >= dev-libs/icu-67.1 |
15 | >= dev-libs/libuv-1.39 |
16 | >= net-dns/c-ares-1.16 |
17 | >= net-libs/libnghttp2-1.41" |
18 | |
19 | SDEPEND=">= dev-lang/python3-3.7 |
20 | >= sys-libs/zlib-dev-1.2 |
21 | >= dev-libs/openssl-dev-1.1 |
22 | >= dev-libs/icu-dev-67.1 |
23 | >= dev-libs/libuv-dev-1.39 |
24 | >= net-dns/c-ares-dev-1.16 |
25 | >= net-libs/libnghttp2-dev-1.41" |
26 | |
27 | SRCFILE="node-v${PVER}.tar.gz" |
28 | SRCDIR="${BUILDDIR}/node-v${PVER}" |
29 | |
30 | ALX_PKG_KEEP="usr/bin/node usr/$(mlibdir)/*.so.*" |
31 | sminclude mbuild alx-split |
32 | |
33 | SRC_URI=( |
34 | https://nodejs.org/dist/v${PVER}/${SRCFILE} |
35 | mirror://${PNAME}/${SRCFILE} |
36 | ) |
37 | |
38 | UP2DATE="updatecmd https://nodejs.org/en/download/current | highesttarball gz" |
39 | |
40 | src_prepare() |
41 | { |
42 | munpack ${SRCFILE} || die |
43 | cd ${SRCDIR} |
44 | |
45 | # honor variable libdir |
46 | sed -i -e "s:lib/:$(mlibdir)/:g" tools/install.py || die |
47 | sed -i -e "s:'lib'/:'$(mlibdir)'/:g" deps/npm/lib/npm.js || die |
48 | } |
49 | |
50 | src_compile() |
51 | { |
52 | cd ${SRCDIR} |
53 | |
54 | # non standard configure script |
55 | ./configure \ |
56 | --prefix=/usr \ |
57 | --experimental-http-parser \ |
58 | --without-npm \ |
59 | --with-intl=system-icu \ |
60 | --shared-zlib \ |
61 | --shared-openssl \ |
62 | --shared-libuv \ |
63 | --shared-cares \ |
64 | --shared-nghttp2 \ |
65 | || die |
66 | |
67 | make || die |
68 | } |