app-editors/atom-bin: drop nodejs

The package itself already comes with npm/node.
Providing a custom flag for nodejs is unuseful.
This will not make any trouble if you use nodejs as atom
will call it internally.

Package-Manager: Portage-3.0.18, Repoman-3.0.3
Signed-off-by: Marco Scardovi <marco@scardovi.com>
This commit is contained in:
Marco Scardovi
2021-04-14 10:54:59 +02:00
parent d6b05fd225
commit e8f93073b5
2 changed files with 4 additions and 16 deletions

View File

@@ -12,7 +12,7 @@ SRC_URI="https://github.com/atom/atom/releases/download/v${PV}/atom-amd64.tar.gz
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
IUSE="alsa cups nodejs ssl test X"
IUSE="alsa cups ssl test X"
RESTRICT="!test? ( test )"
S="${WORKDIR}/atom-${PV}-amd64"
@@ -26,7 +26,6 @@ RDEPEND="
dev-vcs/git
alsa? ( media-libs/alsa-lib )
cups? ( net-print/cups )
nodejs? ( net-libs/nodejs[npm] )
ssl? (
dev-libs/openssl
dev-libs/openssl-compat
@@ -67,18 +66,10 @@ src_install(){
dosym ../../opt/"${PN}"/atom "${EPREFIX}"/usr/bin/atom
fperms +x /opt/"${PN}"/atom
if use nodejs; then
rm resources/app/apm/bin/npm
rm resources/app/apm/BUNDLED_NODE_VERSION
#Fix apm to use nodejs binary
sed -i "s#\$binDir\/\$nodeBin#\$\(which \$nodeBin\)#" resources/app/apm/bin/apm
else
fperms +x /opt/"${PN}"/resources/app/apm/bin/npm
fi
fperms +x /opt/"${PN}"/resources/app/apm/bin/node
# I will use only npm provided with package itself
fperms +x /opt/"${PN}"/resources/app/apm/bin/apm
fperms +x /opt/"${PN}"/resources/app/apm/bin/node
fperms +x /opt/"${PN}"/resources/app/apm/bin/npm
doicon atom.png
make_desktop_entry "/opt/atom-bin/atom %U" "Atom" "atom" \

View File

@@ -8,7 +8,4 @@
<upstream>
<remote-id type="github">atom/atom</remote-id>
</upstream>
<use>
<flag name="nodejs">Enable nodejs support in USE</flag>
</use>
</pkgmetadata>