net-misc/chrony: Drop USE=pps preference now that it has a dependency. Update live...
authorJeroen Roovers <jer@gentoo.org>
Sun, 6 Nov 2016 09:27:32 +0000 (10:27 +0100)
committerJeroen Roovers <jer@gentoo.org>
Sun, 6 Nov 2016 09:32:22 +0000 (10:32 +0100)
Package-Manager: portage-2.3.2

net-misc/chrony/chrony-2.4-r1.ebuild
net-misc/chrony/chrony-9999.ebuild

index c2601db3e7e5e0a011a1bf6718a5c886cb07e3a1..954f2663a4ff756c1edc9dc03899cc4b81920a19 100644 (file)
@@ -2,7 +2,7 @@
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
-EAPI=5
+EAPI=6
 inherit eutils systemd toolchain-funcs
 
 DESCRIPTION="NTP client and server programs"
@@ -12,7 +12,7 @@ LICENSE="GPL-2"
 SLOT="0"
 
 KEYWORDS="~amd64"
-IUSE="caps +cmdmon html ipv6 libedit +ntp +phc +pps readline +refclock +rtc selinux +adns"
+IUSE="caps +cmdmon html ipv6 libedit +ntp +phc pps readline +refclock +rtc selinux +adns"
 REQUIRED_USE="
        ?? ( libedit readline )
 "
@@ -41,6 +41,8 @@ src_prepare() {
                -e 's:/etc/chrony\.:/etc/chrony/chrony.:g' \
                -e 's:/var/run:/run:g' \
                conf.c doc/*.man.in examples/* || die
+
+       default
 }
 
 src_configure() {
@@ -89,7 +91,6 @@ src_configure() {
 
 src_compile() {
        emake all docs $(usex html '' 'ADOC=true')
-
 }
 
 src_install() {
index 13709c01b0b11b317ee578dd036dce91ec3c3c40..b744729dbdd81a738cefcaabcec55498b1ce303c 100644 (file)
@@ -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 git-r3 systemd toolchain-funcs
 
 DESCRIPTION="NTP client and server programs"
@@ -12,7 +12,7 @@ LICENSE="GPL-2"
 SLOT="0"
 
 KEYWORDS=""
-IUSE="caps +cmdmon ipv6 libedit +ntp +phc +pps readline +refclock +rtc selinux +adns"
+IUSE="caps +cmdmon html ipv6 libedit +ntp +phc pps readline +refclock +rtc selinux +adns"
 REQUIRED_USE="
        ?? ( libedit readline )
 "
@@ -20,11 +20,12 @@ REQUIRED_USE="
 CDEPEND="
        caps? ( sys-libs/libcap )
        libedit? ( dev-libs/libedit )
+       pps? ( net-misc/pps-tools )
        readline? ( >=sys-libs/readline-4.1-r4:= )
 "
 DEPEND="
        ${CDEPEND}
-       sys-apps/texinfo
+       html? ( dev-ruby/asciidoctor )
 "
 RDEPEND="
        ${CDEPEND}
@@ -39,7 +40,9 @@ src_prepare() {
        sed -i \
                -e 's:/etc/chrony\.:/etc/chrony/chrony.:g' \
                -e 's:/var/run:/run:g' \
-               conf.c chrony.texi.in examples/* || die
+               conf.c doc/*.man.in examples/* || die
+
+       default
 }
 
 src_configure() {
@@ -73,7 +76,6 @@ src_configure() {
                ${EXTRA_ECONF} \
                --docdir=/usr/share/doc/${PF} \
                --chronysockdir=/run/chrony \
-               --infodir=/usr/share/info \
                --mandir=/usr/share/man \
                --prefix=/usr \
                --sysconfdir=/etc/chrony \
@@ -88,26 +90,30 @@ src_configure() {
 }
 
 src_compile() {
-       emake all docs
+       emake all docs $(usex html '' 'ADOC=true')
 }
 
 src_install() {
        default
 
-       doinfo chrony.info*
-
        newinitd "${FILESDIR}"/chronyd.init-r1 chronyd
        newconfd "${FILESDIR}"/chronyd.conf chronyd
 
        insinto /etc/${PN}
        newins examples/chrony.conf.example1 chrony.conf
 
+       docinto examples
        dodoc examples/*.example*
 
+       if use html; then
+               docinto html
+               dodoc doc/*.html
+       fi
+
        keepdir /var/{lib,log}/chrony
 
        insinto /etc/logrotate.d
-       newins "${FILESDIR}"/chrony-2.2.logrotate chrony
+       newins "${FILESDIR}"/chrony-2.4-r1.logrotate chrony
 
        systemd_newunit "${FILESDIR}"/chronyd.service-r2 chronyd.service
        systemd_enable_ntpunit 50-chrony chronyd.service