commit: 2f719e9dda10dc281459a3ae8a1898a5a92c630c Author: NHOrus <jy6x2b32pie9 <AT> yahoo <DOT> com> AuthorDate: Wed Jan 15 17:44:19 2025 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Mon Feb 10 09:26:45 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2f719e9d
sci-chemistry/gperiodic: update EAPI 7 -> 8, incompatible pointer types Fix compilation problem with GCC-15 Bug: https://bugs.gentoo.org/919213 Signed-off-by: NHOrus <jy6x2b32pie9 <AT> yahoo.com> Closes: https://github.com/gentoo/gentoo/pull/40148 Signed-off-by: Sam James <sam <AT> gentoo.org> .../gperiodic-3.0.3-incompatible-pointers.patch | 13 ++++++ sci-chemistry/gperiodic/gperiodic-3.0.3-r1.ebuild | 47 ++++++++++++++++++++++ 2 files changed, 60 insertions(+) diff --git a/sci-chemistry/gperiodic/files/gperiodic-3.0.3-incompatible-pointers.patch b/sci-chemistry/gperiodic/files/gperiodic-3.0.3-incompatible-pointers.patch new file mode 100644 index 000000000000..b156532e9b54 --- /dev/null +++ b/sci-chemistry/gperiodic/files/gperiodic-3.0.3-incompatible-pointers.patch @@ -0,0 +1,13 @@ +https://bugs.gentoo.org/919213 +Cast pointer as it is cast everywhere around it +--- a/gperiodic.c ++++ b/gperiodic.c +@@ -137,7 +137,7 @@ + if (col == 0) gtk_label_set_markup (GTK_LABEL (label), _(header.info[row])); + else { + gtk_label_set_markup (GTK_LABEL (label), _(entry->info[row])); +- gtk_label_set_selectable (label, TRUE); ++ gtk_label_set_selectable (GTK_LABEL (label), TRUE); + } + + gtk_misc_set_alignment(GTK_MISC(label), 0, 0); diff --git a/sci-chemistry/gperiodic/gperiodic-3.0.3-r1.ebuild b/sci-chemistry/gperiodic/gperiodic-3.0.3-r1.ebuild new file mode 100644 index 000000000000..6856fce733d8 --- /dev/null +++ b/sci-chemistry/gperiodic/gperiodic-3.0.3-r1.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit toolchain-funcs xdg-utils + +DESCRIPTION="Periodic table application for Linux" +HOMEPAGE="https://sourceforge.net/projects/gperiodic/" +SRC_URI="https://downloads.sourceforge.net/project/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="nls" + +BDEPEND=" + virtual/pkgconfig + nls? ( sys-devel/gettext )" +RDEPEND=" + sys-libs/ncurses:0 + x11-libs/gtk+:2 + x11-libs/cairo[X]" +DEPEND="${RDEPEND}" + +PATCHES=( "${FILESDIR}/${P}-incompatible-pointers.patch" ) + +src_compile() { + emake \ + CFLAGS="${CFLAGS}" \ + LDFLAGS="${LDFLAGS}" \ + CC="$(tc-getCC)" "enable_nls=$(usex nls 1 0)" +} + +src_install() { + emake DESTDIR="${D}" "enable_nls=$(usex nls 1 0)" install + dodoc AUTHORS ChangeLog README + newdoc po/README README.translation +} + +pkg_postinst() { + xdg_icon_cache_update +} + +pkg_postrm() { + xdg_icon_cache_update +}
