public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sergey Torokhov" <torokhov-s-a@yandex.ru>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:dev commit in: x11-libs/gtk-fortran/
Date: Tue, 16 May 2023 21:42:38 +0000 (UTC)	[thread overview]
Message-ID: <1684273126.88cdd859cebb900126dc9d7551feea611dfcbcf8.SergeyTorokhov@gentoo> (raw)

commit:     88cdd859cebb900126dc9d7551feea611dfcbcf8
Author:     Sergey Torokhov <torokhov-s-a <AT> yandex <DOT> ru>
AuthorDate: Tue May 16 21:38:46 2023 +0000
Commit:     Sergey Torokhov <torokhov-s-a <AT> yandex <DOT> ru>
CommitDate: Tue May 16 21:38:46 2023 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=88cdd859

x11-libs/gtk-fortran: 4.4.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.4.0.ebuild | 71 +++++++++++++++++++++++++++
 2 files changed, 72 insertions(+)

diff --git a/x11-libs/gtk-fortran/Manifest b/x11-libs/gtk-fortran/Manifest
index f9174fd44..a0c103942 100644
--- a/x11-libs/gtk-fortran/Manifest
+++ b/x11-libs/gtk-fortran/Manifest
@@ -1,2 +1,3 @@
 DIST gtk-fortran-3.24.31.tar.gz 4287676 BLAKE2B 9fe3f83158ea504d492978ddd0b3a6d4aad5f5325df7c6ebbeb6d11ecb48d1097ee3c7b213c8824a5e4adb15da9af1da64c72b9089746dd0bb5d1d91dc76c766 SHA512 3d1a62837f4750b5c284a1548ede0ecfe8ad2f2619ca7ee2eb75e4cb7fcc739de90d67ff61d406b1f13fe0a2a9f1e23a1baa50afdc8caaaf1b3866e5640cb3f1
 DIST gtk-fortran-4.3.0.tar.gz 4270611 BLAKE2B 6ba22a45864dda40b14ab443fd3025f320e887c5d00158d790b5fcb6c6f4c5c74dca2ad5d147f931d459ab610102222c5440e668f623fc6ec88a590ccb83ff32 SHA512 0bd957c02956f74452c52a5e0fe9eadda997b88241fa69e6ee50ef58bd0d6156d73c9db49ff4eef384ff9b9a7e1824cfb26016e4d912002a7f3f92c69508369c
+DIST gtk-fortran-4.4.0.tar.gz 4442859 BLAKE2B de24779cc457d92fdcc5e7cc3e37dc3dd9f557b799e4186e6e03b1c39ce3520d3cc0896817810936644839491a9b0886ed77b60ba22cc30f1b31c4d66adcfe23 SHA512 c597875fe6163e82348b5464ad08fb11bfc9c4e64d04b49d47ccd9ef58ba0771db1ea201f1fc6265967b1689e29bc3bec1f089032b5111148ebe07a88a5f3c1b

diff --git a/x11-libs/gtk-fortran/gtk-fortran-4.4.0.ebuild b/x11-libs/gtk-fortran/gtk-fortran-4.4.0.ebuild
new file mode 100644
index 000000000..7a016cdfc
--- /dev/null
+++ b/x11-libs/gtk-fortran/gtk-fortran-4.4.0.ebuild
@@ -0,0 +1,71 @@
+# Copyright 1999-2023 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	other threads:[~2023-05-16 21:42 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-05-16 21:42 Sergey Torokhov [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-06-14 18:16 [gentoo-commits] repo/proj/guru:dev commit in: x11-libs/gtk-fortran/ Sergey Torokhov
2025-06-14 18:16 Sergey Torokhov
2025-06-14 18:16 Sergey Torokhov
2025-04-13 16:16 Sergey Torokhov
2025-04-13 16:16 Sergey Torokhov
2024-05-05 14:54 Sergey Torokhov
2024-05-05 14:54 Sergey Torokhov
2024-05-05 14:54 Sergey Torokhov
2023-09-12 13:34 Sergey Torokhov
2023-05-16 21:42 Sergey Torokhov
2022-12-03 16:26 Sergey Torokhov
2022-11-14 11:18 Sergey Torokhov
2022-10-29 22:30 Sergey Torokhov
2022-10-29 22:20 Sergey Torokhov
2021-10-29 19:14 Sergey Torokhov
2021-10-27  0:15 Sergey Torokhov
2021-10-27  0:15 Sergey Torokhov
2020-05-18 15:58 Sergey Torokhov
2020-04-13  1:49 Sergey Torokhov
2020-04-13  1:49 Sergey Torokhov
2020-04-12 10:14 Sergey Torokhov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1684273126.88cdd859cebb900126dc9d7551feea611dfcbcf8.SergeyTorokhov@gentoo \
    --to=torokhov-s-a@yandex.ru \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox