123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- # Copyright 1999-2016 Gentoo Foundation
- # Distributed under the terms of the GNU General Public License v2
- EAPI=4
- inherit eutils toolchain-funcs
- DESCRIPTION="FFS/UFS/UFS2 filesystem utilities from FreeBSD"
- HOMEPAGE="http://packages.debian.org/source/sid/ufsutils"
- SRC_URI="mirror://debian/pool/main/u/${PN}/${PN}_${PV%_*}.orig.tar.gz
- mirror://debian/pool/main/u/${PN}/${PN}_${PV%_*}-${PV##*_p}.debian.tar.gz"
- LICENSE="BSD"
- SLOT="0"
- KEYWORDS="~amd64"
- IUSE=""
- DEPEND="dev-libs/libbsd
- dev-libs/libedit
- sys-libs/ncurses"
- S="${WORKDIR}/${P%_*}"
- src_prepare() {
- EPATCH_SOURCE="${WORKDIR}/debian/patches" EPATCH_SUFFIX="patch" \
- EPATCH_OPTS="-p1" EPATCH_FORCE="yes" epatch
- sed -i '1i#include <sys/sysmacros.h>' sbin/fsdb/fsdbutil.c || die #580292
- # growfs is not properly ported
- sed -e "s:sbin/growfs::" -i Makefile
- sed -e "s:^\(prefix = \)\(.*\):\1${EPREFIX}usr:" \
- -e "s:^\(libdir = \$(exec_prefix)\/\)\(.*\):\1$(get_libdir):" \
- -e "/ar rcs/s:ar:\$(AR):" \
- -i Makefile.common
- }
- src_configure() {
- tc-export AR CC
- }
- src_compile(){
- emake -j1
- }
- src_install() {
- dodir /usr/$(get_libdir)
- dodir /usr/sbin
- dodir /usr/share/man/man8
- emake DESTDIR="${ED}" install
- }
|