pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/x11 add x11/gtk3-nocsd



details:   https://anonhg.NetBSD.org/pkgsrc/rev/23fb7c88fe0e
branches:  trunk
changeset: 375914:23fb7c88fe0e
user:      nia <nia%pkgsrc.org@localhost>
date:      Tue Mar 29 18:43:17 2022 +0000

description:
add x11/gtk3-nocsd

gtk3-nocsd is a small module used to disable the client side window
decorations (CSDs) in GTK+ 3, which are used by many GNOME
applications.

A shared library is included which can be loaded with LD_PRELOAD to
override several Gdk and glib/gobject APIs used by GTK+ 3 to set up
CSDs.

A wrapper script is also included, which can be used as follows:

        gtk3-nocsd gedit

diffstat:

 x11/Makefile                               |   3 +-
 x11/gtk3-nocsd/DESCR                       |  11 ++++++++++
 x11/gtk3-nocsd/Makefile                    |  33 ++++++++++++++++++++++++++++++
 x11/gtk3-nocsd/PLIST                       |   5 ++++
 x11/gtk3-nocsd/distinfo                    |   6 +++++
 x11/gtk3-nocsd/patches/patch-gtk3-nocsd.in |  15 +++++++++++++
 6 files changed, 72 insertions(+), 1 deletions(-)

diffs (107 lines):

diff -r 76510907a9da -r 23fb7c88fe0e x11/Makefile
--- a/x11/Makefile      Tue Mar 29 18:40:09 2022 +0000
+++ b/x11/Makefile      Tue Mar 29 18:43:17 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.953 2022/02/17 15:48:21 wiz Exp $
+# $NetBSD: Makefile,v 1.954 2022/03/29 18:43:17 nia Exp $
 #
 
 COMMENT=       Packages to support the X Window System
@@ -92,6 +92,7 @@
 SUBDIR+=       gtk2-theme-switch
 SUBDIR+=       gtk3
 SUBDIR+=       gtk3-engines-unico
+SUBDIR+=       gtk3-nocsd
 SUBDIR+=       gtk4
 SUBDIR+=       gtkada
 SUBDIR+=       gtkdatabox
diff -r 76510907a9da -r 23fb7c88fe0e x11/gtk3-nocsd/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/x11/gtk3-nocsd/DESCR      Tue Mar 29 18:43:17 2022 +0000
@@ -0,0 +1,11 @@
+gtk3-nocsd is a small module used to disable the client side window
+decorations (CSDs) in GTK+ 3, which are used by many GNOME
+applications.
+
+A shared library is included which can be loaded with LD_PRELOAD to
+override several Gdk and glib/gobject APIs used by GTK+ 3 to set up
+CSDs.
+
+A wrapper script is also included, which can be used as follows:
+
+       gtk3-nocsd gedit
diff -r 76510907a9da -r 23fb7c88fe0e x11/gtk3-nocsd/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/x11/gtk3-nocsd/Makefile   Tue Mar 29 18:43:17 2022 +0000
@@ -0,0 +1,33 @@
+# $NetBSD: Makefile,v 1.1 2022/03/29 18:43:17 nia Exp $
+
+DISTNAME=      gtk3-nocsd-3.0.8
+CATEGORIES=    x11
+MASTER_SITES=  ${MASTER_SITE_GITHUB:=ZaWertun/}
+GITHUB_TAG=    v${PKGVERSION_NOREV}
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      https://github.com/ZaWertun/gtk3-nocsd
+COMMENT=       Hack to disable GTK+ 3 client side window decorations
+LICENSE=       gnu-lgpl-v2.1
+
+USE_TOOLS+=    gmake pkg-config
+
+INSTALLATION_DIRS+=    bin lib
+INSTALLATION_DIRS+=    ${PKGMANDIR}/man1
+INSTALLATION_DIRS+=    share/bash-completion/completions
+
+do-install:
+       ${INSTALL_LIB} ${WRKSRC}/libgtk3-nocsd.so.0 \
+           ${DESTDIR}${PREFIX}/lib/libgtk3-nocsd.so.0
+       ${INSTALL_SCRIPT} ${WRKSRC}/gtk3-nocsd \
+           ${DESTDIR}${PREFIX}/bin/gtk3-nocsd
+       ${INSTALL_MAN} ${WRKSRC}/gtk3-nocsd.1 \
+           ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/gtk3-nocsd.1
+       ${INSTALL_DATA} ${WRKSRC}/gtk3-nocsd.bash-completion \
+           ${DESTDIR}${PREFIX}/share/bash-completion/completions/gtk3-nocsd
+
+.include "../../devel/gobject-introspection/buildlink3.mk"
+.include "../../x11/gtk3/buildlink3.mk"
+.include "../../mk/dlopen.buildlink3.mk"
+BUILDLINK_TRANSFORM+=  opt:-ldl:${BUILDLINK_LDADD.dl:Q}
+.include "../../mk/bsd.pkg.mk"
diff -r 76510907a9da -r 23fb7c88fe0e x11/gtk3-nocsd/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/x11/gtk3-nocsd/PLIST      Tue Mar 29 18:43:17 2022 +0000
@@ -0,0 +1,5 @@
+@comment $NetBSD: PLIST,v 1.1 2022/03/29 18:43:17 nia Exp $
+bin/gtk3-nocsd
+lib/libgtk3-nocsd.so.0
+man/man1/gtk3-nocsd.1
+share/bash-completion/completions/gtk3-nocsd
diff -r 76510907a9da -r 23fb7c88fe0e x11/gtk3-nocsd/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/x11/gtk3-nocsd/distinfo   Tue Mar 29 18:43:17 2022 +0000
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2022/03/29 18:43:17 nia Exp $
+
+BLAKE2s (gtk3-nocsd-3.0.8.tar.gz) = dee636b656c980ee8a231c8d02109e55c59a26abdde51eb64650a25a94f799e9
+SHA512 (gtk3-nocsd-3.0.8.tar.gz) = 18fd81dbb8b5eb793429741bcaa8e821650569e395251dc1e83d182ee97b8e9d48318342dcb27fbddb9fbec2e439c96dabd09577dbc5933d2ebc3187625e2232
+Size (gtk3-nocsd-3.0.8.tar.gz) = 66746 bytes
+SHA1 (patch-gtk3-nocsd.in) = c03242c44796023b5305b234390dcfb485d700a7
diff -r 76510907a9da -r 23fb7c88fe0e x11/gtk3-nocsd/patches/patch-gtk3-nocsd.in
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/x11/gtk3-nocsd/patches/patch-gtk3-nocsd.in        Tue Mar 29 18:43:17 2022 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-gtk3-nocsd.in,v 1.1 2022/03/29 18:43:17 nia Exp $
+
+Do not assume GNU-style readlink.
+
+--- gtk3-nocsd.in.orig 2021-06-23 18:46:13.000000000 +0000
++++ gtk3-nocsd.in
+@@ -17,7 +17,7 @@
+ #
+ 
+ OS=$(uname | tr "[:upper:]" "[:lower:]")
+-RLINK_ARGS=$([ "$OS" = "freebsd" ] && echo "-f" || echo "-fe")
++RLINK_ARGS=$([ "$OS" != "linux" ] && echo "-f" || echo "-fe")
+ 
+ GTK3_NOCSD_NAME=libgtk3-nocsd.so.0
+ 



Home | Main Index | Thread Index | Old Index