* [gentoo-commits] repo/proj/guru:master commit in: dev-libs/ftl/
@ 2021-04-25 20:28 Andrew Ammerlaan
0 siblings, 0 replies; 3+ messages in thread
From: Andrew Ammerlaan @ 2021-04-25 20:28 UTC (permalink / raw
To: gentoo-commits
commit: b01f220bb555da848da3cdb75bcf7a1fd2045c2d
Author: Sergey Torokhov <torokhov-s-a <AT> yandex <DOT> ru>
AuthorDate: Sun Apr 25 13:39:38 2021 +0000
Commit: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
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 <torokhov-s-a <AT> 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 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>torokhov-s-a@yandex.ru</email>
+ <name>Sergey Torokhov</name>
+ </maintainer>
+ <longdescription>
+ 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).
+ </longdescription>
+ <upstream>
+ <remote-id type="github">SCM-NV/ftl</remote-id>
+ </upstream>
+</pkgmetadata>
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [gentoo-commits] repo/proj/guru:master commit in: dev-libs/ftl/
@ 2021-04-29 8:23 Michał Górny
0 siblings, 0 replies; 3+ messages in thread
From: Michał Górny @ 2021-04-29 8:23 UTC (permalink / raw
To: gentoo-commits
commit: 60f15dba6835d3ec1b703a7d4d375df05a8fa6c7
Author: Sergey Torokhov <torokhov-s-a <AT> yandex <DOT> ru>
AuthorDate: Wed Apr 28 21:19:38 2021 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Apr 28 21:25:15 2021 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=60f15dba
dev-libs/ftl: fix FLAGS (i.e. FCFLAGS) reassigning, pass CXXFLAGS
Closes: https://bugs.gentoo.org/785745
Signed-off-by: Sergey Torokhov <torokhov-s-a <AT> yandex.ru>
dev-libs/ftl/ftl-1.0_p20210308.ebuild | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/dev-libs/ftl/ftl-1.0_p20210308.ebuild b/dev-libs/ftl/ftl-1.0_p20210308.ebuild
index 6981da492..214f8876e 100644
--- a/dev-libs/ftl/ftl-1.0_p20210308.ebuild
+++ b/dev-libs/ftl/ftl-1.0_p20210308.ebuild
@@ -55,11 +55,14 @@ src_prepare() {
;;
esac
- # Replase install PREFIX, LIBDIR, add library soname
+ # Replase BUILD type, PREFIX and libdir, LIBDIR, add libsoname and LDFLAGS,
+ # drop FLAGS reassign block, add CXXFLAGS to 'configure_ftlRegex.c' build
sed -i -e '/^BUILD ?=/s:debug:release:' \
-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}"':' \
+ -e '/gnudebug)/,+15d' \
+ -e '/configure_ftlRegex.c/ s:\$(CXXCOMPILER):\$(CXXCOMPILER) \$(CXXFLAGS):' \
makefile || die
}
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [gentoo-commits] repo/proj/guru:master commit in: dev-libs/ftl/
@ 2023-06-04 6:20 Viorel Munteanu
0 siblings, 0 replies; 3+ messages in thread
From: Viorel Munteanu @ 2023-06-04 6:20 UTC (permalink / raw
To: gentoo-commits
commit: 12ace9e099aa633f4a46ddc9cffbbe9334b1f60b
Author: Sergey Torokhov <torokhov-s-a <AT> yandex <DOT> ru>
AuthorDate: Fri Jun 2 20:46:03 2023 +0000
Commit: Viorel Munteanu <ceamac <AT> gentoo <DOT> org>
CommitDate: Fri Jun 2 20:46:03 2023 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=12ace9e0
dev-libs/ftl: drop old 1.0_p20220209-r1
Signed-off-by: Sergey Torokhov <torokhov-s-a <AT> yandex.ru>
dev-libs/ftl/Manifest | 1 -
dev-libs/ftl/ftl-1.0_p20220209-r1.ebuild | 79 --------------------------------
2 files changed, 80 deletions(-)
diff --git a/dev-libs/ftl/Manifest b/dev-libs/ftl/Manifest
index 49457b47a..7b05a94c4 100644
--- a/dev-libs/ftl/Manifest
+++ b/dev-libs/ftl/Manifest
@@ -1,2 +1 @@
-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_p20220209-r1.ebuild b/dev-libs/ftl/ftl-1.0_p20220209-r1.ebuild
deleted file mode 100644
index 2b3912325..000000000
--- a/dev-libs/ftl/ftl-1.0_p20220209-r1.ebuild
+++ /dev/null
@@ -1,79 +0,0 @@
-# Copyright 1999-2022 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"
-
-# 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
-}
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-06-04 6:20 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-04-25 20:28 [gentoo-commits] repo/proj/guru:master commit in: dev-libs/ftl/ Andrew Ammerlaan
-- strict thread matches above, loose matches on Subject: below --
2021-04-29 8:23 Michał Górny
2023-06-04 6:20 Viorel Munteanu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox