diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /sci-libs/orocos-bfl/orocos-bfl-0.8.0.ebuild |
reinit the tree, so we can have metadata
Diffstat (limited to 'sci-libs/orocos-bfl/orocos-bfl-0.8.0.ebuild')
-rw-r--r-- | sci-libs/orocos-bfl/orocos-bfl-0.8.0.ebuild | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/sci-libs/orocos-bfl/orocos-bfl-0.8.0.ebuild b/sci-libs/orocos-bfl/orocos-bfl-0.8.0.ebuild new file mode 100644 index 000000000000..355ea827ed9e --- /dev/null +++ b/sci-libs/orocos-bfl/orocos-bfl-0.8.0.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit cmake-utils + +DESCRIPTION="Bayesian Filtering Library" +HOMEPAGE="http://orocos.org/bfl" +SRC_URI="http://people.mech.kuleuven.be/~tdelaet/bfl_tar/${P}-src.tar.bz2" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~arm" +IUSE="doc examples static-libs test" + +RDEPEND="dev-libs/boost:=" +DEPEND="${RDEPEND} + virtual/pkgconfig + doc? ( + app-doc/doxygen + virtual/latex-base + ) + test? ( dev-util/cppunit )" + +src_prepare() { + sed -e 's:/lib:/${CMAKE_INSTALL_LIBDIR}:' \ + -i "${S}/"{,src/,src/bindings/rtt/}CMakeLists.txt || die +} + +src_configure() { + local mycmakeargs=( + "-DLIBRARY_TYPE=$(usex static-libs both shared)" + "-DBUILD_EXAMPLES=$(usex examples ON OFF)" + "-DBUILD_TESTS=$(usex test ON OFF)" + ) + cmake-utils_src_configure +} + +src_compile() { + cmake-utils_src_compile + if use doc ; then + cd "${BUILD_DIR}" + doxygen || die + cd "${S}/docs" || die + pdflatex getting_started_guide || die + pdflatex getting_started_guide || die + fi +} + +src_test() { + cd "${BUILD_DIR}" + emake check +} + +src_install() { + cmake-utils_src_install + if use doc ; then + dohtml -r "${BUILD_DIR}/doc/html/" + dodoc "${S}/docs/getting_started_guide.pdf" + fi +} |