commit:     b3b111af7f620928875e674a420356dff8a96bd0
Author:     Sergey Torokhov <torokhov-s-a <AT> yandex <DOT> ru>
AuthorDate: Mon Nov 14 11:17:32 2022 +0000
Commit:     Sergey Torokhov <torokhov-s-a <AT> yandex <DOT> ru>
CommitDate: Mon Nov 14 11:17:32 2022 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=b3b111af

x11-lib/gtk-fortran: 4.3.0 version bump

Signed-off-by: Sergey Torokhov <torokhov-s-a <AT> yandex.ru>

 x11-libs/gtk-fortran/Manifest                 |  1 +
 x11-libs/gtk-fortran/gtk-fortran-4.3.0.ebuild | 71 +++++++++++++++++++++++++++
 2 files changed, 72 insertions(+)

diff --git a/x11-libs/gtk-fortran/Manifest b/x11-libs/gtk-fortran/Manifest
index a55470946..e7f5003fd 100644
--- a/x11-libs/gtk-fortran/Manifest
+++ b/x11-libs/gtk-fortran/Manifest
@@ -2,3 +2,4 @@ DIST gtk-fortran-3.24.30.tar.gz 4276622 BLAKE2B 
4b18d21e0479496caea386450fc16c12
 DIST gtk-fortran-3.24.31.tar.gz 4287676 BLAKE2B 
9fe3f83158ea504d492978ddd0b3a6d4aad5f5325df7c6ebbeb6d11ecb48d1097ee3c7b213c8824a5e4adb15da9af1da64c72b9089746dd0bb5d1d91dc76c766
 SHA512 
3d1a62837f4750b5c284a1548ede0ecfe8ad2f2619ca7ee2eb75e4cb7fcc739de90d67ff61d406b1f13fe0a2a9f1e23a1baa50afdc8caaaf1b3866e5640cb3f1
 DIST gtk-fortran-4.1.0.tar.gz 4100843 BLAKE2B 
c11658472c4f2ad9916f8f421f0d1c48b9ec7874e9e4075f2247e7cfb33ed69946e644aa9a460d63ff676c075b76caf4c70bd09532dda53b4d2035c88b3c1c61
 SHA512 
cd4628a56b2a03f7e958d4284c595b573ab84ac6c630cfae4f3ed13bb6d19a66246cb6adac8b05104f562406a467c03841cf350f8482e7e9f8fd596de4f4c873
 DIST gtk-fortran-4.2.1.tar.gz 4111001 BLAKE2B 
9cfeb8ef0fff6ab215cc421107ad643370d96ccfdfaac062af46e1793742d53ffcb11169db88a12711fea5309f2d339c2716be20e3e36fe3cc762864c611e732
 SHA512 
ea2650208f453e8292df1d4e05460b221146ff44e50513702eb5ad4b689d40f6bbd0935d1d617845e3927d25ff3f069a08032b89035d06e5ad688f7d281a2cd9
+DIST gtk-fortran-4.3.0.tar.gz 4270611 BLAKE2B 
6ba22a45864dda40b14ab443fd3025f320e887c5d00158d790b5fcb6c6f4c5c74dca2ad5d147f931d459ab610102222c5440e668f623fc6ec88a590ccb83ff32
 SHA512 
0bd957c02956f74452c52a5e0fe9eadda997b88241fa69e6ee50ef58bd0d6156d73c9db49ff4eef384ff9b9a7e1824cfb26016e4d912002a7f3f92c69508369c

diff --git a/x11-libs/gtk-fortran/gtk-fortran-4.3.0.ebuild 
b/x11-libs/gtk-fortran/gtk-fortran-4.3.0.ebuild
new file mode 100644
index 000000000..01663bcd6
--- /dev/null
+++ b/x11-libs/gtk-fortran/gtk-fortran-4.3.0.ebuild
@@ -0,0 +1,71 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+CMAKE_MAKEFILE_GENERATOR="emake"
+FORTRAN_STANDARD=2003
+VIRTUALX_REQUIRED="test"
+
+inherit cmake fortran-2 virtualx
+
+DESCRIPTION="A GTK+ binding to build Graphical User Interfaces in Fortran"
+HOMEPAGE="https://github.com/vmagnin/gtk-fortran";
+SRC_URI="https://github.com/vmagnin/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="4"
+KEYWORDS="~amd64 ~x86"
+
+IUSE="examples high-level plplot static-libs test"
+REQUIRED_USE="plplot? ( high-level )"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+       gui-libs/gtk:4
+       plplot? ( >=sci-libs/plplot-5.15.0[cairo,fortran] )
+"
+DEPEND="${RDEPEND}"
+BDEPEND="
+       virtual/fortran
+       virtual/pkgconfig
+"
+
+DOCS=( "README.md" "README-high-level.md" "CHANGELOG.md" )
+
+pkg_setup() {
+       fortran-2_pkg_setup
+}
+
+src_prepare() {
+       default
+       # Fix library installation path, disable 'sketcher' build, pass LDFLAGS
+       sed -i -e "s:CMAKE_INSTALL_LIBDIR lib:CMAKE_INSTALL_LIBDIR 
$(get_libdir):" \
+               -e "s:    add_subdirectory(sketcher)::" \
+               -e 's:"-rdynamic":"-rdynamic '"${LDFLAGS}"'":' CMakeLists.txt 
|| die
+
+       cmake_src_prepare
+}
+
+src_configure() {
+       mycmakeargs+=(
+               -DEXCLUDE_PLPLOT=$(usex plplot false true)
+               -DNO_BUILD_HL=$(usex high-level false true)
+               -DINSTALL_EXAMPLES=$(usex examples)
+               -DNO_BUILD_EXAMPLES=true
+       )
+       cmake_src_configure
+}
+
+src_test() {
+       virtx cmake_src_test
+}
+
+src_install() {
+       cmake_src_install
+
+       # Remove static library here as it's used to build additional tools
+       if use !static-libs ; then
+               rm "${ED}/usr/$(get_libdir)/libgtk-${SLOT}-fortran.a" || die
+       fi
+}

Reply via email to