pkgsrc-WIP-changes archive

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

Import x11/tint2



Module Name:	pkgsrc-wip
Committed By:	kikadf <kikadf.01%gmail.com@localhost>
Pushed By:	kikadf
Date:		Mon Feb 3 18:02:39 2025 +0100
Changeset:	8321429fc2d68a743712cb61da19faa0cb55f60a

Modified Files:
	Makefile
Added Files:
	tint2/DESCR
	tint2/Makefile
	tint2/PLIST
	tint2/distinfo
	tint2/patches/patch-aa
	tint2/patches/patch-src_util_area.c
	tint2/patches/patch-src_util_bt.c
	tint2/patches/patch-src_util_common.c
	tint2/patches/patch-src_util_gradient.c
	tint2/patches/patch-src_util_timer.c

Log Message:
Import x11/tint2

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=8321429fc2d68a743712cb61da19faa0cb55f60a

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

diffstat:
 Makefile                                |  1 +
 tint2/DESCR                             | 16 ++++++++++
 tint2/Makefile                          | 55 +++++++++++++++++++++++++++++++++
 tint2/PLIST                             | 39 +++++++++++++++++++++++
 tint2/distinfo                          | 11 +++++++
 tint2/patches/patch-aa                  | 15 +++++++++
 tint2/patches/patch-src_util_area.c     | 14 +++++++++
 tint2/patches/patch-src_util_bt.c       | 14 +++++++++
 tint2/patches/patch-src_util_common.c   | 14 +++++++++
 tint2/patches/patch-src_util_gradient.c | 14 +++++++++
 tint2/patches/patch-src_util_timer.c    | 23 ++++++++++++++
 11 files changed, 216 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index bbc03a0402..60c990b24b 100644
--- a/Makefile
+++ b/Makefile
@@ -5648,6 +5648,7 @@ SUBDIR+=	tilix
 SUBDIR+=	timescaledb-tune
 SUBDIR+=	timewarrior
 SUBDIR+=	timg
+SUBDIR+=	tint2
 SUBDIR+=	tintin++
 SUBDIR+=	tinyca2
 SUBDIR+=	tinycobol
diff --git a/tint2/DESCR b/tint2/DESCR
new file mode 100644
index 0000000000..1b5cc824b2
--- /dev/null
+++ b/tint2/DESCR
@@ -0,0 +1,16 @@
+Tint2 is a simple panel/taskbar intentionally made for openbox3, but which
+should also work with other window managers.
+
+The goal is to keep a clean and non-intrusive look with code that is
+lightweight and in compliance with freedesktop specifications.
+
+Tint2 taskbar features:
+
+    * color/transparency on font, icon, border and background
+    * customize mouse event
+    * drag and drop task between desktop and switch desktop
+
+Tint2 panel features:
+
+    * clock with font, color and transparency
+    * multi-monitor: panel position adjust to monitor, taskbar by monitor
diff --git a/tint2/Makefile b/tint2/Makefile
new file mode 100644
index 0000000000..7ad72ec9b2
--- /dev/null
+++ b/tint2/Makefile
@@ -0,0 +1,55 @@
+# $NetBSD: Makefile,v 1.85 2025/01/08 15:58:20 tnn Exp $
+
+DISTNAME=		tint2-v17.0.2
+PKGNAME=		${DISTNAME:S/-v/-/}
+PKGREVISION=		19
+CATEGORIES=		x11
+MASTER_SITES=		${MASTER_SITE_GITLAB:=o9000/}
+GITLAB_PROJECT=		tint2
+GITLAB_RELEASE=		v${PKGVERSION_NOREV}
+EXTRACT_SUFX=		.tar.bz2
+
+MAINTAINER=		fernandotcl%gmail.com@localhost
+HOMEPAGE=		https://gitlab.com/o9000/tint2
+COMMENT=		Lightweight panel/taskbar for X11
+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
+
+# error: 'for' loop initial declarations are only allowed in C99 mode
+FORCE_C_STD=		c99
+
+INSTALLATION_DIRS=	share/examples/tint2
+OWN_DIRS=		${PKG_SYSCONFDIR}/xdg/tint2
+CONF_FILES=		${PREFIX}/share/examples/tint2/tint2rc \
+			${PKG_SYSCONFDIR}/xdg/tint2/tint2rc
+
+CMAKE_CONFIGURE_ARGS.Linux=	-DENABLE_BATTERY=ON
+CMAKE_CONFIGURE_ARGS.*=		-DENABLE_BATTERY=OFF
+
+CFLAGS.SunOS+=		-D_XOPEN_SOURCE=600 -D__EXTENSIONS__
+CFLAGS.SunOS+=		-Du_int8_t=uint8_t -Du_int32_t=uint32_t -Du_int64_t=uint64_t
+
+# For sqrt(3). Needed on at least Linux and should be harmless elsewhere.
+LDFLAGS+=		-lm
+
+post-install:
+	${INSTALL_DATA} ${WRKSRC}/themes/tint2rc \
+		${DESTDIR}${PREFIX}/share/examples/tint2
+
+.include "../../devel/cmake/buildlink3.mk"
+.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
+.include "../../graphics/imlib2/buildlink3.mk"
+.include "../../graphics/librsvg/buildlink3.mk"
+.include "../../sysutils/desktop-file-utils/desktopdb.mk"
+.include "../../x11/gtk3/buildlink3.mk"
+.include "../../x11/libXcomposite/buildlink3.mk"
+.include "../../x11/libXdamage/buildlink3.mk"
+.include "../../x11/libXinerama/buildlink3.mk"
+.include "../../x11/libXrandr/buildlink3.mk"
+.include "../../x11/startup-notification/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/tint2/PLIST b/tint2/PLIST
new file mode 100644
index 0000000000..017b1ee279
--- /dev/null
+++ b/tint2/PLIST
@@ -0,0 +1,39 @@
+@comment $NetBSD: PLIST,v 1.5 2019/01/02 15:35:12 tnn Exp $
+bin/tint2
+bin/tint2conf
+man/man1/tint2.1
+share/applications/tint2.desktop
+share/applications/tint2conf.desktop
+share/doc/tint2/AUTHORS
+share/doc/tint2/ChangeLog
+share/doc/tint2/README.md
+share/doc/tint2/html/images/panel_padding.jpg
+share/doc/tint2/html/images/panel_size_margin.jpg
+share/doc/tint2/html/images/task_padding.jpg
+share/doc/tint2/html/images/taskbar_padding.jpg
+share/doc/tint2/html/manual.html
+share/doc/tint2/html/readme.html
+share/doc/tint2/tint2.md
+share/examples/tint2/tint2rc
+share/icons/hicolor/scalable/apps/tint2.svg
+share/icons/hicolor/scalable/apps/tint2conf.svg
+share/locale/bs/LC_MESSAGES/tint2conf.mo
+share/locale/es/LC_MESSAGES/tint2conf.mo
+share/locale/fr/LC_MESSAGES/tint2conf.mo
+share/locale/hr/LC_MESSAGES/tint2conf.mo
+share/locale/pl/LC_MESSAGES/tint2conf.mo
+share/locale/ru/LC_MESSAGES/tint2conf.mo
+share/locale/sr/LC_MESSAGES/tint2conf.mo
+share/mime/packages/tint2conf.xml
+share/tint2/default_icon.png
+share/tint2/horizontal-dark-opaque.tint2rc
+share/tint2/horizontal-dark-transparent.tint2rc
+share/tint2/horizontal-icon-only.tint2rc
+share/tint2/horizontal-light-opaque.tint2rc
+share/tint2/horizontal-light-transparent.tint2rc
+share/tint2/horizontal-text-only.tint2rc
+share/tint2/vertical-dark-opaque.tint2rc
+share/tint2/vertical-dark-transparent.tint2rc
+share/tint2/vertical-light-opaque.tint2rc
+share/tint2/vertical-light-transparent.tint2rc
+share/tint2/vertical-neutral-icons.tint2rc
diff --git a/tint2/distinfo b/tint2/distinfo
new file mode 100644
index 0000000000..15984f47f3
--- /dev/null
+++ b/tint2/distinfo
@@ -0,0 +1,11 @@
+$NetBSD: distinfo,v 1.15 2022/04/12 13:49:38 tnn 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_util_area.c) = 93a56ee62af285d7ececc44b69bde623626b6b85
+SHA1 (patch-src_util_bt.c) = 7b4007a67f20a5fa42b7667ace28f1bf0dc241be
+SHA1 (patch-src_util_common.c) = 66808606e9ab5f138107ac41cfd4f8bd6340baa4
+SHA1 (patch-src_util_gradient.c) = aa245b1c2cff66a34ef70edcc9648d37fb9a72e5
+SHA1 (patch-src_util_timer.c) = 9e6d47957428d1420b9574bf82f8e1ad1f57b11f
diff --git a/tint2/patches/patch-aa b/tint2/patches/patch-aa
new file mode 100644
index 0000000000..c758ff1ce3
--- /dev/null
+++ b/tint2/patches/patch-aa
@@ -0,0 +1,15 @@
+$NetBSD: patch-aa,v 1.5 2019/01/02 15:35:12 tnn Exp $
+
+handle config file
+
+--- CMakeLists.txt.orig	2018-08-05 21:27:23.000000000 +0000
++++ CMakeLists.txt
+@@ -289,7 +289,7 @@ set_target_properties( tint2 PROPERTIES 
+ install( TARGETS tint2 DESTINATION bin )
+ install( FILES tint2.svg DESTINATION ${CMAKE_INSTALL_DATADIR}/icons/hicolor/scalable/apps )
+ install( FILES tint2.desktop DESTINATION ${CMAKE_INSTALL_DATADIR}/applications )
+-install( FILES themes/tint2rc DESTINATION ${CMAKE_INSTALL_FULL_SYSCONFDIR}/xdg/tint2 )
++#install( FILES themes/tint2rc DESTINATION ${CMAKE_INSTALL_FULL_SYSCONFDIR}/xdg/tint2 )
+ install( FILES default_icon.png DESTINATION ${CMAKE_INSTALL_DATADIR}/tint2 )
+ install( FILES AUTHORS ChangeLog README.md doc/tint2.md DESTINATION ${docdir} )
+ install( FILES doc/manual.html doc/readme.html DESTINATION ${htmldir} )
diff --git a/tint2/patches/patch-src_util_area.c b/tint2/patches/patch-src_util_area.c
new file mode 100644
index 0000000000..819d328be0
--- /dev/null
+++ b/tint2/patches/patch-src_util_area.c
@@ -0,0 +1,14 @@
+$NetBSD: patch-src_util_area.c,v 1.1 2022/04/12 13:49:38 tnn Exp $
+
+for bzero(3) on SunOS
+
+--- src/util/area.c.orig	2021-12-04 09:46:45.000000000 +0000
++++ src/util/area.c
+@@ -26,6 +26,7 @@
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <string.h>
++#include <strings.h>
+ #include <pango/pangocairo.h>
+ 
+ #include "area.h"
diff --git a/tint2/patches/patch-src_util_bt.c b/tint2/patches/patch-src_util_bt.c
new file mode 100644
index 0000000000..ab2a0ab00f
--- /dev/null
+++ b/tint2/patches/patch-src_util_bt.c
@@ -0,0 +1,14 @@
+$NetBSD: patch-src_util_bt.c,v 1.1 2022/04/12 13:45:58 tnn Exp $
+
+for bzero(3) on SunOS
+
+--- src/util/bt.c.orig	2021-12-04 09:46:45.000000000 +0000
++++ src/util/bt.c
+@@ -21,6 +21,7 @@
+ #include <stdint.h>
+ #include <stdlib.h>
+ #include <string.h>
++#include <strings.h>
+ #include <sys/types.h>
+ #include <unistd.h>
+ #include <stdio.h>
diff --git a/tint2/patches/patch-src_util_common.c b/tint2/patches/patch-src_util_common.c
new file mode 100644
index 0000000000..f759a39752
--- /dev/null
+++ b/tint2/patches/patch-src_util_common.c
@@ -0,0 +1,14 @@
+$NetBSD: patch-src_util_common.c,v 1.1 2022/04/12 13:45:58 tnn Exp $
+
+for bzero(3) on SunOS
+
+--- src/util/common.c.orig	2021-12-04 09:46:45.000000000 +0000
++++ src/util/common.c
+@@ -26,6 +26,7 @@
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <string.h>
++#include <strings.h>
+ #include <math.h>
+ #include <unistd.h>
+ #include <glib.h>
diff --git a/tint2/patches/patch-src_util_gradient.c b/tint2/patches/patch-src_util_gradient.c
new file mode 100644
index 0000000000..a48173b1b4
--- /dev/null
+++ b/tint2/patches/patch-src_util_gradient.c
@@ -0,0 +1,14 @@
+$NetBSD: patch-src_util_gradient.c,v 1.1 2022/04/12 13:45:58 tnn Exp $
+
+for bzero(3) on SunOS
+
+--- src/util/gradient.c.orig	2021-12-04 09:46:45.000000000 +0000
++++ src/util/gradient.c
+@@ -3,6 +3,7 @@
+ #include <glib.h>
+ #include <stdlib.h>
+ #include <string.h>
++#include <strings.h>
+ 
+ #include "common.h"
+ 
diff --git a/tint2/patches/patch-src_util_timer.c b/tint2/patches/patch-src_util_timer.c
new file mode 100644
index 0000000000..f27cb81e19
--- /dev/null
+++ b/tint2/patches/patch-src_util_timer.c
@@ -0,0 +1,23 @@
+$NetBSD: patch-src_util_timer.c,v 1.1 2022/04/12 13:45:58 tnn Exp $
+
+for bzero(3) on SunOS
+
+--- src/util/timer.c.orig	2021-12-04 09:46:45.000000000 +0000
++++ src/util/timer.c
+@@ -20,6 +20,7 @@
+ #include <stdlib.h>
+ #include <stdio.h>
+ #include <string.h>
++#include <strings.h>
+ 
+ #include "colors.h"
+ #include "timer.h"
+@@ -52,7 +53,7 @@ void init_timer(Timer *timer, const char
+     if (debug_timers)
+         fprintf(stderr, "tint2: timers: %s: %s, %p\n", __FUNCTION__, name, (void *)timer);
+     bzero(timer, sizeof(*timer));
+-    strncpy(timer->name_, name, sizeof(timer->name_));
++    strncpy(timer->name_, name, sizeof(timer->name_) - 1);
+     if (!g_list_find(timers, timer)) {
+         timers = g_list_append(timers, timer);
+     }


Home | Main Index | Thread Index | Old Index