diff options
author | Jan Beich <jbeich@FreeBSD.org> | 2022-12-25 15:59:56 +0000 |
---|---|---|
committer | Jan Beich <jbeich@FreeBSD.org> | 2022-12-30 18:22:52 +0000 |
commit | eb9065f48ad0716fb4b662b9f32ed15c5ace3c9c (patch) | |
tree | 9c2f4b398483ac857b0ab843c70ee9ad086fd955 | |
parent | 5199547135734099c2c66c00c44fe7e1fdded1f1 (diff) | |
download | ports-eb9065f48ad0716fb4b662b9f32ed15c5ace3c9c.tar.gz ports-eb9065f48ad0716fb4b662b9f32ed15c5ace3c9c.zip |
x11/grimshot: add new port
A helper for screenshots within Sway.
https://swaywm.org/
-rw-r--r-- | x11/Makefile | 1 | ||||
-rw-r--r-- | x11/grimshot/Makefile | 48 | ||||
-rw-r--r-- | x11/grimshot/distinfo | 5 | ||||
-rw-r--r-- | x11/grimshot/pkg-descr | 1 |
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. |