mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
sci-mathematics/fann: multilib support
Closes: https://github.com/gentoo/gentoo/pull/1942 Signed-off-by: David Seifert <soap@gentoo.org>
This commit is contained in:
committed by
David Seifert
parent
61dbe8528e
commit
4f798560ee
@@ -1,16 +1,16 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=4
|
||||
EAPI=6
|
||||
|
||||
inherit cmake-utils
|
||||
inherit cmake-multilib
|
||||
|
||||
MYP=FANN-${PV}-Source
|
||||
MY_P=FANN-${PV}-Source
|
||||
|
||||
DESCRIPTION="Fast Artificial Neural Network Library"
|
||||
HOMEPAGE="http://leenissen.dk/fann/"
|
||||
SRC_URI="mirror://sourceforge/${PN}/${MYP}.zip"
|
||||
SRC_URI="mirror://sourceforge/${PN}/${MY_P}.zip"
|
||||
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="0"
|
||||
@@ -18,22 +18,21 @@ KEYWORDS="~amd64 ~ppc ~x86"
|
||||
IUSE="examples"
|
||||
|
||||
RDEPEND=""
|
||||
DEPEND="${RDEPEND}
|
||||
app-arch/unzip"
|
||||
DEPEND="app-arch/unzip"
|
||||
|
||||
S="${WORKDIR}/${MYP}"
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
PATCHES=( "${FILESDIR}"/${P}-examples.patch )
|
||||
PATCHES=( "${FILESDIR}/${P}-examples.patch" )
|
||||
|
||||
src_test() {
|
||||
cd examples
|
||||
cd examples || die
|
||||
emake CFLAGS="${CFLAGS} -I../src/include -L${BUILD_DIR}/src"
|
||||
LD_LIBRARY_PATH="${BUILD_DIR}/src" emake runtest
|
||||
emake clean
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cmake-utils_src_install
|
||||
cmake-multilib_src_install
|
||||
if use examples; then
|
||||
insinto /usr/share/doc/${PF}
|
||||
doins -r examples
|
||||
@@ -2,13 +2,13 @@
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
EAPI=6
|
||||
|
||||
inherit cmake-utils git-2
|
||||
inherit cmake-multilib git-r3
|
||||
|
||||
DESCRIPTION="Fast Artificial Neural Network Library"
|
||||
HOMEPAGE="http://leenissen.dk/fann/"
|
||||
EGIT_REPO_URI="git://github.com/libfann/fann.git"
|
||||
EGIT_REPO_URI="https://github.com/libfann/fann"
|
||||
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="0"
|
||||
@@ -21,7 +21,7 @@ src_test() {
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cmake-utils_src_install
|
||||
cmake-multilib_src_install
|
||||
if use examples; then
|
||||
insinto /usr/share/doc/${PF}
|
||||
doins -r examples
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
--- examples/Makefile.orig 2012-01-24 05:31:40.000000000 +0000
|
||||
+++ examples/Makefile 2012-05-08 19:00:08.000000000 +0100
|
||||
--- a/examples/Makefile.orig 2012-01-24 05:31:40.000000000 +0000
|
||||
+++ b/examples/Makefile 2012-05-08 19:00:08.000000000 +0100
|
||||
@@ -1,7 +1,6 @@
|
||||
# This makefile is on purpose not made with configure, to show how to use the library
|
||||
# The make file requires that the fann library is installed (see ../README)
|
||||
|
||||
Reference in New Issue
Block a user