Сравнение fann-2.2.0-r1 с fann-9999
/usr/portage/sci-mathematics/fann/fann-9999.ebuild 2023-10-09 14:52:35.108368492 +0300 | ||
---|---|---|
3 | 3 | |
4 | 4 |
EAPI=7 |
5 | 5 | |
6 |
MY_P=FANN-${PV}-Source |
|
7 |
inherit cmake |
|
6 |
inherit cmake git-r3 toolchain-funcs |
|
8 | 7 | |
9 | 8 |
DESCRIPTION="Fast Artificial Neural Network Library" |
10 | 9 |
HOMEPAGE="http://leenissen.dk/fann/wp/" |
11 |
SRC_URI="mirror://sourceforge/${PN}/${MY_P}.zip" |
|
10 |
EGIT_REPO_URI="https://github.com/libfann/fann" |
|
12 | 11 | |
13 | 12 |
LICENSE="LGPL-2.1" |
14 | 13 |
SLOT="0" |
15 |
KEYWORDS="~amd64 ~ppc ~x86" |
|
16 | 14 |
IUSE="examples" |
17 | 15 | |
18 |
RDEPEND="" |
|
19 |
BDEPEND="app-arch/unzip" |
|
20 | ||
21 |
S="${WORKDIR}/${MY_P}" |
|
22 | ||
23 |
PATCHES=( "${FILESDIR}/${P}-examples.patch" ) |
|
24 | ||
25 | 16 |
src_test() { |
26 |
cd examples || die |
|
27 |
emake CFLAGS="${CFLAGS} -I../src/include -L${BUILD_DIR}/src" |
|
28 |
LD_LIBRARY_PATH="${BUILD_DIR}/src" emake runtest |
|
17 |
cd examples || die 'fails to enter examples directory' |
|
18 |
LD_LIBRARY_PATH="${BUILD_DIR}/src" GCC="$(tc-getCC) ${CFLAGS} -I../src/include -L${BUILD_DIR}/src" emake -e runtest |
|
29 | 19 |
emake clean |
30 | 20 |
} |
31 | 21 |