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