Skip to content
Snippets Groups Projects
Commit 244cc743 authored by Jakub Jirutka's avatar Jakub Jirutka :flag_ua:
Browse files

main/nodejs: rename subpackage nodejs-npm to npm

npm is bundled in node.js, but it's a standalone project with its
own release cycle. This aport provides LTS version of node.js, i.e.
an old npm version. So it'd be better to extract it into a separate
aport; this is a preparation for that.
parent b139a8b6
No related branches found
No related tags found
No related merge requests found
...@@ -9,7 +9,7 @@ url="https://www.kiwiirc.com/" ...@@ -9,7 +9,7 @@ url="https://www.kiwiirc.com/"
arch="noarch" arch="noarch"
license="AGPL-3.0" license="AGPL-3.0"
depends="nodejs>=0.10.0" depends="nodejs>=0.10.0"
makedepends="nodejs nodejs-npm" makedepends="nodejs npm"
install="$pkgname.pre-install" install="$pkgname.pre-install"
subpackages="$pkgname-doc" subpackages="$pkgname-doc"
pkgusers="kiwiirc" pkgusers="kiwiirc"
......
...@@ -26,7 +26,7 @@ pkgname=nodejs ...@@ -26,7 +26,7 @@ pkgname=nodejs
# Note: Update only to even-numbered versions (e.g. 6.y.z, 8.y.z)! # Note: Update only to even-numbered versions (e.g. 6.y.z, 8.y.z)!
# Odd-numbered versions are supported only for 9 months by upstream. # Odd-numbered versions are supported only for 9 months by upstream.
pkgver=8.11.3 pkgver=8.11.3
pkgrel=0 pkgrel=1
pkgdesc="JavaScript runtime built on V8 engine - LTS version" pkgdesc="JavaScript runtime built on V8 engine - LTS version"
url="https://nodejs.org/" url="https://nodejs.org/"
arch="all" arch="all"
...@@ -36,7 +36,7 @@ depends_dev="libuv" ...@@ -36,7 +36,7 @@ depends_dev="libuv"
# gold is needed for mksnapshot # gold is needed for mksnapshot
makedepends="$depends_dev python2 openssl-dev zlib-dev libuv-dev linux-headers makedepends="$depends_dev python2 openssl-dev zlib-dev libuv-dev linux-headers
paxmark binutils-gold http-parser-dev ca-certificates c-ares-dev" paxmark binutils-gold http-parser-dev ca-certificates c-ares-dev"
subpackages="$pkgname-dev $pkgname-doc $pkgname-npm::noarch" subpackages="$pkgname-dev $pkgname-doc npm::noarch"
provides="nodejs-lts=$pkgver" # for backward compatibility provides="nodejs-lts=$pkgver" # for backward compatibility
replaces="nodejs-current nodejs-lts" # nodejs-lts for backward compatibility replaces="nodejs-current nodejs-lts" # nodejs-lts for backward compatibility
source="https://nodejs.org/dist/v$pkgver/node-v$pkgver.tar.gz source="https://nodejs.org/dist/v$pkgver/node-v$pkgver.tar.gz
...@@ -100,8 +100,9 @@ dev() { ...@@ -100,8 +100,9 @@ dev() {
npm() { npm() {
pkgdesc="A package manager for JavaScript" pkgdesc="A package manager for JavaScript"
depends="$pkgname" depends="$pkgname"
provides="nodejs-current-npm" # for backward compatibility # for backward compatibility
replaces="nodejs-current-npm $pkgname" # $pkgname for backward compatibility provides="nodejs-npm=$pkgver-r$pkgrel nodejs-current-npm=$pkgver-r$pkgrel"
replaces="nodejs-npm nodejs-current-npm $pkgname"
mkdir -p "$subpkgdir"/usr/bin mkdir -p "$subpkgdir"/usr/bin
mv "$pkgdir"/usr/bin/np[mx] "$subpkgdir"/usr/bin/ mv "$pkgdir"/usr/bin/np[mx] "$subpkgdir"/usr/bin/
......
...@@ -9,7 +9,7 @@ url="https://github.com/paixaop/node-sodium" ...@@ -9,7 +9,7 @@ url="https://github.com/paixaop/node-sodium"
arch="x86 x86_64" arch="x86 x86_64"
license="MIT" license="MIT"
depends="nodejs" depends="nodejs"
makedepends="libsodium-dev=1.0.11-r0 python2 nodejs-npm" makedepends="libsodium-dev=1.0.11-r0 python2 npm"
source="$pkgname-$pkgver.tar.gz::https://github.com/paixaop/$pkgname/archive/$pkgver.tar.gz source="$pkgname-$pkgver.tar.gz::https://github.com/paixaop/$pkgname/archive/$pkgver.tar.gz
fix-gyp-binding.patch fix-gyp-binding.patch
remove-preinstall.patch remove-preinstall.patch
......
...@@ -8,7 +8,7 @@ url="https://www.zerotier.com/" ...@@ -8,7 +8,7 @@ url="https://www.zerotier.com/"
arch="x86_64 ppc64le" arch="x86_64 ppc64le"
license="GPL-3.0" license="GPL-3.0"
depends="" depends=""
makedepends="nodejs-npm linux-headers" makedepends="npm linux-headers"
install="" install=""
subpackages="$pkgname-doc" subpackages="$pkgname-doc"
source=" source="
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment