This commit is contained in:
Mario Fetka
2012-11-14 21:53:11 +01:00
parent 35be7829a3
commit c06aee3ed6
7 changed files with 22 additions and 28 deletions

View File

@@ -4,11 +4,12 @@
EAPI="2"
inherit flag-o-matic eutils mercurial
inherit flag-o-matic eutils git-2
DESCRIPTION="Standard tux3 filesystem utilities"
HOMEPAGE="http://tux3.org/"
EHG_REPO_URI="http://hg.tux3.org/tux3/"
EGIT_REPO_URI="git://github.com/OGAWAHirofumi/tux3.git"
EGIT_BRANCH="temp-atomic-commit"
LICENSE="GPL-3"
SLOT="0"
@@ -18,16 +19,16 @@ IUSE="test"
RDEPEND="sys-fs/fuse"
DEPEND=""
S="${WORKDIR}/tux3/user"
src_compile() {
emake CC="$(tc-getCC)" UCLFAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" bin || die "build failed"
cd user
emake CC="$(tc-getCC)" UCLFAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" || die "build failed"
if use test; then
emake CC="$(tc-getCC)" UCLFAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" testbin || die "build failed"
fi
}
src_install() {
cd user
emake DISTDIR="${D}" PREFIX="/usr" install-bin || die "install failed"
if use test; then
use test && emake DISTDIR="${D}" PREFIX="/usr" install-test || die "install failed"