-# Copyright 1999-2012 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=4
+EAPI=7
-AUTOTOOLS_AUTORECONF=yes
-
-inherit autotools-utils
+inherit autotools
DESCRIPTION="Technical Analysis Library for analyzing financial markets trends"
HOMEPAGE="http://www.ta-lib.org/"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86"
-IUSE="static-libs"
-S="${WORKDIR}"/${PN}
+S="${WORKDIR}/${PN}"
PATCHES=( "${FILESDIR}"/${P}-asneeded.patch )
-AUTOTOOLS_IN_SOURCE_BUILD=1
+src_prepare() {
+ default
+ mv configure.{in,ac} || die
+ eautoreconf
+}
+
+src_configure() {
+ econf --disable-static
+}
src_test() {
- ewarn "Note: this testsuite will fail without an active internet connection."
- "${S}"/src/tools/ta_regtest/ta_regtest || die "Failed testsuite."
+ src/tools/ta_regtest/ta_regtest || die
+}
+
+src_install() {
+ default
+
+ # no static archives
+ find "${D}" -name '*.la' -delete || die
}