cbc955c49a9186a43dfef834cefcb997df711bc5
[slyfox-gentoo.git] / net-fs / btrfs-nocow / btrfs-nocow-0.ebuild
blobcbc955c49a9186a43dfef834cefcb997df711bc5
1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: $
5 EAPI="4"
7 inherit eutils
9 DESCRIPTION="Tool to set nodatacow flag"
10 HOMEPAGE="http://dave.jikos.cz/"
11 SRC_URI="http://dave.jikos.cz/nocow.c -> ${P}-nocow.c"
13 LICENSE="public domain"
14 SLOT="0"
15 KEYWORDS="~x86 ~amd64"
16 IUSE=""
18 RDEPEND=""
19 DEPEND="${RDEPEND}"
21 S="${WORKDIR}"
23 src_unpack() { :; }
25 src_prepare() {
26 cp "${DISTDIR}"/${P}-nocow.c "${WORKDIR}"/ || die
27 }
29 src_compile() {
30 $(tc-getCC) -o ${PN} ${CFLAGS} ${LDFLAGS} ${P}-nocow.c || die "Cannot compile ${PN}"
31 }
33 src_install() {
34 dobin ${PN}
35 }