diff options
author | Brahmajit Das <brahmajit.xyz@gmail.com> | 2024-05-05 15:32:27 +0530 |
---|---|---|
committer | Joonas Niilola <juippis@gentoo.org> | 2024-06-02 11:13:29 +0300 |
commit | e51bedfe43678f683f5d807c977d652eae818c46 (patch) | |
tree | 0ffdddc344a5c4243a3af7b64165b1138130195e /app-admin/gtkdiskfree | |
parent | x11-misc/spacefm: add missing xorg-proto bdep (diff) | |
download | gentoo-e51bedfe43678f683f5d807c977d652eae818c46.tar.gz gentoo-e51bedfe43678f683f5d807c977d652eae818c46.tar.bz2 gentoo-e51bedfe43678f683f5d807c977d652eae818c46.zip |
app-admin/gtkdiskfree: Fix passing of incompatible pointer type
And update EAPI 7 -> 8
Closes: https://bugs.gentoo.org/923113
Signed-off-by: Brahmajit Das <brahmajit.xyz@gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/36559
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'app-admin/gtkdiskfree')
-rw-r--r-- | app-admin/gtkdiskfree/files/gtkdiskfree-2.0.4-use-const-data-for-icon.patch | 18 | ||||
-rw-r--r-- | app-admin/gtkdiskfree/gtkdiskfree-2.0.4_p20200224-r2.ebuild | 39 |
2 files changed, 57 insertions, 0 deletions
diff --git a/app-admin/gtkdiskfree/files/gtkdiskfree-2.0.4-use-const-data-for-icon.patch b/app-admin/gtkdiskfree/files/gtkdiskfree-2.0.4-use-const-data-for-icon.patch new file mode 100644 index 000000000000..a1b99c946c73 --- /dev/null +++ b/app-admin/gtkdiskfree/files/gtkdiskfree-2.0.4-use-const-data-for-icon.patch @@ -0,0 +1,18 @@ +https://gitlab.com/listout/gtkdiskfree/-/commit/3e8d72c2e4115e1372edb81ae9e3a9cd682e9c48.patch +Bug: https://bugs.gentoo.org/923113 +From: Samuel Bauer <samuel.bauer@yahoo.fr> +Date: Tue, 8 Jun 2021 20:40:21 +0200 +Subject: [PATCH] Use const datas for icon + +--- a/src/icons/icon.xpm ++++ b/src/icons/icon.xpm +@@ -1,5 +1,5 @@ + /* XPM */ +-static char * icon_xpm[] = { ++const static char * icon_xpm[] = { + "48 48 592 2", + " c None", + ". c #C7C7C7", +-- +GitLab + diff --git a/app-admin/gtkdiskfree/gtkdiskfree-2.0.4_p20200224-r2.ebuild b/app-admin/gtkdiskfree/gtkdiskfree-2.0.4_p20200224-r2.ebuild new file mode 100644 index 000000000000..7b48a540eb7d --- /dev/null +++ b/app-admin/gtkdiskfree/gtkdiskfree-2.0.4_p20200224-r2.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DESCRIPTION="Graphical tool to show free disk space like df" +HOMEPAGE="https://gitlab.com/mazes_80/gtkdiskfree" +COMMIT="bdda379b9109a226a37801505a19da91494144a6" +SRC_URI="https://gitlab.com/mazes_80/${PN}/-/archive/${COMMIT}/${PN}-${COMMIT}.tar.gz" +S="${WORKDIR}/${PN}-${COMMIT}" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86" +IUSE="gtk2" + +RDEPEND=" + dev-libs/glib + x11-libs/cairo + x11-libs/gdk-pixbuf + gtk2? ( x11-libs/gtk+:2 ) + !gtk2? ( x11-libs/gtk+:3 )" +DEPEND="${RDEPEND} + x11-base/xorg-proto" +BDEPEND="sys-devel/gettext + virtual/pkgconfig" + +PATCHES=( + "${FILESDIR}"/${PN}-2.0.4-musl-setlocale.patch + "${FILESDIR}"/${PN}-2.0.4-use-const-data-for-icon.patch +) + +src_configure() { + if use gtk2 ; then + econf $(use_with gtk2) + else + econf --enable-old-color-selector + fi +} |