Gentoo Archives: gentoo-commits

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