summaryrefslogtreecommitdiff
blob: 6040cbf8639a46e13063efc7e7af52f5e5246b3c (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
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

DESCRIPTION="System utilities for UnionFS"
HOMEPAGE="http://www.fsl.cs.sunysb.edu/project-unionfs.html"
SRC_URI="ftp://ftp.fsl.cs.sunysb.edu/pub/unionfs/unionfs-utils-0.x/${P/-/_}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="static"

DEPEND=""
RDEPEND=""

S="${WORKDIR}/${P/-/_}"

src_compile() {
	# --enable-static for this package is for libraries only.
	# livecd and initrd want these in /sbin static or not,
	# whereas the package puts them in /usr/bin.
	local myconf="--bindir=/sbin --sbindir=/sbin"

	use static && myconf="--disable-shared --enable-static ${myconf}"
	econf ${myconf} || die "econf failed"

	# bundled configure and libtool are not smart enough for static
	use static && sed -i -e "s:^LDFLAGS =\(.*\):LDFLAGS = -all-static \1:g" Makefile
	emake || die "emake failed"
}

src_install () {
	emake DESTDIR="${D}" install || die "emake install failed"
	dodoc ChangeLog INSTALL NEWS README
}