From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 51B4A1382C5 for ; Sun, 25 Apr 2021 13:41:53 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8970AE077F; Sun, 25 Apr 2021 13:41:52 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 6C651E077F for ; Sun, 25 Apr 2021 13:41:52 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id EE9343412DC for ; Sun, 25 Apr 2021 13:41:50 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A63C3702 for ; Sun, 25 Apr 2021 13:41:49 +0000 (UTC) From: "Sergey Torokhov" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sergey Torokhov" Message-ID: <1619357978.b01f220bb555da848da3cdb75bcf7a1fd2045c2d.SergeyTorokhov@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-libs/ftl/ X-VCS-Repository: repo/proj/guru X-VCS-Files: dev-libs/ftl/Manifest dev-libs/ftl/ftl-1.0_p20210308.ebuild dev-libs/ftl/metadata.xml X-VCS-Directories: dev-libs/ftl/ X-VCS-Committer: SergeyTorokhov X-VCS-Committer-Name: Sergey Torokhov X-VCS-Revision: b01f220bb555da848da3cdb75bcf7a1fd2045c2d X-VCS-Branch: dev Date: Sun, 25 Apr 2021 13:41:49 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: bfa1a645-6ec3-460f-87fe-dd205bf00e1a X-Archives-Hash: 76dd63ab3f1392002a589414d79c77e0 commit: b01f220bb555da848da3cdb75bcf7a1fd2045c2d Author: Sergey Torokhov yandex ru> AuthorDate: Sun Apr 25 13:39:38 2021 +0000 Commit: Sergey Torokhov yandex ru> CommitDate: Sun Apr 25 13:39:38 2021 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=b01f220b dev-libs/ftl: new package The Fortran Template Library (FTL) is a general purpose library for Fortran 2003 Signed-off-by: Sergey Torokhov yandex.ru> dev-libs/ftl/Manifest | 1 + dev-libs/ftl/ftl-1.0_p20210308.ebuild | 66 +++++++++++++++++++++++++++++++++++ dev-libs/ftl/metadata.xml | 19 ++++++++++ 3 files changed, 86 insertions(+) diff --git a/dev-libs/ftl/Manifest b/dev-libs/ftl/Manifest new file mode 100644 index 000000000..4afd58e95 --- /dev/null +++ b/dev-libs/ftl/Manifest @@ -0,0 +1 @@ +DIST ftl-1.0_p20210308.tar.gz 732263 BLAKE2B 2a369b809f2b0d77ffe002d2e9ffaffabcb4f12565c0bb5bcbcce5899bac030dd127427dd8f89b3595d98441b9b145daf8661ed9c46977ac6667f774bb748e91 SHA512 9a1777da96fbde00669586899658d63a64b19252e90a01ccc0440e0f79f948ddd9dc118774365e227a75b80edf4c784760164268efb2d1f69000fe68ac5eb5b9 diff --git a/dev-libs/ftl/ftl-1.0_p20210308.ebuild b/dev-libs/ftl/ftl-1.0_p20210308.ebuild new file mode 100644 index 000000000..4cdbc8837 --- /dev/null +++ b/dev-libs/ftl/ftl-1.0_p20210308.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +FORTRAN_STANDARD="2003" + +inherit fortran-2 toolchain-funcs + +COMMIT="97b8292e893ad147ca44e42bcd56d23e9a8259fb" +DESCRIPTION="The Fortran Template Library (FTL) is a general purpose library for Fortran 2003" +HOMEPAGE="https://github.com/SCM-NV/ftl/" +SRC_URI="https://github.com/SCM-NV/${PN}/archive/${COMMIT}.tar.gz -> ${P}.tar.gz" + +LICENSE="LGPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="pcre test" +RESTRICT="!test? ( test )" +REQUIRED_USE="test? ( pcre )" # Some tests fail if 'pcre' is disabled + +S="${WORKDIR}/${PN}-${COMMIT}" + +RDEPEND=" + pcre? ( dev-libs/libpcre ) +" +DEPEND="${RDEPEND}" +BDEPEND="virtual/pkgconfig" + +pkg_setup() { + fortran-2_pkg_setup +} + +src_prepare() { + default + + # Replase install PREFIX, LIBDIR, add library soname + sed -i -e 's:PREFIX ?= /usr/local:PREFIX ?= '"${ED}"'/usr/:' \ + -e 's:(PREFIX)/lib:(PREFIX)/'"$(get_libdir)"':' \ + -e 's:SOLDFLAGS = -shared:SOLDFLAGS = -shared -Wl,-soname=libftl.so.1 '"${LDFLAGS}"':' makefile || die +} + +src_configure() { + return 0 +} + +src_compile() { + emake \ + BUILD=release \ + USE_PCRE=$(usex pcre true false) \ + COMPILER="$(tc-getFC)" \ + FLAGS="${FCFLAGS}" \ + CXXCOMPILER="$(tc-getCXX)" \ + CXXFLAGS="${CXXFLAGS}" +} + +src_test() { + emake test +} + +src_install() { + emake install + + mv "${ED}/usr/$(get_libdir)"/libftl.so{,.1} || die + dosym libftl.so.1 /usr/$(get_libdir)/libftl.so +} diff --git a/dev-libs/ftl/metadata.xml b/dev-libs/ftl/metadata.xml new file mode 100644 index 000000000..8f6288baf --- /dev/null +++ b/dev-libs/ftl/metadata.xml @@ -0,0 +1,19 @@ + + + + + torokhov-s-a@yandex.ru + Sergey Torokhov + + + The Fortran Template Library (FTL) is a general purpose library for Fortran 2003. + Its intention is to bring all these nice things we take for granted in modern languages + like Python and C++ to the Fortran world: Generic containers, versatile algorithms, + easy string manipulation, and more. + It is heavily inspired by C++'s standard library, + especially the part that is commonly referred to as the Standard Template Library (STL). + + + SCM-NV/ftl + +