tcc: update patch for live ebuild
[slyfox-gentoo.git] / net-fs / btrfs-nocow / btrfs-nocow-0.ebuild
1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: $
4
5 EAPI="4"
6
7 inherit eutils
8
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"
12
13 LICENSE="public domain"
14 SLOT="0"
15 KEYWORDS="~x86 ~amd64"
16 IUSE=""
17
18 RDEPEND=""
19 DEPEND="${RDEPEND}"
20
21 S="${WORKDIR}"
22
23 src_unpack() { :; }
24
25 src_prepare() {
26         cp "${DISTDIR}"/${P}-nocow.c "${WORKDIR}"/ || die
27 }
28
29 src_compile() {
30         $(tc-getCC) -o ${PN} ${CFLAGS} ${LDFLAGS} ${P}-nocow.c || die "Cannot compile ${PN}"
31 }
32
33 src_install() {
34         dobin ${PN}
35 }