2024-02-15 10:54:53 +01:00
|
|
|
# Copyright 1999-2024 Gentoo Authors
|
2020-02-01 20:30:42 +01:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
2024-02-15 11:07:58 +01:00
|
|
|
EAPI=8
|
2020-02-01 20:30:42 +01:00
|
|
|
|
|
|
|
DESCRIPTION="Unix command line queue utility"
|
2020-02-01 22:07:41 +01:00
|
|
|
HOMEPAGE="https://github.com/leahneukirchen/nq"
|
2020-02-01 20:30:42 +01:00
|
|
|
|
|
|
|
if [[ ${PV} == *9999* ]]; then
|
|
|
|
inherit git-r3
|
2020-02-01 22:07:41 +01:00
|
|
|
EGIT_REPO_URI="https://github.com/leahneukirchen/${PN}.git"
|
2020-02-01 20:30:42 +01:00
|
|
|
else
|
2020-02-01 22:12:00 +01:00
|
|
|
SRC_URI="https://github.com/leahneukirchen/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
2020-02-01 20:30:42 +01:00
|
|
|
KEYWORDS="~amd64"
|
|
|
|
fi
|
|
|
|
|
|
|
|
LICENSE="CC0-1.0"
|
|
|
|
SLOT="0"
|
2024-02-15 11:07:58 +01:00
|
|
|
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
|
|
|
|
}
|
2020-02-01 20:30:42 +01:00
|
|
|
|
|
|
|
src_install() {
|
2024-02-15 11:07:58 +01:00
|
|
|
emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" install
|
2020-02-01 20:30:42 +01:00
|
|
|
}
|