wavemon-0.7.5.ebuild 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. # Copyright 1999-2014 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI="5"
  4. AUTOTOOLS_AUTORECONF=1
  5. AUTOTOOLS_IN_SOURCE_BUILD=1
  6. inherit autotools-utils
  7. DESCRIPTION="Ncurses based monitor for IEEE 802.11 wireless LAN cards"
  8. HOMEPAGE="http://eden-feed.erg.abdn.ac.uk/wavemon/"
  9. SRC_URI="http://eden-feed.erg.abdn.ac.uk/wavemon/stable-releases/${P}.tar.bz2"
  10. LICENSE="GPL-3"
  11. SLOT="0"
  12. KEYWORDS="amd64 arm hppa ppc sparc x86"
  13. IUSE="caps"
  14. RDEPEND="sys-libs/ncurses
  15. caps? ( sys-libs/libcap )"
  16. DEPEND="${RDEPEND}
  17. virtual/pkgconfig"
  18. DOCS=( AUTHORS ChangeLog NEWS README THANKS )
  19. PATCHES=(
  20. "${FILESDIR}/${PN}-0.6.7-dont-override-CFLAGS.patch"
  21. "${FILESDIR}/${P}-ncurses-tinfo.patch"
  22. )
  23. src_prepare() {
  24. # Do not install docs to /usr/share
  25. sed -i -e '/^install:/s/install-docs//' Makefile.in || die 'sed on Makefile.in failed'
  26. # automagic on libcap, discovered in bug #448406
  27. use caps || export ac_cv_lib_cap_cap_get_flag=false
  28. autotools-utils_src_prepare
  29. }
  30. src_install() {
  31. autotools-utils_src_install
  32. # Install man files manually(bug #397807)
  33. doman wavemon.1
  34. doman wavemonrc.5
  35. }