Contents of /smage/branches/alx08x-unstable/extras/nodejs/nodejs-21.2.0-r1.smage2
Parent Directory | Revision Log
Revision 17456 -
(show annotations)
(download)
Fri Nov 24 09:36:22 2023 UTC (10 months ago) by niro
File size: 1353 byte(s)
Fri Nov 24 09:36:22 2023 UTC (10 months ago) by niro
File size: 1353 byte(s)
-release branches/alx08x-unstable
1 | # $Id$ |
2 | |
3 | PNAME="nodejs" |
4 | PVER="21.2.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-3.1 |
14 | >= dev-libs/icu-73.2 |
15 | >= dev-libs/libuv-1.47 |
16 | >= net-dns/c-ares-1.22 |
17 | >= net-libs/libnghttp2-1.58" |
18 | |
19 | SDEPEND=">= dev-lang/python3-3.11 |
20 | >= sys-libs/zlib-dev-1.2 |
21 | >= dev-libs/openssl-dev-3.1 |
22 | >= dev-libs/icu-dev-73.2 |
23 | >= dev-libs/libuv-dev-1.47 |
24 | >= net-dns/c-ares-dev-1.22 |
25 | >= net-libs/libnghttp2-dev-1.58" |
26 | |
27 | SRCFILE="node-v${PVER}.tar.gz" |
28 | SRCDIR="${BUILDDIR}/node-v${PVER}" |
29 | |
30 | ALX_PKG_KEEP="usr/bin/node" |
31 | msetfeature "!check" # proxy fails |
32 | sminclude mbuild alx-split |
33 | |
34 | SRC_URI=( |
35 | https://nodejs.org/dist/v${PVER}/${SRCFILE} |
36 | mirror://${PNAME}/${SRCFILE} |
37 | ) |
38 | |
39 | UP2DATE="updatecmd https://nodejs.org/en/download/current | grep -v '[0-9]-[a-z]' | sed 's:v::g' | highesttarball gz" |
40 | |
41 | src_prepare() |
42 | { |
43 | munpack ${SRCFILE} || die |
44 | cd ${SRCDIR} |
45 | |
46 | # honor variable libdir |
47 | sed -i -e "s:lib/:$(mlibdir)/:g" tools/install.py || die |
48 | sed -i -e "s:'lib'/:'$(mlibdir)'/:g" deps/npm/lib/npm.js || die |
49 | } |
50 | |
51 | src_compile() |
52 | { |
53 | cd ${SRCDIR} |
54 | |
55 | # non standard configure script |
56 | ./configure \ |
57 | --prefix=/usr \ |
58 | --experimental-http-parser \ |
59 | --without-npm \ |
60 | --with-intl=system-icu \ |
61 | --shared-zlib \ |
62 | --shared-libuv \ |
63 | --shared-cares \ |
64 | --shared-nghttp2 \ |
65 | || die |
66 | |
67 | mmake || die |
68 | } |