2009-05-17 22:25:26 +02:00
|
|
|
# Copyright 1999-2009 Gentoo Foundation
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
# $Header: $
|
|
|
|
|
|
|
|
EAPI="2"
|
|
|
|
|
2012-11-14 21:53:11 +01:00
|
|
|
inherit flag-o-matic eutils git-2
|
2009-05-17 22:25:26 +02:00
|
|
|
|
|
|
|
DESCRIPTION="Standard tux3 filesystem utilities"
|
|
|
|
HOMEPAGE="http://tux3.org/"
|
2012-11-14 21:53:11 +01:00
|
|
|
EGIT_REPO_URI="git://github.com/OGAWAHirofumi/tux3.git"
|
|
|
|
EGIT_BRANCH="temp-atomic-commit"
|
2009-05-17 22:25:26 +02:00
|
|
|
|
2009-05-17 22:43:37 +02:00
|
|
|
LICENSE="GPL-3"
|
2009-05-17 22:25:26 +02:00
|
|
|
SLOT="0"
|
|
|
|
KEYWORDS="~amd64 ~x86"
|
2009-05-18 07:18:27 +02:00
|
|
|
IUSE="test"
|
2009-05-17 22:25:26 +02:00
|
|
|
|
2009-05-17 22:43:37 +02:00
|
|
|
RDEPEND="sys-fs/fuse"
|
2009-05-17 22:25:26 +02:00
|
|
|
DEPEND=""
|
|
|
|
|
|
|
|
src_compile() {
|
2012-11-14 21:53:11 +01:00
|
|
|
cd user
|
|
|
|
emake CC="$(tc-getCC)" UCLFAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" || die "build failed"
|
2009-05-18 07:18:27 +02:00
|
|
|
if use test; then
|
|
|
|
emake CC="$(tc-getCC)" UCLFAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" testbin || die "build failed"
|
|
|
|
fi
|
2009-05-17 22:25:26 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
2012-11-14 21:53:11 +01:00
|
|
|
cd user
|
2009-05-18 07:18:27 +02:00
|
|
|
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"
|
|
|
|
fi
|
2009-05-17 22:25:26 +02:00
|
|
|
}
|