Lines Matching +full:re +full:- +full:configured

1 # Copyright (C) 2020 Savoir-Faire Linux
3 # SPDX-License-Identifier: GPL-2.0-only
22 DEPENDS:prepend = "nodejs-native nodejs-oe-cache-native "
23 RDEPENDS:${PN}:append:class-target = " nodejs"
33 import re
34 if re.match("p(pc|owerpc)(|64)", target_arch):
36 elif re.match("i.86$", target_arch):
38 elif re.match("x86_64$", target_arch):
40 elif re.match("arm64$", target_arch):
46 NPM_PACKAGE = "${WORKDIR}/npm-package"
47 NPM_CACHE = "${WORKDIR}/npm-cache"
48 NPM_BUILD = "${WORKDIR}/npm-build"
49 NPM_REGISTRY = "${WORKDIR}/npm-registry"
62 ## 'ignore-scripts' which prevents this behavior has been removed
77 base = j['name'].split('/')[-1]
78 tarball = os.path.join(workdir, "%s-%s.tgz" % (base, j['version']));
83 '--exclude', './node-modules',
84 '--exclude-vcs',
85 '--transform', 's,^\./,package/,',
86 '--mtime', '1985-10-26T08:15:00.000Z',
101 to be configured to take into account these cached dependencies.
106 import re
129 return "sha512-" + base64.b64encode(bytes.fromhex(sha512)).decode()
149 orig_shrinkwrap_file = d.expand("${S}/npm-shrinkwrap.json")
151 cached_shrinkwrap_file = d.expand("${NPM_PACKAGE}/npm-shrinkwrap.json")
238 Use the configured main package and the cached dependencies to run the
268 # Add node-gyp configuration
276 # Add node-pre-gyp configuration
278 args.append(("build-from-source", "true"))
291 rm -rf ${D}
294 install -d ${D}/${nonarch_libdir}
295 cp --no-preserve=ownership --recursive ${NPM_BUILD}/lib/. ${D}/${nonarch_libdir}
297 if [ -d "${NPM_BUILD}/bin" ]
299 install -d ${D}/${bindir}
300 cp --no-preserve=ownership --recursive ${NPM_BUILD}/bin/. ${D}/${bindir}
303 # If the package (or its dependencies) uses node-gyp to build native addons,
309 # Remove any node-gyp directory in ${D} to remove temporary build files
310 for GYP_D_FILE in $(find ${D} -regex "${GYP_REGEX}")
314 rm --recursive --force ${GYP_D_DIR}
317 # Copy only the node-gyp release files
318 for GYP_B_FILE in $(find ${NPM_BUILD} -regex "${GYP_REGEX}")
322 install -d ${GYP_D_FILE%/*}
323 install -m 755 ${GYP_B_FILE} ${GYP_D_FILE}
327 rm -f ${D}/${nonarch_libdir}/node_modules/*/npm-shrinkwrap.json
328 rm -f ${D}/${nonarch_libdir}/node_modules/@*/*/npm-shrinkwrap.json
332 ln -fs node_modules ${D}/${nonarch_libdir}/node