summaryrefslogtreecommitdiff
blob: ac621115d48c73f3805969e8f056d4f514c71985 (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
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=6

inherit vcs-snapshot toolchain-funcs

COMMIT="aeb0266b3a89f32c390dff51cb73a454d5d7a745"
DESCRIPTION="an extension to the Boost.MPL library"
HOMEPAGE="https://github.com/quinoacomputing/BoostMPLCartesianProduct"
SRC_URI="https://github.com/quinoacomputing/BoostMPLCartesianProduct/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"

LICENSE="Boost-1.0"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="test"

DEPEND="dev-libs/boost"
RDEPEND="${DEPEND}"

src_compile() {
	use test || return
	local i
	for i in $(find libs/mpl -name "*.cpp"); do
		echo $(tc-getCXX) ${CXXFLAGS} -I. "$i" -o "${i%.cpp}"
		$(tc-getCXX) ${CXXFLAGS} -I. "$i" -o "${i%.cpp}" || die
	done
}

src_test() {
	local i
	for i in $(find libs/mpl -name "*.cpp"); do
		echo "${i%.cpp}"
		"${i%.cpp}" || die
	done
}

src_install() {
	dodoc readme.txt
	insinto /usr/include/boost/mpl
	doins boost/mpl/cartesian_product.hpp
}