42 lines
1 KiB
Bash
42 lines
1 KiB
Bash
# Copyright 1999-2016 Gentoo Foundation
|
|
# 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="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() {
|
|
dodoc readme.txt
|
|
insinto /usr/include/boost/mpl
|
|
doins boost/mpl/cartesian_product.hpp
|
|
}
|