Gentoo Archives: gentoo-commits

From: Sergey Torokhov <torokhov-s-a@××××××.ru>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:dev commit in: x11-libs/gtk-fortran/
Date: Sat, 29 Oct 2022 22:30:48
Message-Id: 1667082596.0777f0dc276b89703771680de03426ad694b51d8.SergeyTorokhov@gentoo
1 commit: 0777f0dc276b89703771680de03426ad694b51d8
2 Author: Sergey Torokhov <torokhov-s-a <AT> yandex <DOT> ru>
3 AuthorDate: Sat Oct 29 22:29:56 2022 +0000
4 Commit: Sergey Torokhov <torokhov-s-a <AT> yandex <DOT> ru>
5 CommitDate: Sat Oct 29 22:29:56 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=0777f0dc
7
8 x11-libs/gtk-fortran: 3.24.31 and 4.2.1 versions bump
9
10 Signed-off-by: Sergey Torokhov <torokhov-s-a <AT> yandex.ru>
11
12 x11-libs/gtk-fortran/Manifest | 2 +
13 x11-libs/gtk-fortran/gtk-fortran-3.24.31.ebuild | 71 +++++++++++++++++++++++++
14 x11-libs/gtk-fortran/gtk-fortran-4.2.1.ebuild | 71 +++++++++++++++++++++++++
15 3 files changed, 144 insertions(+)
16
17 diff --git a/x11-libs/gtk-fortran/Manifest b/x11-libs/gtk-fortran/Manifest
18 index e7bda029d..a55470946 100644
19 --- a/x11-libs/gtk-fortran/Manifest
20 +++ b/x11-libs/gtk-fortran/Manifest
21 @@ -1,2 +1,4 @@
22 DIST gtk-fortran-3.24.30.tar.gz 4276622 BLAKE2B 4b18d21e0479496caea386450fc16c12d20ad3491932b331890b5d7328c704799f8dd288c4a1d0d2e34f0957f0bdca316f820850b80c4ff8d2b66ce3673fe5ec SHA512 4e1cd522ca80db01a1058d6c58b4a6e3e63e6b1d510e2ee5fd0b8f8aa9f9dc8e433d203781c908065571c4c1a6d9686c22eec879b396352b12fa82b604855c86
23 +DIST gtk-fortran-3.24.31.tar.gz 4287676 BLAKE2B 9fe3f83158ea504d492978ddd0b3a6d4aad5f5325df7c6ebbeb6d11ecb48d1097ee3c7b213c8824a5e4adb15da9af1da64c72b9089746dd0bb5d1d91dc76c766 SHA512 3d1a62837f4750b5c284a1548ede0ecfe8ad2f2619ca7ee2eb75e4cb7fcc739de90d67ff61d406b1f13fe0a2a9f1e23a1baa50afdc8caaaf1b3866e5640cb3f1
24 DIST gtk-fortran-4.1.0.tar.gz 4100843 BLAKE2B c11658472c4f2ad9916f8f421f0d1c48b9ec7874e9e4075f2247e7cfb33ed69946e644aa9a460d63ff676c075b76caf4c70bd09532dda53b4d2035c88b3c1c61 SHA512 cd4628a56b2a03f7e958d4284c595b573ab84ac6c630cfae4f3ed13bb6d19a66246cb6adac8b05104f562406a467c03841cf350f8482e7e9f8fd596de4f4c873
25 +DIST gtk-fortran-4.2.1.tar.gz 4111001 BLAKE2B 9cfeb8ef0fff6ab215cc421107ad643370d96ccfdfaac062af46e1793742d53ffcb11169db88a12711fea5309f2d339c2716be20e3e36fe3cc762864c611e732 SHA512 ea2650208f453e8292df1d4e05460b221146ff44e50513702eb5ad4b689d40f6bbd0935d1d617845e3927d25ff3f069a08032b89035d06e5ad688f7d281a2cd9
26
27 diff --git a/x11-libs/gtk-fortran/gtk-fortran-3.24.31.ebuild b/x11-libs/gtk-fortran/gtk-fortran-3.24.31.ebuild
28 new file mode 100644
29 index 000000000..3fce2073d
30 --- /dev/null
31 +++ b/x11-libs/gtk-fortran/gtk-fortran-3.24.31.ebuild
32 @@ -0,0 +1,71 @@
33 +# Copyright 1999-2022 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=8
37 +
38 +CMAKE_MAKEFILE_GENERATOR="emake"
39 +FORTRAN_STANDARD=2003
40 +VIRTUALX_REQUIRED="test"
41 +
42 +inherit cmake fortran-2 virtualx
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="3"
50 +KEYWORDS="~amd64 ~x86"
51 +
52 +IUSE="examples high-level plplot static-libs test"
53 +REQUIRED_USE="plplot? ( high-level )"
54 +RESTRICT="!test? ( test )"
55 +
56 +RDEPEND="
57 + x11-libs/gtk+:3
58 + plplot? ( >=sci-libs/plplot-5.15.0[cairo,fortran] )
59 +"
60 +DEPEND="${RDEPEND}"
61 +BDEPEND="
62 + virtual/fortran
63 + virtual/pkgconfig
64 +"
65 +
66 +DOCS=( "README.md" "README-high-level.md" "CHANGELOG.md" )
67 +
68 +pkg_setup() {
69 + fortran-2_pkg_setup
70 +}
71 +
72 +src_prepare() {
73 + default
74 + # Fix library installation path, disable 'sketcher' build, pass LDFLAGS
75 + sed -i -e "s:CMAKE_INSTALL_LIBDIR lib:CMAKE_INSTALL_LIBDIR $(get_libdir):" \
76 + -e "s: add_subdirectory(sketcher)::" \
77 + -e 's:"-rdynamic":"-rdynamic '"${LDFLAGS}"'":' CMakeLists.txt || die
78 +
79 + cmake_src_prepare
80 +}
81 +
82 +src_configure() {
83 + mycmakeargs+=(
84 + -DEXCLUDE_PLPLOT=$(usex plplot false true)
85 + -DNO_BUILD_HL=$(usex high-level false true)
86 + -DINSTALL_EXAMPLES=$(usex examples)
87 + -DNO_BUILD_EXAMPLES=true
88 + )
89 + cmake_src_configure
90 +}
91 +
92 +src_test() {
93 + virtx cmake_src_test
94 +}
95 +
96 +src_install() {
97 + cmake_src_install
98 +
99 + # Remove static library here as it's used to build additional tools
100 + if use !static-libs ; then
101 + rm "${ED}/usr/$(get_libdir)/libgtk-${SLOT}-fortran.a" || die
102 + fi
103 +}
104
105 diff --git a/x11-libs/gtk-fortran/gtk-fortran-4.2.1.ebuild b/x11-libs/gtk-fortran/gtk-fortran-4.2.1.ebuild
106 new file mode 100644
107 index 000000000..01663bcd6
108 --- /dev/null
109 +++ b/x11-libs/gtk-fortran/gtk-fortran-4.2.1.ebuild
110 @@ -0,0 +1,71 @@
111 +# Copyright 1999-2022 Gentoo Authors
112 +# Distributed under the terms of the GNU General Public License v2
113 +
114 +EAPI=8
115 +
116 +CMAKE_MAKEFILE_GENERATOR="emake"
117 +FORTRAN_STANDARD=2003
118 +VIRTUALX_REQUIRED="test"
119 +
120 +inherit cmake fortran-2 virtualx
121 +
122 +DESCRIPTION="A GTK+ binding to build Graphical User Interfaces in Fortran"
123 +HOMEPAGE="https://github.com/vmagnin/gtk-fortran"
124 +SRC_URI="https://github.com/vmagnin/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
125 +
126 +LICENSE="GPL-3"
127 +SLOT="4"
128 +KEYWORDS="~amd64 ~x86"
129 +
130 +IUSE="examples high-level plplot static-libs test"
131 +REQUIRED_USE="plplot? ( high-level )"
132 +RESTRICT="!test? ( test )"
133 +
134 +RDEPEND="
135 + gui-libs/gtk:4
136 + plplot? ( >=sci-libs/plplot-5.15.0[cairo,fortran] )
137 +"
138 +DEPEND="${RDEPEND}"
139 +BDEPEND="
140 + virtual/fortran
141 + virtual/pkgconfig
142 +"
143 +
144 +DOCS=( "README.md" "README-high-level.md" "CHANGELOG.md" )
145 +
146 +pkg_setup() {
147 + fortran-2_pkg_setup
148 +}
149 +
150 +src_prepare() {
151 + default
152 + # Fix library installation path, disable 'sketcher' build, pass LDFLAGS
153 + sed -i -e "s:CMAKE_INSTALL_LIBDIR lib:CMAKE_INSTALL_LIBDIR $(get_libdir):" \
154 + -e "s: add_subdirectory(sketcher)::" \
155 + -e 's:"-rdynamic":"-rdynamic '"${LDFLAGS}"'":' CMakeLists.txt || die
156 +
157 + cmake_src_prepare
158 +}
159 +
160 +src_configure() {
161 + mycmakeargs+=(
162 + -DEXCLUDE_PLPLOT=$(usex plplot false true)
163 + -DNO_BUILD_HL=$(usex high-level false true)
164 + -DINSTALL_EXAMPLES=$(usex examples)
165 + -DNO_BUILD_EXAMPLES=true
166 + )
167 + cmake_src_configure
168 +}
169 +
170 +src_test() {
171 + virtx cmake_src_test
172 +}
173 +
174 +src_install() {
175 + cmake_src_install
176 +
177 + # Remove static library here as it's used to build additional tools
178 + if use !static-libs ; then
179 + rm "${ED}/usr/$(get_libdir)/libgtk-${SLOT}-fortran.a" || die
180 + fi
181 +}