Magellan Linux

Annotation of /smage/branches/alx07x-unstable/extras/nodejs/nodejs-14.9.0-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 15593 - (hide annotations) (download)
Tue Sep 15 10:51:50 2020 UTC (3 years, 8 months ago) by niro
File size: 1313 byte(s)
-release branches/alx07x-unstable
1 niro 15428 # $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 niro 15432 >= dev-libs/openssl-1.1
14 niro 15428 >= 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 niro 15432 >= dev-libs/openssl-dev-1.1
22 niro 15428 >= 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 niro 15431 SRCFILE="node-v${PVER}.tar.gz"
28     SRCDIR="${BUILDDIR}/node-v${PVER}"
29 niro 15428
30 niro 15434 ALX_PKG_KEEP="usr/bin/node"
31     msetfeature "!check" # proxy fails
32 niro 15432 sminclude mbuild alx-split
33 niro 15428
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 niro 15433 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 niro 15428 src_compile()
52     {
53     cd ${SRCDIR}
54    
55 niro 15432 # non standard configure script
56     ./configure \
57     --prefix=/usr \
58 niro 15428 --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 niro 15434 mmake || die
68 niro 15428 }