s390-tools-1.36.1.ebuild 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. # Copyright 1999-2016 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI="5"
  4. inherit toolchain-funcs udev
  5. DESCRIPTION="User space utilities for the zSeries (s390) Linux kernel and device drivers"
  6. HOMEPAGE="http://www.ibm.com/developerworks/linux/linux390/s390-tools.html"
  7. SRC_URI="http://download.boulder.ibm.com/ibmdl/pub/software/dw/linux390/ht_src/${P}.tar.bz2"
  8. LICENSE="GPL-2"
  9. SLOT="0"
  10. KEYWORDS="-* ~s390"
  11. IUSE="fuse ncurses pfm snmp zlib"
  12. RDEPEND="fuse? ( sys-fs/fuse )
  13. ncurses? ( sys-libs/ncurses:0= )
  14. pfm? ( app-misc/pfm )
  15. snmp? ( net-analyzer/net-snmp )
  16. zlib? ( sys-libs/zlib )"
  17. DEPEND="${RDEPEND}
  18. dev-util/indent
  19. app-admin/genromfs"
  20. src_configure() {
  21. export MAKEOPTS+=" V=1"
  22. export HAVE_DRACUT=0
  23. export HAVE_FUSE=$(usex fuse 1 0)
  24. export HAVE_NCURSES=$(usex ncurses 1 0)
  25. export HAVE_SNMP=$(usex snmp 1 0)
  26. export HAVE_PFM=$(usex pfm 1 0)
  27. export HAVE_ZLIB=$(usex zlib 1 0)
  28. tc-export AR BUILD_CC CC CXX LD NM OBJCOPY
  29. }
  30. src_compile() {
  31. emake \
  32. AR="${AR}" \
  33. HOSTCC="${BUILD_CC}" \
  34. CC="${CC}" LINK="${CC}" \
  35. CXX="${CXX}" LINKXX="${CXX}" \
  36. LD="${LD}" \
  37. NM="${NM}" \
  38. OBJCOPY="${OBJCOPY}"
  39. }
  40. src_install() {
  41. default
  42. udev_dorules etc/udev/rules.d/*.rules
  43. }