12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- # Copyright 1999-2016 Gentoo Foundation
- # Distributed under the terms of the GNU General Public License v2
- EAPI="5"
- inherit autotools eutils flag-o-matic
- DESCRIPTION="A suite of tools for thin provisioning on Linux"
- HOMEPAGE="https://github.com/jthornber/thin-provisioning-tools"
- SRC_URI="https://github.com/jthornber/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
- LICENSE="GPL-3"
- SLOT="0"
- KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux"
- IUSE="static test"
- LIB_DEPEND="dev-libs/expat[static-libs(+)]
- dev-libs/libaio[static-libs(+)]"
- RDEPEND="!static? ( ${LIB_DEPEND//\[static-libs(+)]} )"
- # || ( ) is a non-future proof workaround for Portage unefficiency wrt #477050
- DEPEND="${RDEPEND}
- static? ( ${LIB_DEPEND} )
- 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-cpp/gmock-1.6
- >=dev-cpp/gtest-1.6
- dev-util/cucumber
- dev-util/aruba
- )
- dev-libs/boost"
- src_prepare() {
- sed -i \
- -e '/^unit-tests\/unit_tests:/s:lib/libgmock.a::' \
- -e '/-lgmock/s:$: -lgtest:' \
- unit-tests/Makefile.in || die #493440
- epatch_user
- eautoreconf
- }
- src_configure() {
- use static && append-ldflags -static
- STRIP=true \
- econf \
- --prefix="${EPREFIX}"/ \
- --bindir="${EPREFIX}"/sbin \
- --with-optimisation='' \
- $(use_enable test testing)
- }
- src_compile() {
- MAKEOPTS+=" V="
- default
- }
- src_test() {
- emake unit-test
- }
- src_install() {
- emake DESTDIR="${D}" DATADIR="${ED}/usr/share" install
- dodoc README.md TODO.org
- }
|