1 |
commit: 709dab81c97bef47a2b1cea9fb0db62e71b839ac |
2 |
Author: Sergey Torokhov <torokhov-s-a <AT> yandex <DOT> ru> |
3 |
AuthorDate: Wed Oct 27 00:11:18 2021 +0000 |
4 |
Commit: Florian Schmaus <flow <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Oct 27 00:11:18 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=709dab81 |
7 |
|
8 |
x11-libs/gtk-fortran: 3.24.30 version bump |
9 |
|
10 |
Signed-off-by: Sergey Torokhov <torokhov-s-a <AT> yandex.ru> |
11 |
|
12 |
x11-libs/gtk-fortran/Manifest | 1 + |
13 |
x11-libs/gtk-fortran/gtk-fortran-3.24.30.ebuild | 64 +++++++++++++++++++++++++ |
14 |
2 files changed, 65 insertions(+) |
15 |
|
16 |
diff --git a/x11-libs/gtk-fortran/Manifest b/x11-libs/gtk-fortran/Manifest |
17 |
index ee062a8a9..67d6d1499 100644 |
18 |
--- a/x11-libs/gtk-fortran/Manifest |
19 |
+++ b/x11-libs/gtk-fortran/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST gtk-fortran-3.24.18.tar.gz 4066185 BLAKE2B 45a84dfd27b5f0495da55526262e3ba888f1d7eaa685336aaafae726dab63d047d71901a07eafc08c2f51d1e24a087e85f7b2a172323a8f1608c5ff64193f31c SHA512 b8ebf9e129c95c7aa2cf67d41f16915a18f05bd4cce4001ed56148b6d4e4ae3fe2b2e2080f35a1db4be8256bc3d5992061bf0c0e55e332f9a75a4a03e52cded5 |
22 |
+DIST gtk-fortran-3.24.30.tar.gz 4276622 BLAKE2B 4b18d21e0479496caea386450fc16c12d20ad3491932b331890b5d7328c704799f8dd288c4a1d0d2e34f0957f0bdca316f820850b80c4ff8d2b66ce3673fe5ec SHA512 4e1cd522ca80db01a1058d6c58b4a6e3e63e6b1d510e2ee5fd0b8f8aa9f9dc8e433d203781c908065571c4c1a6d9686c22eec879b396352b12fa82b604855c86 |
23 |
|
24 |
diff --git a/x11-libs/gtk-fortran/gtk-fortran-3.24.30.ebuild b/x11-libs/gtk-fortran/gtk-fortran-3.24.30.ebuild |
25 |
new file mode 100644 |
26 |
index 000000000..243d4c8fb |
27 |
--- /dev/null |
28 |
+++ b/x11-libs/gtk-fortran/gtk-fortran-3.24.30.ebuild |
29 |
@@ -0,0 +1,64 @@ |
30 |
+# Copyright 1999-2021 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=7 |
34 |
+ |
35 |
+CMAKE_MAKEFILE_GENERATOR="emake" |
36 |
+FORTRAN_STANDARD=2003 |
37 |
+ |
38 |
+inherit cmake fortran-2 |
39 |
+ |
40 |
+DESCRIPTION="A GTK+ binding to build Graphical User Interfaces in Fortran" |
41 |
+HOMEPAGE="https://github.com/vmagnin/gtk-fortran" |
42 |
+SRC_URI="https://github.com/vmagnin/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
43 |
+ |
44 |
+LICENSE="GPL-3" |
45 |
+SLOT="3" |
46 |
+KEYWORDS="~amd64 ~x86" |
47 |
+ |
48 |
+IUSE="examples high-level plplot static-libs" |
49 |
+REQUIRED_USE="plplot? ( high-level )" |
50 |
+ |
51 |
+RDEPEND=" |
52 |
+ x11-libs/gtk+:3 |
53 |
+ plplot? ( >=sci-libs/plplot-5.13.0[cairo,fortran] ) |
54 |
+" |
55 |
+DEPEND="${RDEPEND}" |
56 |
+BDEPEND=" |
57 |
+ virtual/fortran |
58 |
+ virtual/pkgconfig |
59 |
+" |
60 |
+ |
61 |
+DOCS=( "README.md" "README-high-level.md" "CHANGELOG.md" ) |
62 |
+ |
63 |
+pkg_setup() { |
64 |
+ fortran-2_pkg_setup |
65 |
+} |
66 |
+ |
67 |
+src_prepare() { |
68 |
+ default |
69 |
+ # Fix library installation path and disable 'sketcher' build |
70 |
+ sed -i -e "s:CMAKE_INSTALL_LIBDIR lib:CMAKE_INSTALL_LIBDIR $(get_libdir):" \ |
71 |
+ -e "s: add_subdirectory(sketcher)::" CMakeLists.txt || die |
72 |
+ |
73 |
+ cmake_src_prepare |
74 |
+} |
75 |
+ |
76 |
+src_configure() { |
77 |
+ mycmakeargs+=( |
78 |
+ -DEXCLUDE_PLPLOT=$(usex plplot false true) |
79 |
+ -DNO_BUILD_HL=$(usex high-level false true) |
80 |
+ -DINSTALL_EXAMPLES=$(usex examples) |
81 |
+ -DNO_BUILD_EXAMPLES=true |
82 |
+ ) |
83 |
+ cmake_src_configure |
84 |
+} |
85 |
+ |
86 |
+src_install() { |
87 |
+ cmake_src_install |
88 |
+ |
89 |
+ # Remove static library here as it's used to build additional tools |
90 |
+ if use !static-libs ; then |
91 |
+ rm "${ED}/usr/$(get_libdir)/libgtk-${SLOT}-fortran.a" || die |
92 |
+ fi |
93 |
+} |