ufsutils-8.2_p3.ebuild 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. # Copyright 1999-2016 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=4
  4. inherit eutils toolchain-funcs
  5. DESCRIPTION="FFS/UFS/UFS2 filesystem utilities from FreeBSD"
  6. HOMEPAGE="http://packages.debian.org/source/sid/ufsutils"
  7. SRC_URI="mirror://debian/pool/main/u/${PN}/${PN}_${PV%_*}.orig.tar.gz
  8. mirror://debian/pool/main/u/${PN}/${PN}_${PV%_*}-${PV##*_p}.debian.tar.gz"
  9. LICENSE="BSD"
  10. SLOT="0"
  11. KEYWORDS="~amd64"
  12. IUSE=""
  13. DEPEND="dev-libs/libbsd
  14. dev-libs/libedit
  15. sys-libs/ncurses"
  16. S="${WORKDIR}/${P%_*}"
  17. src_prepare() {
  18. EPATCH_SOURCE="${WORKDIR}/debian/patches" EPATCH_SUFFIX="patch" \
  19. EPATCH_OPTS="-p1" EPATCH_FORCE="yes" epatch
  20. sed -i '1i#include <sys/sysmacros.h>' sbin/fsdb/fsdbutil.c || die #580292
  21. # growfs is not properly ported
  22. sed -e "s:sbin/growfs::" -i Makefile
  23. sed -e "s:^\(prefix = \)\(.*\):\1${EPREFIX}usr:" \
  24. -e "s:^\(libdir = \$(exec_prefix)\/\)\(.*\):\1$(get_libdir):" \
  25. -e "/ar rcs/s:ar:\$(AR):" \
  26. -i Makefile.common
  27. }
  28. src_configure() {
  29. tc-export AR CC
  30. }
  31. src_compile(){
  32. emake -j1
  33. }
  34. src_install() {
  35. dodir /usr/$(get_libdir)
  36. dodir /usr/sbin
  37. dodir /usr/share/man/man8
  38. emake DESTDIR="${ED}" install
  39. }