From: "Anna Vyalkova" <cyber+gentoo@sysrq.in>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-libs/ftl/
Date: Wed, 9 Feb 2022 13:12:43 +0000 (UTC) [thread overview]
Message-ID: <1644412326.97e843d182dd0333193aebde195f6ce24d28baa2.cybertailor@gentoo> (raw)
commit: 97e843d182dd0333193aebde195f6ce24d28baa2
Author: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
AuthorDate: Wed Feb 9 13:11:51 2022 +0000
Commit: Anna Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
CommitDate: Wed Feb 9 13:12:06 2022 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=97e843d1
dev-libs/ftl: add 1.0_p20220209
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq.in>
dev-libs/ftl/Manifest | 1 +
dev-libs/ftl/ftl-1.0_p20220209.ebuild | 66 +++++++++++++++++++++++++++++++++++
2 files changed, 67 insertions(+)
diff --git a/dev-libs/ftl/Manifest b/dev-libs/ftl/Manifest
index 4afd58e95..16819ea57 100644
--- a/dev-libs/ftl/Manifest
+++ b/dev-libs/ftl/Manifest
@@ -1 +1,2 @@
DIST ftl-1.0_p20210308.tar.gz 732263 BLAKE2B 2a369b809f2b0d77ffe002d2e9ffaffabcb4f12565c0bb5bcbcce5899bac030dd127427dd8f89b3595d98441b9b145daf8661ed9c46977ac6667f774bb748e91 SHA512 9a1777da96fbde00669586899658d63a64b19252e90a01ccc0440e0f79f948ddd9dc118774365e227a75b80edf4c784760164268efb2d1f69000fe68ac5eb5b9
+DIST ftl-1.0_p20220209.tar.gz 732360 BLAKE2B 154d7124678852dc56087c51cd7bdbb2ffa7f6a628c959f760835b420cc5bdb74bfd4e4b0e9e0d822a26eff9b100102849b1952d9ff0f5f6cf6991859eedff4a SHA512 0673ac4116c3bc9d3e55188b0d0d663f83c2e9958888780e966516c0421a08f276443ed6de637f178edb07e59c37472eb48d892aa3cbded4db68803e8bc1fa10
diff --git a/dev-libs/ftl/ftl-1.0_p20220209.ebuild b/dev-libs/ftl/ftl-1.0_p20220209.ebuild
new file mode 100644
index 000000000..f980fa998
--- /dev/null
+++ b/dev-libs/ftl/ftl-1.0_p20220209.ebuild
@@ -0,0 +1,66 @@
+# Copyright 1999-2021 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="69fa39bbf9441d1686e65b7e19b1606f8cab4b9f"
+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"
+
+get_platform() {
+ case $(tc-getFC) in
+ *gfortran*) echo "gnu" ;;
+ *ifort*) echo "intel" ;;
+ *nagfor*) echo "nag" ;;
+ *) die "Unsupported compiler: $(tc-getFC)" ;;
+ esac
+}
+
+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() {
+ emake DESTDIR="${D}" PREFIX="${EPREFIX}"/usr LIBDIR=$(get_libdir) install
+ einstalldocs
+}
next reply other threads:[~2022-02-09 13:12 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-02-09 13:12 Anna Vyalkova [this message]
-- strict thread matches above, loose matches on Subject: below --
2023-06-02 21:06 [gentoo-commits] repo/proj/guru:dev commit in: dev-libs/ftl/ Sergey Torokhov
2023-05-16 21:56 Sergey Torokhov
2022-03-06 23:11 Sergey Torokhov
2022-03-06 23:11 Sergey Torokhov
2021-04-28 21:25 Sergey Torokhov
2021-04-26 19:32 Sergey Torokhov
2021-04-25 13:41 Sergey Torokhov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1644412326.97e843d182dd0333193aebde195f6ce24d28baa2.cybertailor@gentoo \
--to=cyber+gentoo@sysrq.in \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox