From 0f558761aa2dee1017b4751e4017205e015a9560 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Wed, 29 Jun 2022 12:04:12 +0100 Subject: gentoo resync : 29.12.2022 --- sci-libs/ta-lib/Manifest | 2 + sci-libs/ta-lib/files/ta-lib-0.4.0-slibtool.patch | 92 +++++++++++++++++++++++ sci-libs/ta-lib/ta-lib-0.4.0-r1.ebuild | 37 +++++++++ 3 files changed, 131 insertions(+) create mode 100644 sci-libs/ta-lib/files/ta-lib-0.4.0-slibtool.patch create mode 100644 sci-libs/ta-lib/ta-lib-0.4.0-r1.ebuild (limited to 'sci-libs/ta-lib') diff --git a/sci-libs/ta-lib/Manifest b/sci-libs/ta-lib/Manifest index fc4d6fb4169d..1ebaf264f933 100644 --- a/sci-libs/ta-lib/Manifest +++ b/sci-libs/ta-lib/Manifest @@ -1,4 +1,6 @@ AUX ta-lib-0.4.0-asneeded.patch 3304 BLAKE2B 5350248ae6511136ed09f66faca62021175b4c98030e271f98f08ad948b8b7795eeba84d44b4e808217da76e163a1f1cbcd1dde052de6a8f2351d53947728328 SHA512 aa43a9cd5382eb43cce2dd64325a36fd88bdae7969c3c191ddbbc7ed726145d7cd1cca17196093c7b4af63a95d3a118d6f2e93ff5d021105091056a325042123 +AUX ta-lib-0.4.0-slibtool.patch 3093 BLAKE2B ac4390830fdb25157cb6a0a85b7ff408f32a324effdc5dfc2d4bc19fccbb1b171000efb4b40401c9f90afa175ef3b691b4cf49ec17a70326260f5697c021f65c SHA512 37f9916e8f4d340f5f342e6db267094f514987fae8d0a6404b2b1a6c5f77cec2ad09d7e129a09c77307e1cb2a4b787e84e22ce56785b1c134fa239a906171a06 DIST ta-lib-0.4.0-src.tar.gz 1330299 BLAKE2B 2acc09c2a01c02912dd4ea9a72296376dcb4b434723508829d3b97fcb77baaf8d4eaa44a84fbdb094119890fc1949fc52f759345101d8848032c3814576623c7 SHA512 d7ae2acd830cd23b58bded8a90759edfabc73923fbed3cc09501c121cc937caf728c29678f456c2dc7e72fabb52166bccc19ab51ab1131c7d8d35c201c94ed4c +EBUILD ta-lib-0.4.0-r1.ebuild 630 BLAKE2B 1ac1a0860aa9203e451c0c98113436730f37e4758175c4b74417be56eeeee952ff31e9ed9121f5588da21a4716c627070b27f077fbd3b6ab178fee7c50f232ed SHA512 0f2de4782b9c1d9a8ec6d5d993ce402a5e20fb49cbdb393bcbe7e707dadce21275a6a469dd15803b9936fb08968762be5d2e009eaecfdbfd4b5a3db65125b3c5 EBUILD ta-lib-0.4.0.ebuild 680 BLAKE2B 39f49bcc48aa0555ce6dcce4ab9b65198b48b052e93901bca53b61c68455327ca339cb65dec102de69ca5b3c1bd16b3d485c678bba6ec9e5690d2d8eb50fb864 SHA512 570ad457f5a9c1367179e2aaddae6760308d012747bc9f0c16976a84586ad5ba82000f96256d41c4b755ef4d7f3f4d6fb888b83160f81f0b162d65def8546403 MISC metadata.xml 244 BLAKE2B 25bb8bc62b2f5654892b8d241d9fd530bebf9237f2dfde258ed282f6a1d398775a5278ca6be98357740d268660a182040ca8bc2d76b934b3d94f4dc0fe97e501 SHA512 53ab594e08bc9477d304f567775a92b93b28b7f387b3bb8bce55b64ef72f46f8b2790a627d6caa6dddcd1ac3947e4f8b748b9c75aed82b7d97e066a2cb157d3c diff --git a/sci-libs/ta-lib/files/ta-lib-0.4.0-slibtool.patch b/sci-libs/ta-lib/files/ta-lib-0.4.0-slibtool.patch new file mode 100644 index 000000000000..7aa9c96159eb --- /dev/null +++ b/sci-libs/ta-lib/files/ta-lib-0.4.0-slibtool.patch @@ -0,0 +1,92 @@ +Upstream-PR: https://sourceforge.net/p/ta-lib/patches/6/ +From 05375dd96c3bdec814214f37a6c49d4a27079960 Mon Sep 17 00:00:00 2001 +From: orbea +Date: Thu, 12 May 2022 11:13:59 -0700 +Subject: [PATCH] Fix parallel Make issue with slibtool + +--- + configure.in => configure.ac | 4 ++++ + src/tools/gen_code/Makefile.am | 13 ++++++++----- + src/tools/gen_code/gen_code_bin.sh | 16 ++++++++++++++++ + src/tools/ta_regtest/Makefile.am | 4 ++-- + 4 files changed, 30 insertions(+), 7 deletions(-) + rename configure.in => configure.ac (96%) + create mode 100755 src/tools/gen_code/gen_code_bin.sh + +diff --git a/configure.in b/configure.ac +similarity index 96% +rename from configure.in +rename to configure.ac +index d2e5784..359d400 100644 +--- a/configure.in ++++ b/configure.ac +@@ -35,6 +35,10 @@ AC_FUNC_STRTOD + AC_FUNC_VPRINTF + AC_CHECK_FUNCS([floor isascii localeconv mblen memmove memset modf pow sqrt strcasecmp strchr strerror strncasecmp strrchr strstr strtol strtoul]) + ++# Checks for libm ++AC_CHECK_LIBM ++AC_SUBST([LIBM]) ++ + # Versioning: + # Only change this if library is no longer + # ABI compatible with previous version +diff --git a/src/tools/gen_code/Makefile.am b/src/tools/gen_code/Makefile.am +index cb839c2..2ec2360 100644 +--- a/src/tools/gen_code/Makefile.am ++++ b/src/tools/gen_code/Makefile.am +@@ -6,9 +6,12 @@ noinst_PROGRAMS = gen_code + gen_code_SOURCES = gen_code.c + + gen_code_CPPFLAGS = -I../../ta_common +-gen_code_LDFLAGS = -L../../ta_common -L../../ta_abstract -L../../ta_func +-gen_code_LDADD = -lta_common -lta_abstract_gc -lta_func -lm ++gen_code_LDFLAGS = -no-undefined ++gen_code_LDADD = \ ++ ../../ta_common/libta_common.la \ ++ ../../ta_abstract/libta_abstract_gc.la \ ++ ../../ta_func/libta_func.la \ ++ $(LIBM) + +-all-local: +- $(MAKE) $(AM_MAKEFLAGS) gen_code +- cp gen_code ../../../bin ++all-local: gen_code ++ $(LIBTOOL) --mode=execute ./gen_code_bin.sh gen_code +diff --git a/src/tools/gen_code/gen_code_bin.sh b/src/tools/gen_code/gen_code_bin.sh +new file mode 100755 +index 0000000..b19fd09 +--- /dev/null ++++ b/src/tools/gen_code/gen_code_bin.sh +@@ -0,0 +1,16 @@ ++#!/bin/sh ++ ++# This is a work around for a slibtool bug with --mode=execute ++# ++# With slibtool the gen_code binary is created in the .libs directory while GNU ++# libtool outputs in the same directory as the Makefile. This means that cp(1) ++# needs to be invoked with $(LIBTOOL) --mode=execute. ++# ++# However slibtool currently has a bug where the destination argument is dropped ++# which will result in the command failing. ++# ++# See https://bugs.gentoo.org/790770 ++ ++set -eu ++ ++cp "${1}" ../../../bin +diff --git a/src/tools/ta_regtest/Makefile.am b/src/tools/ta_regtest/Makefile.am +index 64229e2..255a87e 100644 +--- a/src/tools/ta_regtest/Makefile.am ++++ b/src/tools/ta_regtest/Makefile.am +@@ -34,5 +34,5 @@ ta_regtest_CPPFLAGS = -I../../ta_func \ + -I../../ta_common/mt \ + -I../../ta_common \ + -I../../ta_abstract +-ta_regtest_LDFLAGS = -L../.. -lta_lib \ +- -lm ++ta_regtest_LDFLAGS = -no-undefined ++ta_regtest_LDADD = ../../libta_lib.la $(LIBM) +-- +2.35.1 + diff --git a/sci-libs/ta-lib/ta-lib-0.4.0-r1.ebuild b/sci-libs/ta-lib/ta-lib-0.4.0-r1.ebuild new file mode 100644 index 000000000000..600814664e17 --- /dev/null +++ b/sci-libs/ta-lib/ta-lib-0.4.0-r1.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools + +DESCRIPTION="Technical Analysis Library for analyzing financial markets trends" +HOMEPAGE="https://www.ta-lib.org/" +SRC_URI="mirror://sourceforge/ta-lib/${P}-src.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +S="${WORKDIR}/${PN}" + +PATCHES=( + "${FILESDIR}"/${P}-asneeded.patch + "${FILESDIR}"/${P}-slibtool.patch # 790770 +) + +src_prepare() { + default + + eautoreconf +} + +src_test() { + src/tools/ta_regtest/ta_regtest || die +} + +src_install() { + default + + find "${D}" -name '*.la' -delete || die +} -- cgit v1.2.3