net-dns/knot: Clean ebuilds
Package-Manager: portage-2.2.28
This commit is contained in:
parent
df587b6aa4
commit
798ab5aed4
4 changed files with 240 additions and 39 deletions
|
|
@ -1,8 +1,8 @@
|
|||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
EAPI=6
|
||||
|
||||
inherit eutils user
|
||||
|
||||
|
|
@ -19,7 +19,10 @@ RDEPEND="
|
|||
>=dev-libs/openssl-1.0.1
|
||||
>=dev-libs/userspace-rcu-0.5.4
|
||||
caps? ( >=sys-libs/libcap-ng-0.6.4 )
|
||||
dnstap? ( dev-libs/fstrm dev-libs/protobuf-c )
|
||||
dnstap? (
|
||||
dev-libs/fstrm
|
||||
dev-libs/protobuf-c
|
||||
)
|
||||
idn? ( net-dns/libidn )
|
||||
lmdb? ( dev-db/lmdb )
|
||||
systemd? ( sys-apps/systemd )
|
||||
|
|
@ -29,13 +32,14 @@ DEPEND="${RDEPEND}
|
|||
virtual/pkgconfig
|
||||
sys-devel/flex
|
||||
sys-devel/bison
|
||||
doc? ( dev-python/sphinx app-text/texlive-core sys-apps/texinfo )
|
||||
doc? ( dev-python/sphinx )
|
||||
"
|
||||
|
||||
S="${WORKDIR}/${P/_/-}"
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}/1.6.3-dont-create-extra-directories.patch"
|
||||
eapply_user
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
|
|
@ -53,15 +57,11 @@ src_configure() {
|
|||
|
||||
src_compile() {
|
||||
default
|
||||
use doc && emake -C doc html-local singlehtml pdf-local info-local
|
||||
use doc && emake -C doc html
|
||||
}
|
||||
|
||||
# Portage's automatic test code runs "make -n check" to see if there
|
||||
# is a "check" target, but that fails here because the test
|
||||
# infrastructure hasn't been built yet. Just run "make check", which
|
||||
# will build it and then run the tests.
|
||||
src_test() {
|
||||
emake -j1 check
|
||||
emake check
|
||||
}
|
||||
|
||||
src_install() {
|
||||
|
|
@ -69,24 +69,16 @@ src_install() {
|
|||
keepdir /var/lib/${PN}
|
||||
|
||||
if use doc; then
|
||||
dodoc doc/_build/latex/KnotDNS.pdf
|
||||
|
||||
docinto html
|
||||
dodoc doc/_build/html/*.html doc/_build/html/*.js
|
||||
docinto html/_sources
|
||||
dodoc doc/_build/html/_sources/*
|
||||
docinto html/_static
|
||||
dodoc doc/_build/html/_static/*
|
||||
|
||||
docinto singlehtml
|
||||
dodoc doc/_build/singlehtml/index.html
|
||||
docinto singlehtml/_static/
|
||||
dodoc doc/_build/singlehtml/_static/*
|
||||
|
||||
doinfo doc/_build/texinfo/KnotDNS.info
|
||||
fi
|
||||
|
||||
newinitd "${FILESDIR}/knot.init" knot
|
||||
systemd_dounit "${FILESDIR}/knot.service"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue