Magellan Linux

Contents of /smage/branches/alx08x-unstable/extras/nodejs/nodejs-21.7.3-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


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