summaryrefslogtreecommitdiff
path: root/x11
diff options
context:
space:
mode:
authorJan Beich <jbeich@FreeBSD.org>2022-12-25 15:59:56 +0000
committerJan Beich <jbeich@FreeBSD.org>2022-12-30 18:22:52 +0000
commiteb9065f48ad0716fb4b662b9f32ed15c5ace3c9c (patch)
tree9c2f4b398483ac857b0ab843c70ee9ad086fd955 /x11
parentdevel/py-libcst03: Add py-libcst03 0.3.23 (copied from py-libcst) (diff)
x11/grimshot: add new port
A helper for screenshots within Sway. https://swaywm.org/
Diffstat (limited to 'x11')
-rw-r--r--x11/Makefile1
-rw-r--r--x11/grimshot/Makefile48
-rw-r--r--x11/grimshot/distinfo5
-rw-r--r--x11/grimshot/pkg-descr1
4 files changed, 55 insertions, 0 deletions
diff --git a/x11/Makefile b/x11/Makefile
index c62452c55323..452df72e9f9b 100644
--- a/x11/Makefile
+++ b/x11/Makefile
@@ -96,6 +96,7 @@
SUBDIR += gnustep-app
SUBDIR += grabc
SUBDIR += grim
+ SUBDIR += grimshot
SUBDIR += gromit
SUBDIR += gromit-mpx
SUBDIR += gskrab
diff --git a/x11/grimshot/Makefile b/x11/grimshot/Makefile
new file mode 100644
index 000000000000..29ff9798e52b
--- /dev/null
+++ b/x11/grimshot/Makefile
@@ -0,0 +1,48 @@
+PORTNAME= grimshot
+DISTVERSION= 1.8
+CATEGORIES= x11 wayland
+
+PATCH_SITES= https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/commit/
+PATCHFILES+= 344ab1a510c0.patch:-p2 # https://github.com/swaywm/sway/pull/5914
+
+MAINTAINER= jbeich@FreeBSD.org
+COMMENT= Screenshot helper for Sway
+WWW= https://swaywm.org/
+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC:H}/LICENSE
+
+RUN_DEPENDS= jq:textproc/jq \
+ grim:x11/grim \
+ slurp:x11/slurp
+
+USE_GITHUB= yes
+GH_ACCOUNT= swaywm
+GH_PROJECT= sway
+WRKSRC_SUBDIR= contrib
+NO_ARCH= yes
+PLIST_FILES= bin/${PORTNAME}
+
+OPTIONS_DEFINE= CLIPBOARD MANPAGES NOTIFY
+OPTIONS_DEFAULT=CLIPBOARD MANPAGES NOTIFY
+
+CLIPBOARD_DESC= Copy to clipboard support
+CLIPBOARD_RUN_DEPENDS= wl-copy:x11/wl-clipboard
+
+MANPAGES_BUILD_DEPENDS= scdoc:textproc/scdoc
+MANPAGES_PLIST_FILES= man/man1/${PORTNAME}.1.gz
+
+NOTIFY_RUN_DEPENDS= notify-send:devel/libnotify
+
+do-build:
+do-build-MANPAGES-on:
+ scdoc < ${WRKSRC}/${PORTNAME}.1.scd >${WRKSRC}/${PORTNAME}.1
+
+do-install:
+ ${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
+
+do-install-MANPAGES-on:
+ ${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 \
+ ${STAGEDIR}${PREFIX}/${MANPAGES_PLIST_FILES:H}
+
+.include <bsd.port.mk>
diff --git a/x11/grimshot/distinfo b/x11/grimshot/distinfo
new file mode 100644
index 000000000000..036a4b0d84b3
--- /dev/null
+++ b/x11/grimshot/distinfo
@@ -0,0 +1,5 @@
+TIMESTAMP = 1671983996
+SHA256 (swaywm-sway-1.8_GH0.tar.gz) = fae0422bca8f528027f77e3a7bbea2be0498bba2ad3f0d22554ff8827e37f04e
+SIZE (swaywm-sway-1.8_GH0.tar.gz) = 5577138
+SHA256 (344ab1a510c0.patch) = 513148b7a3d98e829f5865087c53a17401a67285cf2aee28df7c2665a3ceb80c
+SIZE (344ab1a510c0.patch) = 1353
diff --git a/x11/grimshot/pkg-descr b/x11/grimshot/pkg-descr
new file mode 100644
index 000000000000..a498d233a805
--- /dev/null
+++ b/x11/grimshot/pkg-descr
@@ -0,0 +1 @@
+A helper for screenshots within Sway.