Magellan Linux

Contents of /smage/branches/alx07x-stable/extras/nodejs/nodejs-14.9.0-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 15606 - (show annotations) (download)
Tue Sep 15 10:59:55 2020 UTC (3 years, 7 months ago) by niro
File size: 1313 byte(s)
-release branches/alx07x-stable
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"
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 | 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 }