summaryrefslogtreecommitdiff
path: root/x11-misc/pcmanfm
diff options
context:
space:
mode:
Diffstat (limited to 'x11-misc/pcmanfm')
-rw-r--r--x11-misc/pcmanfm/Manifest2
-rw-r--r--x11-misc/pcmanfm/files/pcmanfm-1.3.2-c99.patch31
-rw-r--r--x11-misc/pcmanfm/pcmanfm-1.3.2-r2.ebuild62
3 files changed, 95 insertions, 0 deletions
diff --git a/x11-misc/pcmanfm/Manifest b/x11-misc/pcmanfm/Manifest
index b06b6600a7d2..481e49d81bf9 100644
--- a/x11-misc/pcmanfm/Manifest
+++ b/x11-misc/pcmanfm/Manifest
@@ -1,3 +1,5 @@
+AUX pcmanfm-1.3.2-c99.patch 1139 BLAKE2B 8102466c6a57229342135e6d41a1b6fbedff5180fb592054067d2f1b2ef9c100a76f2bffb677653964791b3a7d61e41e8a8b5106854d40af5fc44747f7624c9e SHA512 0cf32e780b8cdef8270dc22d33c6926beb92f97f7eb0dd5bed94cbb3150c1ce1824969c1b2fb47da93f2d447b8d0375594933704d99f5feb18dd4af5b8dc698a
DIST pcmanfm-1.3.2.tar.xz 424236 BLAKE2B 7d13383cd2b61905bdf14b4b4df8c3d8043a340b597f4d43e40148f61451f82ad3ca36c4c199d81a41dc7e07dde6ed5832aeff985112fae352bc49e873bb67a0 SHA512 bcca1af20500e7a84ebfe5f1efd5a1a2945d32ad3ea5fa945ad908794c56614bd85921fac1e7a3b2fc5ef82267d5d3ffc5ad7065e9878a920dd578cb830776c9
EBUILD pcmanfm-1.3.2-r1.ebuild 1205 BLAKE2B 165d659d94f650330729d83cc310ff3f36a6be9419c1784eecdfe2d4f611f75d87a793e202196b0bda7422bcea5b04b5eb2be39982ea1d76da01fc96da3512a0 SHA512 e4e37af2fbad7c69be46c6655353132dce45df40666b9ee604b16c7232af8e54a6766759249b46e96656dc9b78a1a0cb3742e10ac9eaaa8c84d6c8f54fce9ede
+EBUILD pcmanfm-1.3.2-r2.ebuild 1255 BLAKE2B a353832d8f484910a7a8dd0e54fb144068c5cd979ba76b10cd6bba360e11e07456f9a58588b847b2fe31689146d4a7475ee6c9c899f30c77d156db7d84e0de6e SHA512 25a31cc2bd2c95554b3d0d283a96376e33f752f3e6669ae5005a7c60a8d1266b86d3eaed901891cb7e260f7149a2bccfbea5c00cdd0b0375bc49a827d9486790
MISC metadata.xml 304 BLAKE2B 716fd79a09f1bff0d2fe4c37ba89a2b6eb49108acf253bf3ea7670e03b8f24f87445a02c49912d2d495cddeb3fd04f261ca30067c61b250e182f6da0eaa6f039 SHA512 2f4bf85442f8ff1e0a61ae8d2e15206467c21af80424d4f5682e21717adf8b6e0623cf781d66c51ee86187423e7b69fc1a083ae403c5dc1e988d5f9889d04d59
diff --git a/x11-misc/pcmanfm/files/pcmanfm-1.3.2-c99.patch b/x11-misc/pcmanfm/files/pcmanfm-1.3.2-c99.patch
new file mode 100644
index 000000000000..52337891d5d6
--- /dev/null
+++ b/x11-misc/pcmanfm/files/pcmanfm-1.3.2-c99.patch
@@ -0,0 +1,31 @@
+https://bugs.gentoo.org/919077
+https://github.com/lxde/pcmanfm/pull/17
+
+From 9bf5145eba45cd5e3b87d4f040618fe0ea69a81d Mon Sep 17 00:00:00 2001
+From: Mamoru TASAKA <mtasaka@fedoraproject.org>
+Date: Fri, 26 Jul 2024 12:13:32 +0900
+Subject: [PATCH] Fix build with gcc14 -Werror=incompatible-pointer-types
+
+gcc14 now defaults to gcc -Werror=incompatible-pointer-types .
+This commit adds required casts to different pointer types.
+--- a/src/desktop.c
++++ b/src/desktop.c
+@@ -1267,7 +1267,7 @@ static AtkObject *fm_desktop_accessible_ref_selection(AtkSelection *selection,
+ item = items->data;
+ if (item->item->is_selected)
+ if (i-- == 0)
+- return g_object_ref(item);
++ return (AtkObject *)g_object_ref(item);
+ }
+ return NULL;
+ }
+@@ -1454,7 +1454,7 @@ static AtkObject *fm_desktop_accessible_ref_child(AtkObject *accessible,
+ item = g_list_nth_data(priv->items, index);
+ if (!item)
+ return NULL;
+- return g_object_ref(item);
++ return (AtkObject *)g_object_ref(item);
+ }
+
+ static void fm_desktop_accessible_initialize(AtkObject *accessible, gpointer data)
+
diff --git a/x11-misc/pcmanfm/pcmanfm-1.3.2-r2.ebuild b/x11-misc/pcmanfm/pcmanfm-1.3.2-r2.ebuild
new file mode 100644
index 000000000000..27188a32160d
--- /dev/null
+++ b/x11-misc/pcmanfm/pcmanfm-1.3.2-r2.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+MY_P="${PN}-${PV/_/}"
+inherit xdg readme.gentoo-r1
+
+DESCRIPTION="Fast lightweight tabbed filemanager"
+HOMEPAGE="https://github.com/lxde/pcmanfm"
+SRC_URI="https://downloads.sourceforge.net/${PN}/${P}.tar.xz"
+S="${WORKDIR}"/${MY_P}
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~loong ~mips ~ppc ~riscv ~x86"
+IUSE="debug"
+
+RDEPEND="
+ dev-libs/atk
+ >=dev-libs/glib-2.18:2
+ >=lxde-base/menu-cache-1.1.0-r1
+ sys-apps/util-linux
+ virtual/freedesktop-icon-theme
+ x11-libs/cairo
+ x11-libs/gdk-pixbuf:2
+ x11-libs/gtk+:3
+ >=x11-libs/libfm-${PV}:=[gtk]
+ x11-libs/libX11
+ x11-libs/pango
+ x11-misc/shared-mime-info
+"
+DEPEND="${RDEPEND}"
+BDEPEND="
+ >=dev-util/intltool-0.40
+ sys-devel/gettext
+ virtual/pkgconfig
+"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-1.3.2-c99.patch
+)
+
+src_configure() {
+ econf \
+ --sysconfdir="${EPREFIX}"/etc \
+ --with-gtk=3 \
+ $(use_enable debug)
+}
+
+src_install() {
+ default
+
+ local DOC_CONTENTS="PCmanFM can optionally support the menu://applications/
+ location. You should install lxde-base/lxmenu-data for that functionality."
+ readme.gentoo_create_doc
+}
+
+pkg_postinst() {
+ xdg_pkg_postinst
+ readme.gentoo_print_elog
+}