1 |
commit: 9ed66356cae4e3204511fdf7196e8410136c32d4 |
2 |
Author: Sergey Torokhov <torokhov-s-a <AT> yandex <DOT> ru> |
3 |
AuthorDate: Sat Apr 24 11:44:17 2021 +0000 |
4 |
Commit: Theo Anderson <telans <AT> posteo <DOT> de> |
5 |
CommitDate: Sat Apr 24 11:44:17 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=9ed66356 |
7 |
|
8 |
x11-libs/gtk-fortran: drop 19.04 |
9 |
|
10 |
Signed-off-by: Sergey Torokhov <torokhov-s-a <AT> yandex.ru> |
11 |
|
12 |
x11-libs/gtk-fortran/Manifest | 1 - |
13 |
.../files/gtk-fortran-NO_BUILD_HL-option.patch | 96 ---------------------- |
14 |
x11-libs/gtk-fortran/gtk-fortran-19.04.ebuild | 79 ------------------ |
15 |
x11-libs/gtk-fortran/metadata.xml | 1 - |
16 |
4 files changed, 177 deletions(-) |
17 |
|
18 |
diff --git a/x11-libs/gtk-fortran/Manifest b/x11-libs/gtk-fortran/Manifest |
19 |
index bf51ff021..260c8d2b8 100644 |
20 |
--- a/x11-libs/gtk-fortran/Manifest |
21 |
+++ b/x11-libs/gtk-fortran/Manifest |
22 |
@@ -1,2 +1 @@ |
23 |
-DIST gtk-fortran-19.04.tar.gz 4164311 BLAKE2B 728d55890344894df534de1530135933e488ea197dc2d9b8f28571ce56a236e7fe2be23ebc4708e1ae5ffeb10e4ee584db366945e3d262225c4e9f7db4fa611d SHA512 58154df7c531ebfabcc687f8f38d3c7db7f7adb6cc015e1ce9c44455ab2506a4dfe6b073a88100131ac3712fee68844e4544f2f77d954285e3fbc86e1b3d9394 |
24 |
DIST gtk-fortran-20.04.tar.gz 4066185 BLAKE2B 45a84dfd27b5f0495da55526262e3ba888f1d7eaa685336aaafae726dab63d047d71901a07eafc08c2f51d1e24a087e85f7b2a172323a8f1608c5ff64193f31c SHA512 b8ebf9e129c95c7aa2cf67d41f16915a18f05bd4cce4001ed56148b6d4e4ae3fe2b2e2080f35a1db4be8256bc3d5992061bf0c0e55e332f9a75a4a03e52cded5 |
25 |
|
26 |
diff --git a/x11-libs/gtk-fortran/files/gtk-fortran-NO_BUILD_HL-option.patch b/x11-libs/gtk-fortran/files/gtk-fortran-NO_BUILD_HL-option.patch |
27 |
deleted file mode 100644 |
28 |
index 6ead9ceaa..000000000 |
29 |
--- a/x11-libs/gtk-fortran/files/gtk-fortran-NO_BUILD_HL-option.patch |
30 |
+++ /dev/null |
31 |
@@ -1,96 +0,0 @@ |
32 |
-diff -Naur a/CMakeLists.txt b/CMakeLists.txt |
33 |
---- a/CMakeLists.txt 2019-04-24 10:53:11.000000000 +0300 |
34 |
-+++ b/CMakeLists.txt 2020-04-13 07:05:14.000000000 +0300 |
35 |
-@@ -194,7 +194,7 @@ |
36 |
- # As a temporary (?) workaround, we are now using pkg-config. |
37 |
- # If a CMake error occurs, add -D EXCLUDE_PLPLOT=true to your CMake command. |
38 |
- #=============================================================================== |
39 |
--if (NOT EXCLUDE_PLPLOT) |
40 |
-+if (NOT EXCLUDE_PLPLOT AND NOT NO_BUILD_HL) |
41 |
- find_package(PkgConfig REQUIRED) |
42 |
- |
43 |
- pkg_check_modules(PLPLOT-FORTRAN REQUIRED plplot-fortran) |
44 |
-@@ -211,9 +211,9 @@ |
45 |
- include_directories(${PLPLOT_INCLUDE_DIRS}) |
46 |
- set(CMAKE_REQUIRED_LIBRARIES "${PLPLOT_LIBRARIES}") |
47 |
- set(CMAKE_REQUIRED_INCLUDES "${PLPLOT-FORTRAN_INCLUDE_DIRS}") |
48 |
--else(NOT EXCLUDE_PLPLOT) |
49 |
-+else(NOT EXCLUDE_PLPLOT AND NOT NO_BUILD_HL) |
50 |
- message(STATUS "PLPLOT Excluded as command option") |
51 |
--endif(NOT EXCLUDE_PLPLOT) |
52 |
-+endif(NOT EXCLUDE_PLPLOT AND NOT NO_BUILD_HL) |
53 |
- |
54 |
- |
55 |
- #=============================================================================== |
56 |
-@@ -223,10 +223,10 @@ |
57 |
- add_subdirectory(test) |
58 |
- add_subdirectory(examples) |
59 |
- |
60 |
--if(${GTKv} GREATER 2) |
61 |
-- add_subdirectory(sketcher) |
62 |
--endif() |
63 |
-- |
64 |
--if(PLPLOT_FOUND AND NOT EXCLUDE_PLPLOT) |
65 |
-- add_subdirectory(plplot) |
66 |
--endif(PLPLOT_FOUND AND NOT EXCLUDE_PLPLOT) |
67 |
-+if(NOT NO_BUILD_HL) |
68 |
-+ if(PLPLOT_FOUND AND NOT EXCLUDE_PLPLOT) |
69 |
-+ add_subdirectory(plplot) |
70 |
-+ endif(PLPLOT_FOUND AND NOT EXCLUDE_PLPLOT) |
71 |
-+else(NOT NO_BUILD_HL) |
72 |
-+ message(STATUS "High Level API Excluded as command option") |
73 |
-+endif(NOT NO_BUILD_HL) |
74 |
-diff -Naur a/src/CMakeLists.txt b/src/CMakeLists.txt |
75 |
---- a/src/CMakeLists.txt 2019-04-24 10:53:11.000000000 +0300 |
76 |
-+++ b/src/CMakeLists.txt 2020-04-13 11:28:22.000000000 +0300 |
77 |
-@@ -33,28 +33,33 @@ |
78 |
- "gdk-pixbuf-auto.f90" |
79 |
- "glib-auto.f90" |
80 |
- "gtk.f90" |
81 |
-- "gtk-hl.f90" |
82 |
-- "gtk-hl-container.f90" |
83 |
-- "gtk-hl-button.f90" |
84 |
-- "gtk-hl-entry.f90" |
85 |
-- "gtk-hl-tree.f90" |
86 |
-- "gtk-hl-menu.f90" |
87 |
-- "gtk-hl-combobox.f90" |
88 |
-- "gtk-hl-spin-slider.f90" |
89 |
-- "gtk-hl-chooser.f90" |
90 |
-- "gtk-hl-dialog.f90" |
91 |
-- "gtk-hl-progress.f90" |
92 |
-- "gtk-hl-accelerator.f90" |
93 |
-- "gtk-hl-infobar.f90" |
94 |
-- "gtk-hl-assistant.f90" |
95 |
-- "gtk-hl-misc.f90" |
96 |
-- "gtk-draw-hl.f90" |
97 |
- "gtk-sup.f90" |
98 |
-- "gdk-pixbuf-hl.f90" |
99 |
- "pango-auto.f90" |
100 |
- "gdkevents-auto${GTKv}.f90" |
101 |
- ) |
102 |
- |
103 |
-+if(NOT NO_BUILD_HL) |
104 |
-+ set(sources ${sources} |
105 |
-+ "gtk-hl.f90" |
106 |
-+ "gtk-hl-container.f90" |
107 |
-+ "gtk-hl-button.f90" |
108 |
-+ "gtk-hl-entry.f90" |
109 |
-+ "gtk-hl-tree.f90" |
110 |
-+ "gtk-hl-menu.f90" |
111 |
-+ "gtk-hl-combobox.f90" |
112 |
-+ "gtk-hl-spin-slider.f90" |
113 |
-+ "gtk-hl-chooser.f90" |
114 |
-+ "gtk-hl-dialog.f90" |
115 |
-+ "gtk-hl-progress.f90" |
116 |
-+ "gtk-hl-accelerator.f90" |
117 |
-+ "gtk-hl-infobar.f90" |
118 |
-+ "gtk-hl-assistant.f90" |
119 |
-+ "gtk-hl-misc.f90" |
120 |
-+ "gtk-draw-hl.f90" |
121 |
-+ "gdk-pixbuf-hl.f90" |
122 |
-+ ) |
123 |
-+endif(NOT NO_BUILD_HL) |
124 |
-+ |
125 |
- if (CMAKE_HOST_WIN32) |
126 |
- set(sources |
127 |
- ${sources} |
128 |
|
129 |
diff --git a/x11-libs/gtk-fortran/gtk-fortran-19.04.ebuild b/x11-libs/gtk-fortran/gtk-fortran-19.04.ebuild |
130 |
deleted file mode 100644 |
131 |
index 336334191..000000000 |
132 |
--- a/x11-libs/gtk-fortran/gtk-fortran-19.04.ebuild |
133 |
+++ /dev/null |
134 |
@@ -1,79 +0,0 @@ |
135 |
-# Copyright 1999-2020 Gentoo Authors |
136 |
-# Distributed under the terms of the GNU General Public License v2 |
137 |
- |
138 |
-EAPI=7 |
139 |
- |
140 |
-CMAKE_MAKEFILE_GENERATOR="emake" |
141 |
-FORTRAN_STANDARD=2003 |
142 |
- |
143 |
-inherit cmake fortran-2 |
144 |
- |
145 |
-DESCRIPTION="A GTK+ binding to build Graphical User Interfaces in Fortran" |
146 |
-HOMEPAGE="https://github.com/vmagnin/gtk-fortran" |
147 |
-SRC_URI="https://github.com/vmagnin/${PN}/archive/v${PV}.gtk3.24.8.tar.gz -> ${P}.tar.gz" |
148 |
- |
149 |
-S="${WORKDIR}/${P}.gtk3.24.8" |
150 |
- |
151 |
-LICENSE="GPL-3" |
152 |
-SLOT="0" |
153 |
-KEYWORDS="~amd64 ~x86" |
154 |
- |
155 |
-IUSE="doc examples high-level plplot" |
156 |
-REQUIRED_USE="plplot? ( high-level )" |
157 |
- |
158 |
-RDEPEND=" |
159 |
- x11-libs/gtk+:3 |
160 |
- plplot? ( >=sci-libs/plplot-5.13.0[cairo,fortran] ) |
161 |
-" |
162 |
- |
163 |
-DEPEND=" |
164 |
- ${RDEPEND} |
165 |
- doc? ( app-doc/doxygen[dot] ) |
166 |
-" |
167 |
- |
168 |
-BDEPEND=" |
169 |
- virtual/fortran |
170 |
- virtual/pkgconfig |
171 |
-" |
172 |
- |
173 |
-DOCS=( "README.md" "README-high-level" "CHANGELOG.md" ) |
174 |
- |
175 |
-pkg_setup() { |
176 |
- fortran-2_pkg_setup |
177 |
-} |
178 |
- |
179 |
-src_prepare() { |
180 |
- default |
181 |
- # Patching here because of failed via PATCHES due to different line endings in files. |
182 |
- # Patch is disable building of 'gtkf-sketcher' - it isn't installed and has now documentation; |
183 |
- # add upstream 'NO_BUILD_HL' cmake option to disable build of high-level interface to gtk-fortran |
184 |
- # that is used by plplot interface (and gtkf-sketcher) and currently causes the TEXTREL QA warnings. |
185 |
- eapply "${FILESDIR}"/gtk-fortran-NO_BUILD_HL-option.patch |
186 |
- # Fix library installation path |
187 |
- sed -i "s:CMAKE_INSTALL_LIBDIR lib:CMAKE_INSTALL_LIBDIR $(get_libdir):" CMakeLists.txt || die |
188 |
- # Fix "Some or all of the gtk libraries were not found. (missing: GTK3_GDKCONFIG_INCLUDE_DIR)", |
189 |
- # ref: https://github.com/vmagnin/gtk-fortran/commit/d3c1682 |
190 |
- sed -i "s:GTK3_GDKCONFIG gdkconfig.h:GTK3_GDKCONFIG gdk/gdkconfig.h:" cmake/FindGTK3.cmake || die |
191 |
- |
192 |
- cmake_src_prepare |
193 |
-} |
194 |
- |
195 |
-src_configure() { |
196 |
- mycmakeargs+=( |
197 |
- -DEXCLUDE_PLPLOT=$(usex plplot false true) |
198 |
- -DNO_BUILD_HL=$(usex high-level false true) |
199 |
- -DINSTALL_EXAMPLES=$(usex examples) |
200 |
- -DNO_BUILD_EXAMPLES=true |
201 |
- ) |
202 |
- cmake_src_configure |
203 |
-} |
204 |
- |
205 |
-src_compile() { |
206 |
- cmake_src_compile |
207 |
- use doc && cmake_src_compile doxygen |
208 |
-} |
209 |
- |
210 |
-src_install() { |
211 |
- cmake_src_install |
212 |
- use doc && dodoc -r "${BUILD_DIR}"/html && rm "${D}/usr/share/doc/${P}"/html/{*.map,*.md5} |
213 |
-} |
214 |
|
215 |
diff --git a/x11-libs/gtk-fortran/metadata.xml b/x11-libs/gtk-fortran/metadata.xml |
216 |
index 6ba666f61..f7bfd06ff 100644 |
217 |
--- a/x11-libs/gtk-fortran/metadata.xml |
218 |
+++ b/x11-libs/gtk-fortran/metadata.xml |
219 |
@@ -10,7 +10,6 @@ |
220 |
a cross-platform library to build Graphical User Interfaces. |
221 |
</longdescription> |
222 |
<use> |
223 |
- <flag name="doc">Build doxygen documentation</flag> |
224 |
<flag name="examples">Install examples source code files</flag> |
225 |
<flag name="high-level">Build high-level interface to the gtk-fortran package</flag> |
226 |
<flag name="plplot">Build with <pkg>sci-libs/plplot</pkg> support</flag> |