logo

overlay

My own overlay for experimentations, use with caution, no support is provided git clone https://hacktivis.me/git/overlay.git
commit: 061e56e6ea4c8ab2a4da04eb19dedfc9cf3bc9dc
parent 0b76ba5b46b0ed644332f4a9d9df840526f23707
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Sun,  5 Mar 2023 00:26:20 +0100

dev-util/uglifyjs: Add documentation + help2man generation

Diffstat:

Mdev-util/uglifyjs/uglifyjs-3.17.4.ebuild6++++++
1 file changed, 6 insertions(+), 0 deletions(-)

diff --git a/dev-util/uglifyjs/uglifyjs-3.17.4.ebuild b/dev-util/uglifyjs/uglifyjs-3.17.4.ebuild @@ -22,6 +22,9 @@ RESTRICT="!test? ( test )" DEPEND="test? ( dev-nodejs/semver )" RDEPEND="net-libs/nodejs" +BDEPEND="sys-apps/help2man" + +DOCS=( README.md ) NPM_FLAGS=( --audit false @@ -42,10 +45,13 @@ src_prepare() { } src_compile() { + help2man -s1 -o uglifyjs.1 -N ./bin/uglifyjs || die npm "${NPM_FLAGS[@]}" pack || die } src_install() { + einstalldocs + doman uglifyjs.1 npm "${NPM_FLAGS[@]}" \ --prefix "${ED}"/usr \ install \