Gentoo Archives: gentoo-dev

From: Ralph Seichter <gentoo@××××××××.de>
To: gentoo-dev@l.g.o
Subject: [gentoo-dev] Upstream build uses "npm install", how to handle this in an ebuild?
Date: Sat, 08 Dec 2018 18:27:45
Message-Id: 87lg4z7u23.fsf@ra.horus-it.com
I am trying to add NodeJS support to www-servers/nginx-unit, but the
upstream build relies on a working network connection to download
dependencies and execute "npm install ..." during the build process.

How can this scenario be handled properly in an ebuild? I don't see
obvious existing ebuilds that I could use as a guide. Electron seems to
perform some npm wizardry, but I don't know what to make of it.

-Ralph

Replies