From owner-dev-commits-ports-all@freebsd.org Sun Aug 15 17:13:19 2021 Return-Path: Delivered-To: dev-commits-ports-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 99DF8663496; Sun, 15 Aug 2021 17:13:19 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4GnkQR3pBxz3ng9; Sun, 15 Aug 2021 17:13:19 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 6A93419863; Sun, 15 Aug 2021 17:13:19 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 17FHDJ8x098963; Sun, 15 Aug 2021 17:13:19 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 17FHDJBZ098962; Sun, 15 Aug 2021 17:13:19 GMT (envelope-from git) Date: Sun, 15 Aug 2021 17:13:19 GMT Message-Id: <202108151713.17FHDJBZ098962@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Guido Falsi Subject: git: 9bee84be4e46 - main - x11/xfce4-docklike-plugin: Add new port MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: madpilot X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 9bee84be4e46e59b7eaee39aced7fa0ed926a4c2 Auto-Submitted: auto-generated X-BeenThere: dev-commits-ports-all@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Commit messages for all branches of the ports repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Aug 2021 17:13:19 -0000 The branch main has been updated by madpilot: URL: https://cgit.FreeBSD.org/ports/commit/?id=9bee84be4e46e59b7eaee39aced7fa0ed926a4c2 commit 9bee84be4e46e59b7eaee39aced7fa0ed926a4c2 Author: Quentin Baker AuthorDate: 2021-08-15 17:10:45 +0000 Commit: Guido Falsi 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 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