diff --git a/sys-process/nq/Manifest b/sys-process/nq/Manifest index c17e84c..3c504f4 100644 --- a/sys-process/nq/Manifest +++ b/sys-process/nq/Manifest @@ -1 +1,2 @@ DIST nq-0.5.tar.gz 12229 BLAKE2B 4f68cb0615cfec29d8c67d61983eb34b3d92f9bff5d256bf7b3ba4cfb681572d9b4832d432ef179e90640b9d0f0352df1cf4a553f8cfc1e40e489f6622cd2a9a SHA512 784031971df0585c38c8e47b37d1a5ce73c35c71ab6c9abb7c3df6450eb26a53ad0e649f86a40a742201125ef88e246db34781491935e709ae8fc66afcdf6c0e +DIST nq-1.0.tar.gz 12368 BLAKE2B f81adaecdd6a513e89b4afcf97915fa314e948c5201f0f87fb6fe847057b73bb3b95efd0d3d2b6a052382a53f49088a92089affe094e8274c4f80cf29a046754 SHA512 94bb4eff7ea868b2203d2c7d40752b6050fd89465e8a86a0dd806bbf415180d856fe70c4152c00e42ee4b52c109f74847c0e52ccbf78e9cbcb6a7feaf290f932 diff --git a/sys-process/nq/nq-1.0.ebuild b/sys-process/nq/nq-1.0.ebuild new file mode 100644 index 0000000..30b6626 --- /dev/null +++ b/sys-process/nq/nq-1.0.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DESCRIPTION="Unix command line queue utility" +HOMEPAGE="https://github.com/leahneukirchen/nq" + +if [[ ${PV} == *9999* ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/leahneukirchen/${PN}.git" +else + SRC_URI="https://github.com/leahneukirchen/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64" +fi + +LICENSE="CC0-1.0" +SLOT="0" +IUSE="test" + +RESTRICT="!test? ( test )" + +RDEPEND=" + !dev-gap/nq + !dev-util/fq +" + +BDEPEND=" + test? ( + dev-lang/perl + ) +" + +src_prepare() { + default + + sed -i -e 's/CFLAGS=/CFLAGS?=/' Makefile || die +} + +src_install() { + emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" install +}