spacepaste

  1.  
  2. # Copyright 1999-2014 Gentoo Foundation
  3. # Distributed under the terms of the GNU General Public License v2
  4. # $Header: $
  5. EAPI=6
  6. KEYWORDS="~amd64 ~x86"
  7. inherit git-r3
  8. EGIT_REPO_URI="https://gitlab.com/NTPsec/ntpsec.git"
  9. PYTHON_COMPAT=( python2_7 )
  10. PYTHON_REQ_USE='threads(+)'
  11. inherit python-r1 waf-utils
  12. DESCRIPTION="The NTP reference implementation, refactored"
  13. HOMEPAGE="https://www.ntpsec.org/"
  14. LICENSE="ntp"
  15. SLOT="0"
  16. #NTPSEC_REFCLOCK=(
  17. # oncore trimble truetime gpsd jjy generic spectracom acts
  18. # shm pps hpgps zyfer arbiter nmea neoclock jupiter dumbclock
  19. # local magnavox
  20. #)
  21. #IUSE_NTPSEC_REFCLOCK=${NTPSEC_REFCLOCK[@]/#/ntpsec_refclock_}
  22. IUSE="ntpviz refclock ssl seccomp" #ionice
  23. RDEPEND="
  24. sys-libs/libcap
  25. dev-python/psutil
  26. ntpviz? ( sci-visualization/gnuplot media-fonts/liberation-fonts )
  27. ssl? ( dev-libs/openssl )
  28. seccomp? ( sys-libs/libseccomp )
  29. "
  30. DEPEND="${RDEPEND}
  31. app-text/asciidoc
  32. app-text/docbook-xsl-stylesheets
  33. sys-devel/bison
  34. "
  35. src_prepare() {
  36. python_setup
  37. eapply_user
  38. }
  39. src_configure() {
  40. local group_127=()
  41. # local refclock
  42. # for refclock in ${NTPSEC_REFCLOCK[@]} ; do
  43. # $(use ntpsec_refclock_${refclock} && group_127+=( ${refclock} ) )
  44. ## group_127+=( use ntpsec_refclock_${refclock} ${refclock} )
  45. # done
  46. # elog "refclocks" $group_127
  47. # $(use ssl && echo "--enable-crypto") \ ## Replaced
  48. waf-utils_src_configure --nopyc --nopyo \
  49. $(use_enable ssl crypto) \
  50. $(use_enable seccomp seccomp) \
  51. $(use refclock && echo "--refclock=all") \
  52. --mandir=/usr/share/man/
  53. # --refclock=$group_127
  54. }
  55. src_install() {
  56. waf-utils_src_install
  57. mv -v ${D}/usr/{,share/}man
  58. }
  59.