acl-2.2.52-r1.ebuild 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. # Copyright 1999-2017 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI="4"
  4. inherit eutils libtool toolchain-funcs multilib-minimal
  5. DESCRIPTION="access control list utilities, libraries and headers"
  6. HOMEPAGE="https://savannah.nongnu.org/projects/acl"
  7. SRC_URI="http://download.savannah.gnu.org/releases/${PN}/${P}.src.tar.gz"
  8. LICENSE="LGPL-2.1"
  9. SLOT="0"
  10. KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-linux ~arm-linux ~x86-linux"
  11. IUSE="nls static-libs"
  12. RDEPEND=">=sys-apps/attr-2.4.47-r1[${MULTILIB_USEDEP}]
  13. abi_x86_32? (
  14. !<=app-emulation/emul-linux-x86-baselibs-20140406-r2
  15. !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
  16. )"
  17. DEPEND="${RDEPEND}
  18. nls? ( sys-devel/gettext )"
  19. src_prepare() {
  20. sed -i \
  21. -e "/^PKG_DOC_DIR/s:@pkg_name@:${PF}:" \
  22. -e '/HAVE_ZIPPED_MANPAGES/s:=.*:=false:' \
  23. include/builddefs.in \
  24. || die
  25. strip-linguas po
  26. elibtoolize #580792
  27. # same as https://savannah.nongnu.org/bugs/index.php?39736
  28. multilib_copy_sources
  29. }
  30. multilib_src_configure() {
  31. unset PLATFORM #184564
  32. export OPTIMIZER=${CFLAGS}
  33. export DEBUG=-DNDEBUG
  34. econf \
  35. $(use_enable nls gettext) \
  36. --enable-shared $(use_enable static-libs static) \
  37. --libexecdir="${EPREFIX}"/usr/$(get_libdir) \
  38. --bindir="${EPREFIX}"/bin
  39. }
  40. multilib_src_install() {
  41. emake DIST_ROOT="${D}" install install-dev install-lib
  42. # move shared libs to /
  43. gen_usr_ldscript -a acl
  44. }
  45. multilib_src_install_all() {
  46. use static-libs || prune_libtool_files --all
  47. }