reiserfsprogs-3.6.25.ebuild 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. # Copyright 1999-2016 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI="5"
  4. inherit eutils flag-o-matic
  5. DESCRIPTION="Reiserfs Utilities"
  6. HOMEPAGE="https://www.kernel.org/pub/linux/utils/fs/reiserfs/"
  7. SRC_URI="mirror://kernel/linux/utils/fs/reiserfs/${P}.tar.xz
  8. mirror://kernel/linux/kernel/people/jeffm/${PN}/v${PV}/${P}.tar.xz"
  9. LICENSE="GPL-2"
  10. SLOT="0"
  11. KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 -sparc ~x86 ~amd64-linux ~x86-linux"
  12. IUSE="static-libs"
  13. src_configure() {
  14. append-flags -std=gnu89 #427300
  15. econf \
  16. --bindir="${EPREFIX}/bin" \
  17. --libdir="${EPREFIX}/$(get_libdir)" \
  18. --sbindir="${EPREFIX}/sbin" \
  19. $(use_enable static-libs static)
  20. }
  21. src_install() {
  22. default
  23. dodir /usr/$(get_libdir)
  24. mv "${D}"/$(get_libdir)/pkgconfig "${D}"/usr/$(get_libdir) || die
  25. if use static-libs ; then
  26. mv "${D}"/$(get_libdir)/*a "${D}"/usr/$(get_libdir) || die
  27. gen_usr_ldscript libreiserfscore.so
  28. else
  29. find "${D}" -type f \( -name "*.a" -o -name "*.la" \) -delete
  30. fi
  31. }