-  
- # Copyright 1999-2014 Gentoo Foundation
- # Distributed under the terms of the GNU General Public License v2
- # $Header: $
- EAPI=6
- KEYWORDS="~amd64 ~x86"
- inherit git-r3
- EGIT_REPO_URI="https://gitlab.com/NTPsec/ntpsec.git"
- 
- PYTHON_COMPAT=( python2_7 )
- #PYTHON_COMPAT=( python3_4 )
- PYTHON_REQ_USE='threads(+)'
- inherit python-r1 waf-utils
- 
- DESCRIPTION="The NTP reference implementation, refactored"
- HOMEPAGE="https://www.ntpsec.org/"
- 
- LICENSE="ntp"
- SLOT="0"
- IUSE="ntpviz refclock ssl seccomp" #ionice
- 
- X_CDEPEND="
- sys-libs/libcap
-  dev-python/psutil 
- ssl? ( dev-libs/openssl )
- seccomp? ( sys-libs/libseccomp )
- "
- 
- RDEPEND="
- ${X_CDEPEND}
- ntpviz? ( sci-visualization/gnuplot media-fonts/liberation-fonts )
- "
- 
- DEPEND="
- ${X_CDEPEND}
- app-text/asciidoc
- app-text/docbook-xsl-stylesheets
- sys-devel/bison
- "
- 
- src_prepare() {
- 	python_setup
- 	eapply_user
- }
- 
- src_configure() {
- 	local group_127=()
- 
- #		$(use  ssl	&& echo "--enable-crypto") \ ## Replaced
- 	waf-utils_src_configure --nopyc --nopyo \
- 		--prefix="${EPREFIX}/usr" \
- 		$(use	ssl		&& echo "--enable-crypto") \
- 		$(use	seccomp		&& echo "--enable-seccomp") \
- 		$(use	refclock	&& echo "--refclock=all") \
- 		--mandir=/usr/share/man/
- }
- 
- src_install() {
- 	waf-utils_src_install
- 	mv -v "${ED}/usr/"{,share/}man
- 	if use ntpviz ; then
- 		dosbin	"${S}/contrib/cpu-temp-log" \
- 			"${S}/contrib/gps-log" \
- 			"${S}/contrib/smartctl-temp-log" \
- 			"${S}/contrib/temper-temp-log" \
- 			"${S}/contrib/zone-temp-log"
- 	else
- 		dorm "${ED}/bin/ntpviz" "${ED}/share/man/man1/ntpviz.1.bz2"
- 	fi
- 	dodoc "${S}/contrib/ntp.conf.basic.sample" "${S}/contrib/ntp.conf.log.sample"
- 	dosbin "${S}/attic/ntpdate"
- 	cp "${files}/ntpd.service" "/usr/lib/systemd/system/"
- }
-