diff options
Diffstat (limited to 'sci-libs/dlib/dlib-18.15.ebuild')
-rw-r--r-- | sci-libs/dlib/dlib-18.15.ebuild | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/sci-libs/dlib/dlib-18.15.ebuild b/sci-libs/dlib/dlib-18.15.ebuild new file mode 100644 index 000000000000..784e7eb8cf85 --- /dev/null +++ b/sci-libs/dlib/dlib-18.15.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils toolchain-funcs + +DESCRIPTION="Numerical and networking C++ library" +HOMEPAGE="http://dlib.net/" +SRC_URI="mirror://sourceforge/dclib/${P}.tar.bz2" + +LICENSE="Boost-1.0" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +IUSE="blas doc examples jpeg lapack png test X" + +RDEPEND=" + blas? ( virtual/blas ) + jpeg? ( virtual/jpeg:0= ) + lapack? ( virtual/lapack ) + png? ( media-libs/libpng:0= ) + X? ( x11-libs/libX11 )" +DEPEND="test? ( ${RDEPEND} )" + +src_prepare() { + epatch "${FILESDIR}"/${PN}-17.48-makefile-test.patch +} + +src_test() { + cd dlib/test || die + emake CXX="$(tc-getCXX)" CXXFLAGS="${CXXFLAGS}" + ./dtest --runall || die +} + +src_install() { + dodoc dlib/README.txt + rm -r dlib/{README,LICENSE}.txt dlib/test || die + doheader -r dlib + use doc && dohtml -r docs/* + if use examples; then + insinto /usr/share/doc/${PF} + doins -r examples + fi +} |