diff --git a/sys-apps/nq/Manifest b/sys-apps/nq/Manifest new file mode 100644 index 0000000000..5f9ea0a1a5 --- /dev/null +++ b/sys-apps/nq/Manifest @@ -0,0 +1 @@ +DIST nq-0.4.tar.gz 11976 BLAKE2B 2fa22bd0518e8eea09604db4bfb3c0c11583e8c812bb80697d4697afe30283ff878e367e5e42b0894a1a216ee3ce313f41a8f5d217dcc15a49a8b331d0ba9c3f SHA512 c4587c2074dd6e3d18d56a273b943b2594f6ea73912d774120706dbcb6a64e0b7a99c4da7283cbe0d3d47eb24fa246625e9180a88ee2e0cacc647de8c8606c38 diff --git a/sys-apps/nq/metadata.xml b/sys-apps/nq/metadata.xml new file mode 100644 index 0000000000..2cd03cdfeb --- /dev/null +++ b/sys-apps/nq/metadata.xml @@ -0,0 +1,20 @@ + + + + + marco@sirabella.org + Marco Sirabella + + + leahneukirchen/nq + https://github.com/leahneukirchen/nq/issues + https://git.vuxu.org/nq/plain/NEWS.md + + + These small utilities allow creating very lightweight job queue systems which require no setup, maintenance, supervision, or any long-running processes. + + + Use shell implementation + Install tq, a tmux & screen wrapper + + diff --git a/sys-apps/nq/nq-0.4.ebuild b/sys-apps/nq/nq-0.4.ebuild new file mode 100644 index 0000000000..64666b61b8 --- /dev/null +++ b/sys-apps/nq/nq-0.4.ebuild @@ -0,0 +1,38 @@ +# Copyright 2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DESCRIPTION="Unix command line queue utility" +HOMEPAGE="https://git.vuxu.org/nq/about/" +SRC_URI="https://git.vuxu.org/${PN}/snapshot/${P}.tar.gz" + +LICENSE="public-domain" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +IUSE="-shell +tq test" +RESTRICT="!test? ( test )" +REQUIRED_USE="shell? ( !test )" # shell alternatives currently fail tests + +DEPEND="" +RDEPEND=" + shell? ( sys-apps/util-linux sys-apps/coreutils ) + tq? ( || ( app-misc/tmux app-misc/screen ) ) +" +BDEPEND="test? ( dev-lang/perl )" + +DOCS=( README.md NEWS.md ) + +src_compile() { + if use shell; then + cp nq.sh nq + cp fq.sh fq + fi + emake CFLAGS="${CFLAGS} -Wno-unused-result" +} + +src_install() { + emake DESTDIR="${D}" PREFIX=/usr ALL="nq fq $(usev tq)" install + einstalldocs +}