hfsplusutils-1.0.4-r1.ebuild 1023 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. # Copyright 1999-2016 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI="5"
  4. inherit autotools eutils flag-o-matic
  5. MY_P="hfsplus_${PV}"
  6. DESCRIPTION="HFS+ Filesystem Access Utilities (a PPC filesystem)"
  7. HOMEPAGE="http://penguinppc.org/historical/hfsplus/"
  8. SRC_URI="http://penguinppc.org/historical/hfsplus/${MY_P}.src.tar.bz2"
  9. LICENSE="GPL-2"
  10. SLOT="0"
  11. KEYWORDS="ppc ppc64 x86"
  12. IUSE="static-libs"
  13. DEPEND="app-arch/bzip2"
  14. RDEPEND=""
  15. S=${WORKDIR}/hfsplus-${PV}
  16. src_prepare() {
  17. epatch "${FILESDIR}/${P}-glob.patch"
  18. epatch "${FILESDIR}/${P}-errno.patch"
  19. epatch "${FILESDIR}/${P}-gcc4.patch"
  20. epatch "${FILESDIR}/${P}-string.patch"
  21. epatch "${FILESDIR}/${P}-stdlib.patch"
  22. epatch "${FILESDIR}/${P}-cflags.patch"
  23. # let's avoid the Makefile.cvs since isn't working for us
  24. eautoreconf
  25. append-flags -fgnu89-inline
  26. }
  27. src_configure() {
  28. econf $(use_enable static-libs static)
  29. }
  30. src_install() {
  31. default
  32. find "${ED}"/usr/ -name libhfsp.la -delete
  33. newman doc/man/hfsp.man hfsp.1
  34. }