pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/x11/tint2



Module Name:    pkgsrc
Committed By:   wiz
Date:           Fri Mar 28 09:26:24 UTC 2025

Modified Files:
        pkgsrc/x11/tint2: Makefile distinfo
Added Files:
        pkgsrc/x11/tint2/patches: patch-src_launcher_apps-common.c
            patch-src_launcher_icon-theme-common.c

Log Message:
x11/tint2: fix to find pathes of icons and aplications

Use devel/cmake/build.mk instead of USE_CMAKE

Bump PKGREVISION.

>From Robert Bagdan via wip.


To generate a diff of this commit:
cvs rdiff -u -r1.85 -r1.86 pkgsrc/x11/tint2/Makefile
cvs rdiff -u -r1.15 -r1.16 pkgsrc/x11/tint2/distinfo
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/x11/tint2/patches/patch-src_launcher_apps-common.c \
    pkgsrc/x11/tint2/patches/patch-src_launcher_icon-theme-common.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/x11/tint2/Makefile
diff -u pkgsrc/x11/tint2/Makefile:1.85 pkgsrc/x11/tint2/Makefile:1.86
--- pkgsrc/x11/tint2/Makefile:1.85      Wed Jan  8 15:58:20 2025
+++ pkgsrc/x11/tint2/Makefile   Fri Mar 28 09:26:23 2025
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.85 2025/01/08 15:58:20 tnn Exp $
+# $NetBSD: Makefile,v 1.86 2025/03/28 09:26:23 wiz Exp $
 
 DISTNAME=              tint2-v17.0.2
 PKGNAME=               ${DISTNAME:S/-v/-/}
-PKGREVISION=           19
+PKGREVISION=           20
 CATEGORIES=            x11
 MASTER_SITES=          ${MASTER_SITE_GITLAB:=o9000/}
 GITLAB_PROJECT=                tint2
@@ -16,7 +16,6 @@ LICENSE=              gnu-gpl-v2
 
 # XXX CMake. pkg does not really need c++
 USE_LANGUAGES=         c c++
-USE_CMAKE=             yes
 USE_LIBTOOL=           yes
 USE_TOOLS+=            msgfmt msgmerge pkg-config
 
@@ -37,11 +36,18 @@ CFLAGS.SunOS+=              -Du_int8_t=uint8_t -Du_i
 # For sqrt(3). Needed on at least Linux and should be harmless elsewhere.
 LDFLAGS+=              -lm
 
+SUBST_CLASSES+=                path
+SUBST_STAGE.path=      pre-configure
+SUBST_MESSAGE.path=    Fixing pathes
+SUBST_FILES.path+=     src/launcher/apps-common.c
+SUBST_FILES.path+=     src/launcher/icon-theme-common.c
+SUBST_VARS.path+=      PREFIX
+
 post-install:
        ${INSTALL_DATA} ${WRKSRC}/themes/tint2rc \
                ${DESTDIR}${PREFIX}/share/examples/tint2
 
-.include "../../devel/cmake/buildlink3.mk"
+.include "../../devel/cmake/build.mk"
 .include "../../graphics/hicolor-icon-theme/buildlink3.mk"
 .include "../../graphics/imlib2/buildlink3.mk"
 .include "../../graphics/librsvg/buildlink3.mk"

Index: pkgsrc/x11/tint2/distinfo
diff -u pkgsrc/x11/tint2/distinfo:1.15 pkgsrc/x11/tint2/distinfo:1.16
--- pkgsrc/x11/tint2/distinfo:1.15      Tue Apr 12 13:49:38 2022
+++ pkgsrc/x11/tint2/distinfo   Fri Mar 28 09:26:23 2025
@@ -1,9 +1,11 @@
-$NetBSD: distinfo,v 1.15 2022/04/12 13:49:38 tnn Exp $
+$NetBSD: distinfo,v 1.16 2025/03/28 09:26:23 wiz Exp $
 
 BLAKE2s (tint2-v17.0.2.tar.bz2) = dac47c5d25014eec0854b22a28ce3417c0dbf15f031c26bcde312401e1708693
 SHA512 (tint2-v17.0.2.tar.bz2) = 2b309fd1ab01e5176cc95e0651f28224b158c2bafd58cfff19840b0f8e880e9f4dcefeff32bc66d5fac11d932d4ee668ea7ddd7bab860f9edcfcdb7074e0e0ed
 Size (tint2-v17.0.2.tar.bz2) = 405654 bytes
 SHA1 (patch-aa) = fdf0fe697ceb576068b0873532ac406b59752370
+SHA1 (patch-src_launcher_apps-common.c) = 4d67e44112f704a3e50c8b0b88f18313df0caa73
+SHA1 (patch-src_launcher_icon-theme-common.c) = 4584ab6e12f69d55fbb708c127e8ce125e752034
 SHA1 (patch-src_util_area.c) = 93a56ee62af285d7ececc44b69bde623626b6b85
 SHA1 (patch-src_util_bt.c) = 7b4007a67f20a5fa42b7667ace28f1bf0dc241be
 SHA1 (patch-src_util_common.c) = 66808606e9ab5f138107ac41cfd4f8bd6340baa4

Added files:

Index: pkgsrc/x11/tint2/patches/patch-src_launcher_apps-common.c
diff -u /dev/null pkgsrc/x11/tint2/patches/patch-src_launcher_apps-common.c:1.1
--- /dev/null   Fri Mar 28 09:26:24 2025
+++ pkgsrc/x11/tint2/patches/patch-src_launcher_apps-common.c   Fri Mar 28 09:26:24 2025
@@ -0,0 +1,14 @@
+$NetBSD: patch-src_launcher_apps-common.c,v 1.1 2025/03/28 09:26:24 wiz Exp $
+
+* Add applications path of pkgsrc
+
+--- src/launcher/apps-common.c.orig    2025-02-05 09:47:18.883124706 +0000
++++ src/launcher/apps-common.c
+@@ -317,6 +317,7 @@ const GSList *get_apps_locations()
+     apps_locations = load_locations_from_env(apps_locations, "XDG_DATA_DIRS", "applications", NULL);
+ 
+     apps_locations = g_slist_append(apps_locations, g_strdup("/usr/local/share/applications"));
++    apps_locations = g_slist_append(apps_locations, g_strdup("@PREFIX@/share/applications"));
+     apps_locations = g_slist_append(apps_locations, g_strdup("/usr/share/applications"));
+     apps_locations = g_slist_append(apps_locations, g_strdup("/opt/share/applications"));
+ 
Index: pkgsrc/x11/tint2/patches/patch-src_launcher_icon-theme-common.c
diff -u /dev/null pkgsrc/x11/tint2/patches/patch-src_launcher_icon-theme-common.c:1.1
--- /dev/null   Fri Mar 28 09:26:24 2025
+++ pkgsrc/x11/tint2/patches/patch-src_launcher_icon-theme-common.c     Fri Mar 28 09:26:24 2025
@@ -0,0 +1,26 @@
+$NetBSD: patch-src_launcher_icon-theme-common.c,v 1.1 2025/03/28 09:26:24 wiz Exp $
+
+* Add icons path of pkgsrc, fix env based pathes
+
+--- src/launcher/icon-theme-common.c.orig      2025-02-05 09:47:41.534572814 +0000
++++ src/launcher/icon-theme-common.c
+@@ -55,15 +55,17 @@ const GSList *get_icon_locations()
+     if (icon_locations)
+         return icon_locations;
+ 
+-    icon_locations = load_locations_from_env(icon_locations, "XDG_DATA_HOME", ".icons", NULL);
++    icon_locations = load_locations_from_env(icon_locations, "XDG_DATA_HOME", "icons", NULL);
+ 
+     icon_locations = g_slist_append(icon_locations, g_build_filename(g_get_home_dir(), ".icons", NULL));
+     icon_locations = g_slist_append(icon_locations, g_build_filename(g_get_home_dir(), ".local/share/icons", NULL));
+ 
+-    icon_locations = load_locations_from_env(icon_locations, "XDG_DATA_DIRS", ".icons", ".pixmaps", NULL);
++    icon_locations = load_locations_from_env(icon_locations, "XDG_DATA_DIRS", "icons", "pixmaps", NULL);
+ 
+     icon_locations = g_slist_append(icon_locations, g_strdup("/usr/local/share/icons"));
+     icon_locations = g_slist_append(icon_locations, g_strdup("/usr/local/share/pixmaps"));
++    icon_locations = g_slist_append(icon_locations, g_strdup("@PREFIX@/share/icons"));
++    icon_locations = g_slist_append(icon_locations, g_strdup("@PREFIX@/share/pixmaps"));
+     icon_locations = g_slist_append(icon_locations, g_strdup("/usr/share/icons"));
+     icon_locations = g_slist_append(icon_locations, g_strdup("/usr/share/pixmaps"));
+     icon_locations = g_slist_append(icon_locations, g_strdup("/opt/share/icons"));



Home | Main Index | Thread Index | Old Index