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.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 9A63F15806E for ; Tue, 16 May 2023 21:56:18 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id DE002E084A; Tue, 16 May 2023 21:56:17 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id C1B1CE084A for ; Tue, 16 May 2023 21:56:17 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id E59EF335DBE for ; Tue, 16 May 2023 21:56:16 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 6C07AA59 for ; Tue, 16 May 2023 21:56:15 +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: <1684274005.f821364a967e9c621bf164f97bc2260f8698417f.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_p20230220.ebuild X-VCS-Directories: dev-libs/ftl/ X-VCS-Committer: SergeyTorokhov X-VCS-Committer-Name: Sergey Torokhov X-VCS-Revision: f821364a967e9c621bf164f97bc2260f8698417f X-VCS-Branch: dev Date: Tue, 16 May 2023 21:56:15 +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: e75d43ba-202c-45a7-9318-c026cebc5416 X-Archives-Hash: 224c92fe747d3b069f44d7b8360b4936 commit: f821364a967e9c621bf164f97bc2260f8698417f Author: Sergey Torokhov yandex ru> AuthorDate: Tue May 16 21:53:25 2023 +0000 Commit: Sergey Torokhov yandex ru> CommitDate: Tue May 16 21:53:25 2023 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=f821364a dev-libs/ftl: 1.0_p20230220 version bump Signed-off-by: Sergey Torokhov yandex.ru> dev-libs/ftl/Manifest | 1 + dev-libs/ftl/ftl-1.0_p20230220.ebuild | 79 +++++++++++++++++++++++++++++++++++ 2 files changed, 80 insertions(+) diff --git a/dev-libs/ftl/Manifest b/dev-libs/ftl/Manifest index 5099783b6..49457b47a 100644 --- a/dev-libs/ftl/Manifest +++ b/dev-libs/ftl/Manifest @@ -1 +1,2 @@ DIST ftl-1.0_p20220209.tar.gz 732360 BLAKE2B 154d7124678852dc56087c51cd7bdbb2ffa7f6a628c959f760835b420cc5bdb74bfd4e4b0e9e0d822a26eff9b100102849b1952d9ff0f5f6cf6991859eedff4a SHA512 0673ac4116c3bc9d3e55188b0d0d663f83c2e9958888780e966516c0421a08f276443ed6de637f178edb07e59c37472eb48d892aa3cbded4db68803e8bc1fa10 +DIST ftl-1.0_p20230220.tar.gz 732507 BLAKE2B a43620ed06c16566ea3e112393be0a59ffdff2339e1500e8017e995359d2ec73a711d5b3c9127a13fd0972b3a00de659efbddf580da324f4db4eeeed92687721 SHA512 1e1d416cc6fe18cc8d766bbfaa9ab6ee9a1f1fe5af661781857ca88c33cc9309e7dfc6abb826e7b09ec13984948b0dbe41cccf770105bf58c6b9b01662dfbef8 diff --git a/dev-libs/ftl/ftl-1.0_p20230220.ebuild b/dev-libs/ftl/ftl-1.0_p20230220.ebuild new file mode 100644 index 000000000..e9662f26a --- /dev/null +++ b/dev-libs/ftl/ftl-1.0_p20230220.ebuild @@ -0,0 +1,79 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +FORTRAN_STANDARD="2003" +inherit flag-o-matic fortran-2 toolchain-funcs + +COMMIT="e19574fb309076550d7d6179273f63c79e236207" +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" +S="${WORKDIR}/${PN}-${COMMIT}" + +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 + +RDEPEND="pcre? ( dev-libs/libpcre:3 )" +DEPEND="${RDEPEND}" +BDEPEND="virtual/pkgconfig" + +# Checking of supported fortran standard version is required here +pkg_setup() { + fortran-2_pkg_setup +} + +get_platform() { + case $(tc-getFC) in + *gfortran*) echo "gnu" ;; + *ifort*) echo "intel" ;; + *nagfor*) echo "nag" ;; + *) die "Unsupported compiler: $(tc-getFC)" ;; + esac +} + +src_prepare() { + default + + # Pass LDFLAGS to respect it + sed -i '/SOLDFLAGS =/ s/$/ '"${LDFLAGS}"'/' makefile || die +} + +src_configure() { + filter-flags -fpch-preprocess +} + +src_compile() { + emake_args=( + FC=$(tc-getFC) + CXX=$(tc-getCXX) + PLATFORM=$(get_platform) + BUILD=custom + USE_PCRE=$(usex pcre true false) + ) + + emake "${emake_args[@]}" +} + +src_test() { + emake_args=( + FC=$(tc-getFC) + CXX=$(tc-getCXX) + PLATFORM=$(get_platform) + BUILD=custom + USE_PCRE=$(usex pcre true false) + ) + + emake "${emake_args[@]}" test +} + +src_install() { + # Set BUILD to custom as default type is debug + emake BUILD=custom DESTDIR="${D}" PREFIX="${EPREFIX}"/usr LIBDIR=$(get_libdir) install + einstalldocs +}