diff options
author | Brahmajit Das <brahmajit.xyz@gmail.com> | 2023-06-29 19:10:43 +0000 |
---|---|---|
committer | Joonas Niilola <juippis@gentoo.org> | 2023-07-24 09:30:57 +0300 |
commit | 26595685e8adf66589c45923d3cee362b19a5876 (patch) | |
tree | e7341dd731059b0096654facebd45747f069ad5b /app-admin | |
parent | media-sound/ncspot: drop 0.13.3 (diff) | |
download | gentoo-26595685e8adf66589c45923d3cee362b19a5876.tar.gz gentoo-26595685e8adf66589c45923d3cee362b19a5876.tar.bz2 gentoo-26595685e8adf66589c45923d3cee362b19a5876.zip |
app-admin/gtkdiskfree: Fix call to undeclared function setlocale
Closes: https://bugs.gentoo.org/894204
Signed-off-by: Brahmajit Das <brahmajit.xyz@gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/31671
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'app-admin')
-rw-r--r-- | app-admin/gtkdiskfree/files/gtkdiskfree-2.0.4-musl-setlocale.patch | 11 | ||||
-rw-r--r-- | app-admin/gtkdiskfree/gtkdiskfree-2.0.4_p20200224-r1.ebuild | 37 |
2 files changed, 48 insertions, 0 deletions
diff --git a/app-admin/gtkdiskfree/files/gtkdiskfree-2.0.4-musl-setlocale.patch b/app-admin/gtkdiskfree/files/gtkdiskfree-2.0.4-musl-setlocale.patch new file mode 100644 index 000000000000..9542324599e2 --- /dev/null +++ b/app-admin/gtkdiskfree/files/gtkdiskfree-2.0.4-musl-setlocale.patch @@ -0,0 +1,11 @@ +Bug: https://bugs.gentoo.org/894204 +--- a/src/main.c ++++ b/src/main.c +@@ -17,6 +17,7 @@ + along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 + USA */ ++#include <locale.h> + + #include "configure.h" + #include "interface.h" diff --git a/app-admin/gtkdiskfree/gtkdiskfree-2.0.4_p20200224-r1.ebuild b/app-admin/gtkdiskfree/gtkdiskfree-2.0.4_p20200224-r1.ebuild new file mode 100644 index 000000000000..5c81578f7566 --- /dev/null +++ b/app-admin/gtkdiskfree/gtkdiskfree-2.0.4_p20200224-r1.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +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" + +DEPEND=" + dev-libs/glib + x11-libs/cairo + x11-libs/gdk-pixbuf + gtk2? ( x11-libs/gtk+:2 ) + !gtk2? ( x11-libs/gtk+:3 )" +RDEPEND="${DEPEND}" +BDEPEND="sys-devel/gettext + virtual/pkgconfig" + +PATCHES=( + "${FILESDIR}"/${PN}-2.0.4-musl-setlocale.patch +) + +src_configure() { + if use gtk2 ; then + econf $(use_with gtk2) + else + econf --enable-old-color-selector + fi +} |