Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions net-libs/nodejs/nodejs-20.19.2.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Distributed under the terms of the GNU General Public License v2

EAPI=7

PYTHON_COMPAT=( python3+ )

inherit python-any-r1

DESCRIPTION="Node.js JavaScript runtime"
HOMEPAGE="https://nodejs.org"
SRC_URI="https://api.github.com/repos/nodejs/node/tarball/v20.19.2 -> nodejs-20.19.2.tar.gz"

LICENSE="Apache-1.1 Apache-2.0 BSD BSD-2 MIT"
SLOT="0"
KEYWORDS="*"
IUSE=""

DEPEND=""
RDEPEND="${DEPEND}"
BDEPEND="
${PYTHON_DEPS}
"

post_src_unpack() {
mv "${WORKDIR}"/nodejs-node-* "${S}" || die
}

src_configure() {
configure_options=(
# By default, prefix is /usr/local, which is outside of PATH,
# set it to /usr instead:
--prefix="${EPREFIX}"/usr
)

# NOTE: `econf` default flags appear to trip up the configure process,
# directly call the ./configure script instead.
./configure "${configure_options[@]}"
}
Loading