blob: ede8bde27a2d4bffae3bfd47f3548b86489b6a32 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=4
inherit eutils
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
# 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):" \
-i Makefile.common
}
src_compile(){
emake -j1
}
src_install() {
dodir /usr/$(get_libdir)
dodir /usr/sbin
dodir /usr/share/man/man8
emake DESTDIR="${ED}" install
}
|