47 lines
1.2 KiB
Bash
47 lines
1.2 KiB
Bash
# Copyright 1999-2013 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
# $Header: /var/cvsroot/gentoo-x86/sys-block/thin-provisioning-tools/thin-provisioning-tools-0.2.1.ebuild,v 1.3 2013/08/16 05:48:22 patrick Exp $
|
|
|
|
EAPI=5
|
|
|
|
inherit eutils autotools toolchain-funcs
|
|
|
|
DESCRIPTION="A suite of tools for thin provisioning on Linux."
|
|
HOMEPAGE="https://github.com/jthornber/thin-provisioning-tools"
|
|
EXT=.tar.gz
|
|
SRC_URI="http://github.com/jthornber/${PN}/archive/v${PV}${EXT} -> ${P}${EXT}"
|
|
|
|
LICENSE="GPL-3"
|
|
SLOT="0"
|
|
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux"
|
|
IUSE=""
|
|
|
|
RDEPEND="dev-libs/expat
|
|
dev-lang/ruby"
|
|
DEPEND="${RDEPEND}
|
|
dev-libs/boost"
|
|
|
|
pkg_pretend() {
|
|
if [[ `gcc-version` < 4.7 ]]; then
|
|
die "Need gcc 4.7 or later to build, current version is `gcc-fullversion`"
|
|
fi
|
|
}
|
|
|
|
src_prepare() {
|
|
epatch "${FILESDIR}"/${P}-LDFLAGS.patch
|
|
eautoreconf
|
|
}
|
|
|
|
src_configure() {
|
|
econf \
|
|
--prefix="${EPREFIX}/" \
|
|
--bindir="${EPREFIX}/sbin" \
|
|
--with-optimisation=""
|
|
}
|
|
|
|
src_install() {
|
|
emake install DESTDIR="${D}" MANDIR=/usr/share/man
|
|
#dosbin cache_check # For testsuite, not use yet
|
|
dobin thin-provisioning/thin_metadata_size
|
|
dodoc README.md TODO.org
|
|
}
|