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=( python3_3 )
  10. PYTHON_COMPAT=( python2_7 python3_4 )
  11. PYTHON_REQ_USE='threads(+)'
  12. inherit python-r1 waf-utils
  13. DESCRIPTION="The NTP reference implementation, refactored"
  14. HOMEPAGE="https://www.ntpsec.org/"
  15. LICENSE="ntp"
  16. SLOT="0"
  17. IUSE="ntpviz refclock ssl seccomp" #ionice
  18. RDEPEND="
  19. sys-libs/libcap
  20. dev-python/psutil
  21. ntpviz? ( sci-visualization/gnuplot media-fonts/liberation-fonts )
  22. ssl? ( dev-libs/openssl )
  23. seccomp? ( sys-libs/libseccomp )
  24. "
  25. DEPEND="${RDEPEND}
  26. app-text/asciidoc
  27. app-text/docbook-xsl-stylesheets
  28. sys-devel/bison
  29. "
  30. src_prepare() {
  31. python_setup
  32. eapply_user
  33. }
  34. src_configure() {
  35. local group_127=()
  36. # $(use ssl && echo "--enable-crypto") \ ## Replaced
  37. waf-utils_src_configure --nopyc --nopyo \
  38. --prefix="${EPREFIX}/usr" \
  39. $(use ssl && echo "--enable-crypto") \
  40. $(use seccomp && echo "--enable-seccomp") \
  41. $(use refclock && echo "--refclock=all") \
  42. --mandir=/usr/share/man/
  43. }
  44. src_install() {
  45. waf-utils_src_install
  46. mv -v "${ED}/usr/"{,share/}man
  47. if use ntpviz ; then
  48. dosbin "${S}/contrib/cpu-temp-log" \
  49. "${S}/contrib/gps-log" \
  50. "${S}/contrib/smartctl-temp-log" \
  51. "${S}/contrib/temper-temp-log" \
  52. "${S}/contrib/zone-temp-log"
  53. else
  54. dorm "${ED}/bin/ntpviz" "${ED}/share/man/man1/ntpviz.1.bz2"
  55. fi
  56. }
  57.