# Copyright 1999-2014 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI=5 DISTUTILS_OPTIONAL=1 PYTHON_COMPAT=( python2_7 ) PYTHON_REQ_USE='threads(+)' inherit git-r3 python-r1 waf-utils DESCRIPTION="The NTP reference implementation, refactored" HOMEPAGE="https://www.ntpsec.org/" EGIT_REPO_URI="https://gitlab.com/NTPsec/ntpsec.git" LICENSE="ntp" SLOT="0" KEYWORDS="~amd64 ~x86" NTPSEC_REFCLOCK=( oncore trimble truetime gpsd jjy generic spectracom acts shm pps hpgps zyfer arbiter nmea neoclock jupiter dumbclock local magnavox ) IUSE_NTPSEC_REFCLOCK=${NTPSEC_REFCLOCK[@]/#/ntpsec_refclock_} IUSE="${IUSE_NTPSEC_REFCLOCK} ntpviz ssl seccomp" #ionice RDEPEND=" sys-libs/libcap dev-python/psutil ntpviz? ( sci-visualization/gnuplot media-fonts/liberation-fonts ) ssl? ( dev-libs/openssl ) seccomp? ( sys-libs/libseccomp ) " #dmapi? ( sys-apps/dmapi ) ## Phalse DEPEND="${RDEPEND} app-text/asciidoc app-text/docbook-xsl-stylesheets sys-devel/bison " #S="${WORKDIR}/ntpsec" src_prepare() { python_setup } src_configure() { local group_127=() local refclock for refclock in ${NTPSEC_REFCLOCK[@]} ; do $(use ntpsec_refclock_${refclock} && group_127+=( ${refclock} ) ) # group_127+=( use ntpsec_refclock_${refclock} ${refclock} ) done elog "refclocks" $group_127 # oncore trimble truetime gpsd jjy generic spectracom acts # shm pps hpgps zyfer arbiter nmea neoclock jupiter dumbclock # local magnavox waf-utils_src_configure --nopyc --nopyo \ $(use ssl && echo "--enable-crypto") \ $(use seccomp && echo "--enable-seccomp") \ --refclock=$group_127 }