libnet-1.2_rc3-r1.ebuild 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. # Copyright 1999-2017 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=6
  4. inherit autotools eutils
  5. DESCRIPTION="library providing an API for commonly used low-level network functions"
  6. HOMEPAGE="http://libnet-dev.sourceforge.net/"
  7. SRC_URI="mirror://sourceforge/project/${PN}-dev/${P/_/-}.tar.gz"
  8. LICENSE="BSD BSD-2 HPND"
  9. SLOT="1.1"
  10. KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86 ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
  11. IUSE="doc static-libs"
  12. DOCS=(
  13. README doc/{CHANGELOG,CONTRIB,DESIGN_NOTES,MIGRATION}
  14. doc/{PACKET_BUILDING,PORTED,RAWSOCKET_NON_SEQUITUR,TODO}
  15. )
  16. S=${WORKDIR}/${P/_/-}
  17. PATCHES=(
  18. "${FILESDIR}"/${PN}-1.1.6-musl.patch
  19. "${FILESDIR}"/${PN}-1.2-_SOURCE.patch
  20. "${FILESDIR}"/${PN}-1.2-rc.patch
  21. "${FILESDIR}"/${PN}-1.2-sizeof.patch
  22. "${FILESDIR}"/${PN}-1.2-socklen_t.patch
  23. )
  24. src_prepare() {
  25. default
  26. eautoreconf
  27. }
  28. src_configure() {
  29. econf $(use_enable static-libs static)
  30. }
  31. src_install() {
  32. default
  33. if use doc ; then
  34. docinto html
  35. dodoc -r doc/html/*
  36. docinto sample
  37. dodoc sample/*.[ch]
  38. fi
  39. prune_libtool_files
  40. }