blob: bf9d00a06ae84fe872f621f8399de3ecb498d62e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
# Copyright 1999-2014 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.8-r2.ebuild,v 1.2 2014/08/10 20:22:49 slyfox Exp $
EAPI=5
inherit base autotools
DESCRIPTION="A suite of tools for thin provisioning on Linux"
HOMEPAGE="https://github.com/jthornber/thin-provisioning-tools"
EXT=.tar.gz
BASE_A=${P}${EXT}
SRC_URI="http://github.com/jthornber/${PN}/archive/v${PV}${EXT} -> ${BASE_A}
https://github.com/denys-duchier/thin-provisioning-tools/commit/3a4c06b772bc8ca27bcf7c2d82abc46c65c23795.diff -> ${P}-boost.patch"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux"
IUSE="test"
RDEPEND="dev-libs/expat"
# || ( ) is a non-future proof workaround for Portage unefficiency wrt #477050
DEPEND="${RDEPEND}
test? (
|| ( dev-lang/ruby:2.9 dev-lang/ruby:2.8 dev-lang/ruby:2.7 dev-lang/ruby:2.6 dev-lang/ruby:2.5 dev-lang/ruby:2.4 dev-lang/ruby:2.3 dev-lang/ruby:2.2 dev-lang/ruby:2.1 dev-lang/ruby:2.0 dev-lang/ruby:1.9 dev-lang/ruby:1.8 )
dev-cpp/gmock
dev-util/cucumber
dev-util/aruba
)
dev-libs/boost"
PATCHES=( "${DISTDIR}"/${P}-boost.patch )
src_unpack() {
unpack ${BASE_A}
}
src_prepare() {
base_src_prepare
eautoreconf
}
src_configure() {
econf \
--prefix="${EPREFIX}"/ \
--bindir="${EPREFIX}"/sbin \
--with-optimisation='' \
$(use_enable test testing)
}
src_install() {
emake install DESTDIR="${D}" MANDIR=/usr/share/man
dodoc README.md TODO.org
}
src_test() {
emake unit-test
}
|