Date: Sun, 15 Aug 2021 17:13:19 GMT From: Guido Falsi <madpilot@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: 9bee84be4e46 - main - x11/xfce4-docklike-plugin: Add new port Message-ID: <202108151713.17FHDJBZ098962@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by madpilot: URL: https://cgit.FreeBSD.org/ports/commit/?id=9bee84be4e46e59b7eaee39aced7fa0ed926a4c2 commit 9bee84be4e46e59b7eaee39aced7fa0ed926a4c2 Author: Quentin Baker <bsd@quentb.com> AuthorDate: 2021-08-15 17:10:45 +0000 Commit: Guido Falsi <madpilot@FreeBSD.org> CommitDate: 2021-08-15 17:12:28 +0000 x11/xfce4-docklike-plugin: Add new port This is a taskbar panel plugin for xfce4, designed to mimic the look and functionality of docks and application bars used in Windows and MacOS. It includes optional features like window previews and launcher pinning. WWW: https://gitlab.xfce.org/panel-plugins/xfce4-docklike-plugin PR: 257692 --- x11/Makefile | 1 + x11/xfce4-docklike-plugin/Makefile | 37 ++++++++++++++++++++++ x11/xfce4-docklike-plugin/distinfo | 3 ++ .../files/patch-src_Helpers.cpp | 11 +++++++ x11/xfce4-docklike-plugin/files/patch-src_Wnck.cpp | 20 ++++++++++++ x11/xfce4-docklike-plugin/pkg-descr | 6 ++++ x11/xfce4-docklike-plugin/pkg-plist | 14 ++++++++ 7 files changed, 92 insertions(+) diff --git a/x11/Makefile b/x11/Makefile index d2bf585ba526..6979e317bdef 100644 --- a/x11/Makefile +++ b/x11/Makefile @@ -458,6 +458,7 @@ SUBDIR += xfce4-clipman-plugin SUBDIR += xfce4-conf SUBDIR += xfce4-dashboard + SUBDIR += xfce4-docklike-plugin SUBDIR += xfce4-goodies SUBDIR += xfce4-screensaver SUBDIR += xfce4-screenshooter-plugin diff --git a/x11/xfce4-docklike-plugin/Makefile b/x11/xfce4-docklike-plugin/Makefile new file mode 100644 index 000000000000..117c2bad6a18 --- /dev/null +++ b/x11/xfce4-docklike-plugin/Makefile @@ -0,0 +1,37 @@ +PORTNAME= xfce4-docklike-plugin +PORTVERSION= 0.3.0 +DISTVERSIONPREFIX= v +CATEGORIES= x11 xfce + +MAINTAINER= bsd@quentb.com +COMMENT= Modern, minimalist taskbar for Xfce + +LICENSE= GPLv3 + +BUILD_DEPENDS= xdt-csource:devel/xfce4-dev-tools +LIB_DEPENDS= libinotify.so:devel/libinotify \ + libharfbuzz.so:print/harfbuzz + +USES= gettext-tools gmake gnome libtool pkgconfig xfce \ + xorg + +USE_GITLAB= yes +GL_SITE= https://gitlab.xfce.org/ +GL_ACCOUNT= panel-plugins +GL_COMMIT= 61d043bf4c34b97e68ddeea808a7c1d8d3f63061 + +GNU_CONFIGURE= yes +CONFIGURE_SCRIPT= autogen.sh +INSTALL_TARGET= install-strip +LDFLAGS+= -L${LOCALBASE}/lib -linotify + +USE_GNOME= cairo gdkpixbuf2 gtk30 intltool libwnck3 +USE_XFCE= panel +USE_XORG= x11 + +OPTIONS_DEFINE= NLS +OPTIONS_SUB= yes +NLS_USES= gettext-runtime +NLS_CONFIGURE_ENABLE= nls + +.include <bsd.port.mk> diff --git a/x11/xfce4-docklike-plugin/distinfo b/x11/xfce4-docklike-plugin/distinfo new file mode 100644 index 000000000000..631ec73b6620 --- /dev/null +++ b/x11/xfce4-docklike-plugin/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1628957552 +SHA256 (panel-plugins-xfce4-docklike-plugin-61d043bf4c34b97e68ddeea808a7c1d8d3f63061_GL0.tar.gz) = d698c010046909e6346bd1d4b2961a9b110e71410dfca39fe44cae3221e949f1 +SIZE (panel-plugins-xfce4-docklike-plugin-61d043bf4c34b97e68ddeea808a7c1d8d3f63061_GL0.tar.gz) = 41277 diff --git a/x11/xfce4-docklike-plugin/files/patch-src_Helpers.cpp b/x11/xfce4-docklike-plugin/files/patch-src_Helpers.cpp new file mode 100644 index 000000000000..738f66863335 --- /dev/null +++ b/x11/xfce4-docklike-plugin/files/patch-src_Helpers.cpp @@ -0,0 +1,11 @@ +--- src/Helpers.cpp.orig 2021-08-07 07:23:04 UTC ++++ src/Helpers.cpp +@@ -83,7 +83,7 @@ namespace Help + { + char buffer[1024]; + strcpy(buffer, str.c_str()); +- return basename(buffer); ++ return g_path_get_basename(buffer); + } + + std::string trim(const std::string str) diff --git a/x11/xfce4-docklike-plugin/files/patch-src_Wnck.cpp b/x11/xfce4-docklike-plugin/files/patch-src_Wnck.cpp new file mode 100644 index 000000000000..7a9c64116fd9 --- /dev/null +++ b/x11/xfce4-docklike-plugin/files/patch-src_Wnck.cpp @@ -0,0 +1,20 @@ +--- src/Wnck.cpp.orig 2021-08-07 07:23:13 UTC ++++ src/Wnck.cpp +@@ -35,7 +35,7 @@ namespace Wnck + int nbr = read(fd, buffer, 512); + ::close(fd); + +- char* exe = basename(buffer); ++ char* exe = g_path_get_basename(buffer); + if (strcmp(exe, "python") != 0) // ADDIT graphical interpreters here + return exe; + +@@ -44,7 +44,7 @@ namespace Wnck + ; + + if (it < buffer + nbr) +- return basename(it); ++ return g_path_get_basename(it); + } + + // fallback : return window's name diff --git a/x11/xfce4-docklike-plugin/pkg-descr b/x11/xfce4-docklike-plugin/pkg-descr new file mode 100644 index 000000000000..c320482bbe04 --- /dev/null +++ b/x11/xfce4-docklike-plugin/pkg-descr @@ -0,0 +1,6 @@ +This is a taskbar panel plugin for xfce4, designed to mimic the look +and functionality of docks and application bars used in Windows and +MacOS. It includes optional features like window previews and launcher +pinning. + +WWW: https://gitlab.xfce.org/panel-plugins/xfce4-docklike-plugin diff --git a/x11/xfce4-docklike-plugin/pkg-plist b/x11/xfce4-docklike-plugin/pkg-plist new file mode 100644 index 000000000000..648631c03f82 --- /dev/null +++ b/x11/xfce4-docklike-plugin/pkg-plist @@ -0,0 +1,14 @@ +lib/xfce4/panel/plugins/libdocklike.so +%%NLS%%share/locale/de/LC_MESSAGES/xfce4-docklike-plugin.mo +%%NLS%%share/locale/el/LC_MESSAGES/xfce4-docklike-plugin.mo +%%NLS%%share/locale/es/LC_MESSAGES/xfce4-docklike-plugin.mo +%%NLS%%share/locale/fr/LC_MESSAGES/xfce4-docklike-plugin.mo +%%NLS%%share/locale/it/LC_MESSAGES/xfce4-docklike-plugin.mo +%%NLS%%share/locale/ja/LC_MESSAGES/xfce4-docklike-plugin.mo +%%NLS%%share/locale/nl/LC_MESSAGES/xfce4-docklike-plugin.mo +%%NLS%%share/locale/pl/LC_MESSAGES/xfce4-docklike-plugin.mo +%%NLS%%share/locale/pt/LC_MESSAGES/xfce4-docklike-plugin.mo +%%NLS%%share/locale/pt_BR/LC_MESSAGES/xfce4-docklike-plugin.mo +%%NLS%%share/locale/ru/LC_MESSAGES/xfce4-docklike-plugin.mo +%%NLS%%share/locale/tr/LC_MESSAGES/xfce4-docklike-plugin.mo +share/xfce4/panel/plugins/docklike.desktop
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202108151713.17FHDJBZ098962>