1 |
commit: b01f220bb555da848da3cdb75bcf7a1fd2045c2d |
2 |
Author: Sergey Torokhov <torokhov-s-a <AT> yandex <DOT> ru> |
3 |
AuthorDate: Sun Apr 25 13:39:38 2021 +0000 |
4 |
Commit: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net> |
5 |
CommitDate: Sun Apr 25 13:39:38 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=b01f220b |
7 |
|
8 |
dev-libs/ftl: new package |
9 |
|
10 |
The Fortran Template Library (FTL) is a general purpose library for Fortran 2003 |
11 |
|
12 |
Signed-off-by: Sergey Torokhov <torokhov-s-a <AT> yandex.ru> |
13 |
|
14 |
dev-libs/ftl/Manifest | 1 + |
15 |
dev-libs/ftl/ftl-1.0_p20210308.ebuild | 66 +++++++++++++++++++++++++++++++++++ |
16 |
dev-libs/ftl/metadata.xml | 19 ++++++++++ |
17 |
3 files changed, 86 insertions(+) |
18 |
|
19 |
diff --git a/dev-libs/ftl/Manifest b/dev-libs/ftl/Manifest |
20 |
new file mode 100644 |
21 |
index 000000000..4afd58e95 |
22 |
--- /dev/null |
23 |
+++ b/dev-libs/ftl/Manifest |
24 |
@@ -0,0 +1 @@ |
25 |
+DIST ftl-1.0_p20210308.tar.gz 732263 BLAKE2B 2a369b809f2b0d77ffe002d2e9ffaffabcb4f12565c0bb5bcbcce5899bac030dd127427dd8f89b3595d98441b9b145daf8661ed9c46977ac6667f774bb748e91 SHA512 9a1777da96fbde00669586899658d63a64b19252e90a01ccc0440e0f79f948ddd9dc118774365e227a75b80edf4c784760164268efb2d1f69000fe68ac5eb5b9 |
26 |
|
27 |
diff --git a/dev-libs/ftl/ftl-1.0_p20210308.ebuild b/dev-libs/ftl/ftl-1.0_p20210308.ebuild |
28 |
new file mode 100644 |
29 |
index 000000000..4cdbc8837 |
30 |
--- /dev/null |
31 |
+++ b/dev-libs/ftl/ftl-1.0_p20210308.ebuild |
32 |
@@ -0,0 +1,66 @@ |
33 |
+# Copyright 1999-2021 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=7 |
37 |
+ |
38 |
+FORTRAN_STANDARD="2003" |
39 |
+ |
40 |
+inherit fortran-2 toolchain-funcs |
41 |
+ |
42 |
+COMMIT="97b8292e893ad147ca44e42bcd56d23e9a8259fb" |
43 |
+DESCRIPTION="The Fortran Template Library (FTL) is a general purpose library for Fortran 2003" |
44 |
+HOMEPAGE="https://github.com/SCM-NV/ftl/" |
45 |
+SRC_URI="https://github.com/SCM-NV/${PN}/archive/${COMMIT}.tar.gz -> ${P}.tar.gz" |
46 |
+ |
47 |
+LICENSE="LGPL-3" |
48 |
+SLOT="0" |
49 |
+KEYWORDS="~amd64 ~x86" |
50 |
+IUSE="pcre test" |
51 |
+RESTRICT="!test? ( test )" |
52 |
+REQUIRED_USE="test? ( pcre )" # Some tests fail if 'pcre' is disabled |
53 |
+ |
54 |
+S="${WORKDIR}/${PN}-${COMMIT}" |
55 |
+ |
56 |
+RDEPEND=" |
57 |
+ pcre? ( dev-libs/libpcre ) |
58 |
+" |
59 |
+DEPEND="${RDEPEND}" |
60 |
+BDEPEND="virtual/pkgconfig" |
61 |
+ |
62 |
+pkg_setup() { |
63 |
+ fortran-2_pkg_setup |
64 |
+} |
65 |
+ |
66 |
+src_prepare() { |
67 |
+ default |
68 |
+ |
69 |
+ # Replase install PREFIX, LIBDIR, add library soname |
70 |
+ sed -i -e 's:PREFIX ?= /usr/local:PREFIX ?= '"${ED}"'/usr/:' \ |
71 |
+ -e 's:(PREFIX)/lib:(PREFIX)/'"$(get_libdir)"':' \ |
72 |
+ -e 's:SOLDFLAGS = -shared:SOLDFLAGS = -shared -Wl,-soname=libftl.so.1 '"${LDFLAGS}"':' makefile || die |
73 |
+} |
74 |
+ |
75 |
+src_configure() { |
76 |
+ return 0 |
77 |
+} |
78 |
+ |
79 |
+src_compile() { |
80 |
+ emake \ |
81 |
+ BUILD=release \ |
82 |
+ USE_PCRE=$(usex pcre true false) \ |
83 |
+ COMPILER="$(tc-getFC)" \ |
84 |
+ FLAGS="${FCFLAGS}" \ |
85 |
+ CXXCOMPILER="$(tc-getCXX)" \ |
86 |
+ CXXFLAGS="${CXXFLAGS}" |
87 |
+} |
88 |
+ |
89 |
+src_test() { |
90 |
+ emake test |
91 |
+} |
92 |
+ |
93 |
+src_install() { |
94 |
+ emake install |
95 |
+ |
96 |
+ mv "${ED}/usr/$(get_libdir)"/libftl.so{,.1} || die |
97 |
+ dosym libftl.so.1 /usr/$(get_libdir)/libftl.so |
98 |
+} |
99 |
|
100 |
diff --git a/dev-libs/ftl/metadata.xml b/dev-libs/ftl/metadata.xml |
101 |
new file mode 100644 |
102 |
index 000000000..8f6288baf |
103 |
--- /dev/null |
104 |
+++ b/dev-libs/ftl/metadata.xml |
105 |
@@ -0,0 +1,19 @@ |
106 |
+<?xml version="1.0" encoding="UTF-8"?> |
107 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
108 |
+<pkgmetadata> |
109 |
+ <maintainer type="person"> |
110 |
+ <email>torokhov-s-a@××××××.ru</email> |
111 |
+ <name>Sergey Torokhov</name> |
112 |
+ </maintainer> |
113 |
+ <longdescription> |
114 |
+ The Fortran Template Library (FTL) is a general purpose library for Fortran 2003. |
115 |
+ Its intention is to bring all these nice things we take for granted in modern languages |
116 |
+ like Python and C++ to the Fortran world: Generic containers, versatile algorithms, |
117 |
+ easy string manipulation, and more. |
118 |
+ It is heavily inspired by C++'s standard library, |
119 |
+ especially the part that is commonly referred to as the Standard Template Library (STL). |
120 |
+ </longdescription> |
121 |
+ <upstream> |
122 |
+ <remote-id type="github">SCM-NV/ftl</remote-id> |
123 |
+ </upstream> |
124 |
+</pkgmetadata> |