Mercurial > hg > portage
annotate net-libs/nodejs/nodejs-0.12.7.ebuild @ 421:c46da1a0f7c2
remove the -r1 ebuild, update the init script in place
author | Dirk Olmes <dirk@xanthippe.ping.de> |
---|---|
date | Mon, 19 Sep 2016 14:43:48 +0200 |
parents | af9fcfc5c007 |
children |
rev | line source |
---|---|
396
af9fcfc5c007
add a nodejs ebuild that supports building without the ssl flag
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
1 # Copyright 1999-2015 Gentoo Foundation |
af9fcfc5c007
add a nodejs ebuild that supports building without the ssl flag
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
2 # Distributed under the terms of the GNU General Public License v2 |
af9fcfc5c007
add a nodejs ebuild that supports building without the ssl flag
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
3 # $Id$ |
af9fcfc5c007
add a nodejs ebuild that supports building without the ssl flag
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
4 |
af9fcfc5c007
add a nodejs ebuild that supports building without the ssl flag
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
5 EAPI=5 |
af9fcfc5c007
add a nodejs ebuild that supports building without the ssl flag
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
6 |
af9fcfc5c007
add a nodejs ebuild that supports building without the ssl flag
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
7 # has known failures. sigh. |
af9fcfc5c007
add a nodejs ebuild that supports building without the ssl flag
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
8 RESTRICT="test" |
af9fcfc5c007
add a nodejs ebuild that supports building without the ssl flag
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
9 |
af9fcfc5c007
add a nodejs ebuild that supports building without the ssl flag
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
10 PYTHON_COMPAT=( python2_7 ) |
af9fcfc5c007
add a nodejs ebuild that supports building without the ssl flag
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
11 PYTHON_REQ_USE="threads" |
af9fcfc5c007
add a nodejs ebuild that supports building without the ssl flag
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
12 |
af9fcfc5c007
add a nodejs ebuild that supports building without the ssl flag
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
13 inherit pax-utils python-single-r1 toolchain-funcs |
af9fcfc5c007
add a nodejs ebuild that supports building without the ssl flag
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
14 |
af9fcfc5c007
add a nodejs ebuild that supports building without the ssl flag
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
15 DESCRIPTION="Evented IO for V8 Javascript" |
af9fcfc5c007
add a nodejs ebuild that supports building without the ssl flag
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
16 HOMEPAGE="http://nodejs.org/" |
af9fcfc5c007
add a nodejs ebuild that supports building without the ssl flag
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
17 SRC_URI="http://nodejs.org/dist/v${PV}/node-v${PV}.tar.gz" |
af9fcfc5c007
add a nodejs ebuild that supports building without the ssl flag
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
18 |
af9fcfc5c007
add a nodejs ebuild that supports building without the ssl flag
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
19 LICENSE="Apache-1.1 Apache-2.0 BSD BSD-2 MIT" |
af9fcfc5c007
add a nodejs ebuild that supports building without the ssl flag
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
20 SLOT="0" |
af9fcfc5c007
add a nodejs ebuild that supports building without the ssl flag
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
21 KEYWORDS="~amd64 ~arm ~x86 ~x64-macos" |
af9fcfc5c007
add a nodejs ebuild that supports building without the ssl flag
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
22 IUSE="debug icu +npm +snapshot +ssl" |
af9fcfc5c007
add a nodejs ebuild that supports building without the ssl flag
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
23 |
af9fcfc5c007
add a nodejs ebuild that supports building without the ssl flag
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
24 RDEPEND="icu? ( dev-libs/icu ) |
af9fcfc5c007
add a nodejs ebuild that supports building without the ssl flag
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
25 ${PYTHON_DEPS} |
af9fcfc5c007
add a nodejs ebuild that supports building without the ssl flag
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
26 ssl? ( dev-libs/openssl:0=[-bindist] ) |
af9fcfc5c007
add a nodejs ebuild that supports building without the ssl flag
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
27 >=net-libs/http-parser-2.3 |
af9fcfc5c007
add a nodejs ebuild that supports building without the ssl flag
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
28 >=dev-libs/libuv-1.4.2" |
af9fcfc5c007
add a nodejs ebuild that supports building without the ssl flag
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
29 DEPEND="${RDEPEND} |
af9fcfc5c007
add a nodejs ebuild that supports building without the ssl flag
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
30 !!net-libs/iojs" |
af9fcfc5c007
add a nodejs ebuild that supports building without the ssl flag
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
31 |
af9fcfc5c007
add a nodejs ebuild that supports building without the ssl flag
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
32 S="${WORKDIR}/node-v${PV}" |
af9fcfc5c007
add a nodejs ebuild that supports building without the ssl flag
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
33 REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
af9fcfc5c007
add a nodejs ebuild that supports building without the ssl flag
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
34 |
af9fcfc5c007
add a nodejs ebuild that supports building without the ssl flag
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
35 src_prepare() { |
af9fcfc5c007
add a nodejs ebuild that supports building without the ssl flag
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
36 epatch "${FILESDIR}/${PN}-ssl.patch" |
af9fcfc5c007
add a nodejs ebuild that supports building without the ssl flag
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
37 |
af9fcfc5c007
add a nodejs ebuild that supports building without the ssl flag
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
38 tc-export CC CXX PKG_CONFIG |
af9fcfc5c007
add a nodejs ebuild that supports building without the ssl flag
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
39 export V=1 # Verbose build |
af9fcfc5c007
add a nodejs ebuild that supports building without the ssl flag
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
40 export BUILDTYPE=Release |
af9fcfc5c007
add a nodejs ebuild that supports building without the ssl flag
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
41 |
af9fcfc5c007
add a nodejs ebuild that supports building without the ssl flag
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
42 # fix compilation on Darwin |
af9fcfc5c007
add a nodejs ebuild that supports building without the ssl flag
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
43 # https://code.google.com/p/gyp/issues/detail?id=260 |
af9fcfc5c007
add a nodejs ebuild that supports building without the ssl flag
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
44 sed -i -e "/append('-arch/d" tools/gyp/pylib/gyp/xcode_emulation.py || die |
af9fcfc5c007
add a nodejs ebuild that supports building without the ssl flag
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
45 |
af9fcfc5c007
add a nodejs ebuild that supports building without the ssl flag
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
46 # make sure we use python2.* while using gyp |
af9fcfc5c007
add a nodejs ebuild that supports building without the ssl flag
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
47 sed -i -e "s/python/${EPYTHON}/" deps/npm/node_modules/node-gyp/gyp/gyp || die |
af9fcfc5c007
add a nodejs ebuild that supports building without the ssl flag
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
48 sed -i -e "s/|| 'python'/|| '${EPYTHON}'/" deps/npm/node_modules/node-gyp/lib/configure.js || die |
af9fcfc5c007
add a nodejs ebuild that supports building without the ssl flag
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
49 |
af9fcfc5c007
add a nodejs ebuild that supports building without the ssl flag
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
50 # less verbose install output (stating the same as portage, basically) |
af9fcfc5c007
add a nodejs ebuild that supports building without the ssl flag
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
51 sed -i -e "/print/d" tools/install.py || die |
af9fcfc5c007
add a nodejs ebuild that supports building without the ssl flag
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
52 |
af9fcfc5c007
add a nodejs ebuild that supports building without the ssl flag
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
53 # proper libdir, hat tip @ryanpcmcquen https://github.com/iojs/io.js/issues/504 |
af9fcfc5c007
add a nodejs ebuild that supports building without the ssl flag
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
54 local LIBDIR=$(get_libdir) |
af9fcfc5c007
add a nodejs ebuild that supports building without the ssl flag
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
55 sed -i -e "s|lib/|${LIBDIR}/|g" tools/install.py || die |
af9fcfc5c007
add a nodejs ebuild that supports building without the ssl flag
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
56 sed -i -e "s/'lib'/'${LIBDIR}'/" lib/module.js || die |
af9fcfc5c007
add a nodejs ebuild that supports building without the ssl flag
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
57 sed -i -e "s|\"lib\"|\"${LIBDIR}\"|" deps/npm/lib/npm.js || die |
af9fcfc5c007
add a nodejs ebuild that supports building without the ssl flag
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
58 |
af9fcfc5c007
add a nodejs ebuild that supports building without the ssl flag
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
59 # debug builds. change install path, remove optimisations and override buildtype |
af9fcfc5c007
add a nodejs ebuild that supports building without the ssl flag
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
60 if use debug; then |
af9fcfc5c007
add a nodejs ebuild that supports building without the ssl flag
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
61 sed -i -e "s|out/Release/|out/Debug/|g" tools/install.py || die |
af9fcfc5c007
add a nodejs ebuild that supports building without the ssl flag
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
62 BUILDTYPE=Debug |
af9fcfc5c007
add a nodejs ebuild that supports building without the ssl flag
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
63 fi |
af9fcfc5c007
add a nodejs ebuild that supports building without the ssl flag
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
64 } |
af9fcfc5c007
add a nodejs ebuild that supports building without the ssl flag
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
65 |
af9fcfc5c007
add a nodejs ebuild that supports building without the ssl flag
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
66 src_configure() { |
af9fcfc5c007
add a nodejs ebuild that supports building without the ssl flag
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
67 local myconf=() |
af9fcfc5c007
add a nodejs ebuild that supports building without the ssl flag
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
68 local myarch="" |
af9fcfc5c007
add a nodejs ebuild that supports building without the ssl flag
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
69 use debug && myconf+=( --debug ) |
af9fcfc5c007
add a nodejs ebuild that supports building without the ssl flag
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
70 use icu && myconf+=( --with-intl=system-icu ) |
af9fcfc5c007
add a nodejs ebuild that supports building without the ssl flag
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
71 use npm || myconf+=( --without-npm ) |
af9fcfc5c007
add a nodejs ebuild that supports building without the ssl flag
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
72 use snapshot || myconf+=( --without-snapshot ) |
af9fcfc5c007
add a nodejs ebuild that supports building without the ssl flag
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
73 use ssl || myconf+=( --without-ssl ) |
af9fcfc5c007
add a nodejs ebuild that supports building without the ssl flag
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
74 |
af9fcfc5c007
add a nodejs ebuild that supports building without the ssl flag
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
75 case ${ABI} in |
af9fcfc5c007
add a nodejs ebuild that supports building without the ssl flag
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
76 x86) myarch="ia32";; |
af9fcfc5c007
add a nodejs ebuild that supports building without the ssl flag
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
77 amd64) myarch="x64";; |
af9fcfc5c007
add a nodejs ebuild that supports building without the ssl flag
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
78 arm) myarch="arm";; |
af9fcfc5c007
add a nodejs ebuild that supports building without the ssl flag
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
79 *) die "Unrecognized ARCH ${ARCH}";; |
af9fcfc5c007
add a nodejs ebuild that supports building without the ssl flag
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
80 esac |
af9fcfc5c007
add a nodejs ebuild that supports building without the ssl flag
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
81 |
af9fcfc5c007
add a nodejs ebuild that supports building without the ssl flag
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
82 "${PYTHON}" configure \ |
af9fcfc5c007
add a nodejs ebuild that supports building without the ssl flag
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
83 --prefix="${EPREFIX}"/usr \ |
af9fcfc5c007
add a nodejs ebuild that supports building without the ssl flag
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
84 --dest-cpu=${myarch} \ |
af9fcfc5c007
add a nodejs ebuild that supports building without the ssl flag
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
85 --shared-openssl \ |
af9fcfc5c007
add a nodejs ebuild that supports building without the ssl flag
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
86 --shared-libuv \ |
af9fcfc5c007
add a nodejs ebuild that supports building without the ssl flag
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
87 --shared-http-parser \ |
af9fcfc5c007
add a nodejs ebuild that supports building without the ssl flag
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
88 --shared-zlib \ |
af9fcfc5c007
add a nodejs ebuild that supports building without the ssl flag
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
89 --without-dtrace \ |
af9fcfc5c007
add a nodejs ebuild that supports building without the ssl flag
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
90 "${myconf[@]}" || die |
af9fcfc5c007
add a nodejs ebuild that supports building without the ssl flag
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
91 } |
af9fcfc5c007
add a nodejs ebuild that supports building without the ssl flag
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
92 |
af9fcfc5c007
add a nodejs ebuild that supports building without the ssl flag
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
93 src_compile() { |
af9fcfc5c007
add a nodejs ebuild that supports building without the ssl flag
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
94 emake -C out mksnapshot |
af9fcfc5c007
add a nodejs ebuild that supports building without the ssl flag
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
95 pax-mark m "out/${BUILDTYPE}/mksnapshot" |
af9fcfc5c007
add a nodejs ebuild that supports building without the ssl flag
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
96 emake -C out |
af9fcfc5c007
add a nodejs ebuild that supports building without the ssl flag
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
97 } |
af9fcfc5c007
add a nodejs ebuild that supports building without the ssl flag
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
98 |
af9fcfc5c007
add a nodejs ebuild that supports building without the ssl flag
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
99 src_install() { |
af9fcfc5c007
add a nodejs ebuild that supports building without the ssl flag
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
100 local LIBDIR="${ED}/usr/$(get_libdir)" |
af9fcfc5c007
add a nodejs ebuild that supports building without the ssl flag
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
101 emake install DESTDIR="${ED}" PREFIX=/usr |
af9fcfc5c007
add a nodejs ebuild that supports building without the ssl flag
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
102 use npm && dodoc -r "${LIBDIR}"/node_modules/npm/html |
af9fcfc5c007
add a nodejs ebuild that supports building without the ssl flag
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
103 rm -rf "${LIBDIR}"/node_modules/npm/{doc,html} || die |
af9fcfc5c007
add a nodejs ebuild that supports building without the ssl flag
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
104 find "${LIBDIR}"/node_modules -type f -name "LICENSE*" -or -name "LICENCE*" -delete |
af9fcfc5c007
add a nodejs ebuild that supports building without the ssl flag
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
105 |
af9fcfc5c007
add a nodejs ebuild that supports building without the ssl flag
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
106 # set up a symlink structure that npm expects.. |
af9fcfc5c007
add a nodejs ebuild that supports building without the ssl flag
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
107 dodir /usr/include/node/deps/{v8,uv} |
af9fcfc5c007
add a nodejs ebuild that supports building without the ssl flag
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
108 dosym . /usr/include/node/src |
af9fcfc5c007
add a nodejs ebuild that supports building without the ssl flag
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
109 for var in deps/{uv,v8}/include; do |
af9fcfc5c007
add a nodejs ebuild that supports building without the ssl flag
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
110 dosym ../.. /usr/include/node/${var} |
af9fcfc5c007
add a nodejs ebuild that supports building without the ssl flag
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
111 done |
af9fcfc5c007
add a nodejs ebuild that supports building without the ssl flag
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
112 |
af9fcfc5c007
add a nodejs ebuild that supports building without the ssl flag
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
113 pax-mark -m "${ED}"/usr/bin/node |
af9fcfc5c007
add a nodejs ebuild that supports building without the ssl flag
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
114 } |
af9fcfc5c007
add a nodejs ebuild that supports building without the ssl flag
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
115 |
af9fcfc5c007
add a nodejs ebuild that supports building without the ssl flag
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
116 src_test() { |
af9fcfc5c007
add a nodejs ebuild that supports building without the ssl flag
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
117 declare -xl TESTTYPE="${BUILDTYPE}" |
af9fcfc5c007
add a nodejs ebuild that supports building without the ssl flag
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
118 "${PYTHON}" tools/test.py --mode=${TESTTYPE} -J message simple || die |
af9fcfc5c007
add a nodejs ebuild that supports building without the ssl flag
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
119 } |
af9fcfc5c007
add a nodejs ebuild that supports building without the ssl flag
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
120 |
af9fcfc5c007
add a nodejs ebuild that supports building without the ssl flag
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
121 pkg_postinst() { |
af9fcfc5c007
add a nodejs ebuild that supports building without the ssl flag
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
122 einfo "When using node-gyp to install native modules, you can avoid" |
af9fcfc5c007
add a nodejs ebuild that supports building without the ssl flag
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
123 einfo "having to download the full tarball by doing the following:" |
af9fcfc5c007
add a nodejs ebuild that supports building without the ssl flag
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
124 einfo "" |
af9fcfc5c007
add a nodejs ebuild that supports building without the ssl flag
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
125 einfo "node-gyp --nodedir /usr/include/node <command>" |
af9fcfc5c007
add a nodejs ebuild that supports building without the ssl flag
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
126 } |