fcc4e90abe
git-svn-id: https://svn.disconnected-by-peer.at/svn/linamh/trunk/linamh@1227 6952d904-891a-0410-993b-d76249ca496b
40 lines
944 B
Bash
40 lines
944 B
Bash
# Copyright 1999-2009 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
# $Header: $
|
|
|
|
EAPI="2"
|
|
|
|
inherit flag-o-matic eutils mercurial
|
|
|
|
DESCRIPTION="Standard tux3 filesystem utilities"
|
|
HOMEPAGE="http://tux3.org/"
|
|
EHG_REPO_URI="http://hg.tux3.org/tux3/"
|
|
|
|
LICENSE="GPL-3"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64 ~x86"
|
|
IUSE="test"
|
|
|
|
RDEPEND="sys-fs/fuse"
|
|
DEPEND=""
|
|
|
|
S="${WORKDIR}/tux3/user"
|
|
|
|
src_prepare() {
|
|
epatch "${FILESDIR}"/tux3-dist-packager-3.patch
|
|
epatch "${FILESDIR}"/tux3-gcc44-1.patch
|
|
}
|
|
|
|
src_compile() {
|
|
emake CC="$(tc-getCC)" UCLFAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" bin || die "build failed"
|
|
if use test; then
|
|
emake CC="$(tc-getCC)" UCLFAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" testbin || die "build failed"
|
|
fi
|
|
}
|
|
|
|
src_install() {
|
|
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
|
|
} |