diff options
author | Justin Lecher <jlec@gentoo.org> | 2012-04-26 15:09:46 +0000 |
---|---|---|
committer | Justin Lecher <jlec@gentoo.org> | 2012-04-26 15:09:46 +0000 |
commit | 2725a110bf7d8979f3131cfcdc329f7aac86a737 (patch) | |
tree | 5e2e97257a3ab5e35d165914c0cf7c2093892108 /sci-libs | |
parent | keyword ~amd64-fbsd (diff) | |
download | gentoo-2-2725a110bf7d8979f3131cfcdc329f7aac86a737.tar.gz gentoo-2-2725a110bf7d8979f3131cfcdc329f7aac86a737.tar.bz2 gentoo-2-2725a110bf7d8979f3131cfcdc329f7aac86a737.zip |
sci-libs/ta-lib: Move to EAPI=4, handle static-libs, use autotools-utils.eclass
(Portage version: 2.2.0_alpha101/cvs/Linux x86_64)
Diffstat (limited to 'sci-libs')
-rw-r--r-- | sci-libs/ta-lib/ChangeLog | 8 | ||||
-rw-r--r-- | sci-libs/ta-lib/files/ta-lib-0.4.0-asneeded.patch | 79 | ||||
-rw-r--r-- | sci-libs/ta-lib/metadata.xml | 2 | ||||
-rw-r--r-- | sci-libs/ta-lib/ta-lib-0.4.0.ebuild | 32 |
4 files changed, 93 insertions, 28 deletions
diff --git a/sci-libs/ta-lib/ChangeLog b/sci-libs/ta-lib/ChangeLog index 87cd3a84090a..efdd71ebcab6 100644 --- a/sci-libs/ta-lib/ChangeLog +++ b/sci-libs/ta-lib/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for sci-libs/ta-lib -# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sci-libs/ta-lib/ChangeLog,v 1.7 2010/07/17 11:04:17 hwoarang Exp $ +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sci-libs/ta-lib/ChangeLog,v 1.8 2012/04/26 15:09:46 jlec Exp $ + + 26 Apr 2012; Justin Lecher <jlec@gentoo.org> ta-lib-0.4.0.ebuild, + files/ta-lib-0.4.0-asneeded.patch, metadata.xml: + Move to EAPI=4, handle static-libs, use autotools-utils.eclass 17 Jul 2010; Markos Chandras <hwoarang@gentoo.org> metadata.xml: Fix metadata.xml. maintainer-needed is not a herd diff --git a/sci-libs/ta-lib/files/ta-lib-0.4.0-asneeded.patch b/sci-libs/ta-lib/files/ta-lib-0.4.0-asneeded.patch index e4bbd81acbb7..10183938e667 100644 --- a/sci-libs/ta-lib/files/ta-lib-0.4.0-asneeded.patch +++ b/sci-libs/ta-lib/files/ta-lib-0.4.0-asneeded.patch @@ -1,7 +1,28 @@ -diff -Naur ta-lib-orig/src/Makefile.in ta-lib/src/Makefile.in ---- ta-lib-orig/src/Makefile.in 2007-09-14 21:42:21.000000000 -0600 -+++ ta-lib/src/Makefile.in 2008-01-20 15:11:33.000000000 -0600 -@@ -56,7 +56,7 @@ + src/Makefile.am | 2 +- + src/Makefile.in | 2 +- + src/ta_abstract/Makefile.am | 8 ++++---- + src/ta_common/Makefile.am | 6 +++--- + src/ta_func/Makefile.am | 6 +++--- + 5 files changed, 12 insertions(+), 12 deletions(-) + +diff --git a/src/Makefile.am b/src/Makefile.am +index 12bc5b6..b1a0c6b 100644 +--- a/src/Makefile.am ++++ b/src/Makefile.am +@@ -8,7 +8,7 @@ libta_lib_la_SOURCES = + libta_lib_la_LIBADD = \ + ta_abstract/libta_abstract.la \ + ta_func/libta_func.la \ +- ta_common/libta_common.la ++ ta_common/libta_common.la -lm + + libta_lib_la_LDFLAGS = -version-info $(TALIB_LIBRARY_VERSION) + +diff --git a/src/Makefile.in b/src/Makefile.in +index 489b44a..ef1f506 100644 +--- a/src/Makefile.in ++++ b/src/Makefile.in +@@ -56,7 +56,7 @@ am_libta_lib_la_OBJECTS = libta_lib_la_OBJECTS = $(am_libta_lib_la_OBJECTS) libta_lib_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ @@ -10,3 +31,53 @@ diff -Naur ta-lib-orig/src/Makefile.in ta-lib/src/Makefile.in DEFAULT_INCLUDES = -I. -I$(top_builddir)/include@am__isrc@ COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +diff --git a/src/ta_abstract/Makefile.am b/src/ta_abstract/Makefile.am +index cba69bb..4411234 100644 +--- a/src/ta_abstract/Makefile.am ++++ b/src/ta_abstract/Makefile.am +@@ -38,12 +38,12 @@ libta_abstract_gc_la_SOURCES = $(libta_abstract_la_SOURCES) + libta_abstract_la_LDFLAGS = -version-info $(TALIB_LIBRARY_VERSION) + libta_abstract_gc_la_LDFLAGS = $(libta_abstract_la_LDFLAGS) + +-libta_abstract_la_CPPFLAGS = -I../ta_common/ -Iframes/ ++libta_abstract_la_CPPFLAGS = -I$(top_srcdir)/src/ta_common/ -Iframes/ + + # The 'gc' version is a minimal version used to just to compile gen_code + libta_abstract_gc_la_CPPFLAGS = -DTA_GEN_CODE $(libta_abstract_la_CPPFLAGS) + + libta_abstractdir=$(includedir)/ta-lib/ +-libta_abstract_HEADERS = ../../include/ta_defs.h \ +- ../../include/ta_libc.h \ +- ../../include/ta_abstract.h ++libta_abstract_HEADERS = $(top_srcdir)/include/ta_defs.h \ ++ $(top_srcdir)/include/ta_libc.h \ ++ $(top_srcdir)/include/ta_abstract.h +diff --git a/src/ta_common/Makefile.am b/src/ta_common/Makefile.am +index 9454490..3e59bd8 100644 +--- a/src/ta_common/Makefile.am ++++ b/src/ta_common/Makefile.am +@@ -9,7 +9,7 @@ libta_common_la_SOURCES = ta_global.c \ + libta_common_la_LDFLAGS = -version-info $(TALIB_LIBRARY_VERSION) + + libta_commondir=$(includedir)/ta-lib/ +-libta_common_HEADERS = ../../include/ta_defs.h \ +- ../../include/ta_libc.h \ +- ../../include/ta_common.h ++libta_common_HEADERS = $(top_builddir)/include/ta_defs.h \ ++ $(top_builddir)/include/ta_libc.h \ ++ $(top_builddir)/include/ta_common.h + +diff --git a/src/ta_func/Makefile.am b/src/ta_func/Makefile.am +index 030a516..299baf9 100644 +--- a/src/ta_func/Makefile.am ++++ b/src/ta_func/Makefile.am +@@ -165,6 +165,6 @@ libta_func_la_SOURCES = ta_utility.c \ + libta_func_la_LDFLAGS = -version-info $(TALIB_LIBRARY_VERSION) + + libta_funcdir=$(includedir)/ta-lib/ +-libta_func_HEADERS = ../../include/ta_defs.h \ +- ../../include/ta_libc.h \ +- ../../include/ta_func.h ++libta_func_HEADERS = $(top_builddir)/include/ta_defs.h \ ++ $(top_builddir)/include/ta_libc.h \ ++ $(top_builddir)/include/ta_func.h diff --git a/sci-libs/ta-lib/metadata.xml b/sci-libs/ta-lib/metadata.xml index aba833ed90e0..91f4e72fb544 100644 --- a/sci-libs/ta-lib/metadata.xml +++ b/sci-libs/ta-lib/metadata.xml @@ -2,6 +2,6 @@ <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> <pkgmetadata> <maintainer> - <email>maintainer-needed@gentoo.org</email> + <email>maintainer-needed@gentoo.org</email> </maintainer> </pkgmetadata> diff --git a/sci-libs/ta-lib/ta-lib-0.4.0.ebuild b/sci-libs/ta-lib/ta-lib-0.4.0.ebuild index 9b81e92e116a..c7037c353252 100644 --- a/sci-libs/ta-lib/ta-lib-0.4.0.ebuild +++ b/sci-libs/ta-lib/ta-lib-0.4.0.ebuild @@ -1,39 +1,29 @@ -# Copyright 1999-2008 Gentoo Foundation +# Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sci-libs/ta-lib/ta-lib-0.4.0.ebuild,v 1.6 2008/02/23 09:11:23 swegener Exp $ +# $Header: /var/cvsroot/gentoo-x86/sci-libs/ta-lib/ta-lib-0.4.0.ebuild,v 1.7 2012/04/26 15:09:46 jlec Exp $ -inherit eutils +EAPI=4 + +AUTOTOOLS_AUTORECONF=yes + +inherit autotools-utils DESCRIPTION="Technical Analysis Library for analyzing financial markets trends" -HOMEPAGE="http://www.ta-lib.org" +HOMEPAGE="http://www.ta-lib.org/" SRC_URI="mirror://sourceforge/ta-lib/${P}-src.tar.gz" LICENSE="BSD" SLOT="0" KEYWORDS="~amd64 ~x86" -IUSE="" - -DEPEND="" -RDEPEND="" +IUSE="static-libs" S="${WORKDIR}"/${PN} -src_unpack() { - unpack ${A} - cd "${S}" - epatch "${FILESDIR}"/${P}-asneeded.patch -} +PATCHES=( "${FILESDIR}"/${P}-asneeded.patch ) -src_compile() { - econf || die "econf failed." - emake -j1 || die "emake failed." -} +AUTOTOOLS_IN_SOURCE_BUILD=1 src_test() { ewarn "Note: this testsuite will fail without an active internet connection." "${S}"/src/tools/ta_regtest/ta_regtest || die "Failed testsuite." } - -src_install(){ - emake DESTDIR="${D}" install || die "install failed" -} |