blob: 890a754ed2ba780be0a15dce771c4820fca7f708 (
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-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=6
inherit vcs-snapshot toolchain-funcs
COMMIT="aeb0266b3a89f32c390dff51cb73a454d5d7a745"
DESCRIPTION="an extension to the Boost.MPL library"
HOMEPAGE="http://www.organicvectory.com/index.php?option=com_content&view=article&id=75:boostmplcartesianproduct&catid=42:boost&Itemid=78"
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() {
insinto /usr/include/boost/mpl
doins boost/mpl/cartesian_product.hpp
}
|