1 # Copyright 1999-2018 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
8 DESCRIPTION="C++ library of mathematical, signal processing and communication"
9 HOMEPAGE="http://itpp.sourceforge.net/"
10 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
14 KEYWORDS="amd64 ppc ppc64 x86 ~amd64-linux ~x86-linux"
30 DOCS=( ChangeLog NEWS AUTHORS README )
33 cmake-utils_src_prepare
35 # gentoo redefines the CMAKE_BUILD_TYPE
37 -e 's/CMAKE_BUILD_TYPE STREQUAL Release/NOT CMAKE_BUILD_TYPE STREQUAL Debug/' \
39 # respect gentoo doc dir
41 -e "s:share/doc/itpp:share/doc/${PF}:" \
42 itpp/CMakeLists.txt || die
44 # respect gentoo libdir
45 sed -i "s#/lib#/$(get_libdir)#" itpp-config.cmake.in || die
46 sed -i "s#/lib#/$(get_libdir)#" itpp.pc.cmake.in || die
48 -e "s#LIBRARY DESTINATION lib#LIBRARY DESTINATION $(get_libdir)#" \
49 -e "s#ARCHIVE DESTINATION lib#ARCHIVE DESTINATION $(get_libdir)#" \
50 itpp/CMakeLists.txt || die
56 -DHTML_DOCS=$(usex doc)
58 cmake-utils_src_configure