diff options
author | Mateusz Piotrowski <0mp@FreeBSD.org> | 2019-09-10 11:44:39 +0000 |
---|---|---|
committer | Mateusz Piotrowski <0mp@FreeBSD.org> | 2019-09-10 11:44:39 +0000 |
commit | 757e924b2b8d3a4cc4ba9f33efeb86a21c67c248 (patch) | |
tree | d4d540c6b2bfed603e7c87dc28a5d523c94b4fb8 /x11/mons | |
parent | 90b244d955894aa6ad567017b7ef72824a6e1c76 (diff) | |
download | freebsd-ports-757e924b2b8d3a4cc4ba9f33efeb86a21c67c248.zip |
New port: x11/mons: POSIX shell script to quickly manage displays using XRandR
PR: 222206
Submitted by: Robert James Hernandez <rob@sarcasticadmin.com>
Differential Revision: https://reviews.freebsd.org/D18437
Diffstat (limited to 'x11/mons')
-rw-r--r-- | x11/mons/Makefile | 39 | ||||
-rw-r--r-- | x11/mons/distinfo | 5 | ||||
-rw-r--r-- | x11/mons/files/patch-Makefile | 22 | ||||
-rw-r--r-- | x11/mons/files/patch-mons | 11 | ||||
-rw-r--r-- | x11/mons/pkg-descr | 11 | ||||
-rw-r--r-- | x11/mons/pkg-plist | 5 |
6 files changed, 93 insertions, 0 deletions
diff --git a/x11/mons/Makefile b/x11/mons/Makefile new file mode 100644 index 000000000000..cfa103621de3 --- /dev/null +++ b/x11/mons/Makefile @@ -0,0 +1,39 @@ +# $FreeBSD$ + +PORTNAME= mons +DISTVERSIONPREFIX= v +DISTVERSION= 0.8.2 +CATEGORIES= x11 + +MAINTAINER= rob@sarcasticadmin.com +COMMENT= POSIX shell script to quickly manage displays using XRandR + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= help2man:misc/help2man +RUN_DEPENDS= xrandr>0:x11/xrandr + +USE_GITHUB= yes +GH_ACCOUNT= Ventto +GH_PROJECT= libshlist:libshlist +GH_TAGNAME= 1cbcdcb:libshlist +GH_SUBDIR= libshlist:libshlist + +NO_ARCH= yes +NO_BUILD= yes +MAKE_ARGS= DESTDIR=${STAGEDIR} \ + PREFIX=${PREFIX} \ + MANDIR=${STAGEDIR}${PREFIX}/man/man1 \ + LIB=${WRKSRC_libshlist}/liblist.sh + +OPTIONS_DEFINE= DOCS + +post-patch: + @${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/mons + +post-install-DOCS-on: + (cd ${WRKSRC} && \ + ${COPYTREE_SHARE} "README.md img/" ${STAGEDIR}${DOCSDIR}) + +.include <bsd.port.mk> diff --git a/x11/mons/distinfo b/x11/mons/distinfo new file mode 100644 index 000000000000..befe574dcf50 --- /dev/null +++ b/x11/mons/distinfo @@ -0,0 +1,5 @@ +TIMESTAMP = 1568112339 +SHA256 (Ventto-mons-v0.8.2_GH0.tar.gz) = 73cf0e21c32206acec128c050c5905ee48412234f77c72fc4c1640cb53861160 +SIZE (Ventto-mons-v0.8.2_GH0.tar.gz) = 19517 +SHA256 (Ventto-libshlist-1cbcdcb_GH0.tar.gz) = a4373d1cb65b1b5022eeae0f93f2c220e1c730d824230f2b9be6dd933a5527b2 +SIZE (Ventto-libshlist-1cbcdcb_GH0.tar.gz) = 5455 diff --git a/x11/mons/files/patch-Makefile b/x11/mons/files/patch-Makefile new file mode 100644 index 000000000000..11d94bf9299b --- /dev/null +++ b/x11/mons/files/patch-Makefile @@ -0,0 +1,22 @@ +--- Makefile.orig 2017-11-25 13:46:52 UTC ++++ Makefile +@@ -1,11 +1,12 @@ +-PKGNAME = mons +-PKGDESC = POSIX Shell script to quickly manage 2-monitors display. ++PKGNAME = mons ++PKGDESC = POSIX Shell script to quickly manage 2-monitors display. + +-LICENSEDIR = $(DESTDIR)/usr/share/licenses/$(PKGNAME) +-MANDIR = $(DESTDIR)/usr/share/man/man1 +-BINDIR = $(DESTDIR)/usr/bin +-LIBDIR = $(DESTDIR)/usr/lib/libshlist +-LIB = libshlist/liblist.sh ++PREFIX = /usr ++LICENSEDIR = $(DESTDIR)$(PREFIX)/share/licenses/$(PKGNAME) ++MANDIR = $(DESTDIR)$(PREFIX)/share/man/man1 ++BINDIR = $(DESTDIR)$(PREFIX)/bin ++LIBDIR = $(DESTDIR)$(PREFIX)/lib/libshlist ++LIB = libshlist/liblist.sh + + install: + @if ! [ -r "$(LIB)" ]; then \ diff --git a/x11/mons/files/patch-mons b/x11/mons/files/patch-mons new file mode 100644 index 000000000000..4861b289ab1b --- /dev/null +++ b/x11/mons/files/patch-mons @@ -0,0 +1,11 @@ +--- mons.orig 2019-09-10 11:15:08 UTC ++++ mons +@@ -78,7 +78,7 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. + # Helps to generate manpage with help2man before installing the library + [ "$1" = '-h' ] && { usage; exit; } + [ "$1" = '-v' ] && { version; exit; } +-lib='/usr/lib/libshlist/liblist.sh' ++lib='%%PREFIX%%/lib/libshlist/liblist.sh' + [ ! -r "$lib" ] && { "$lib: library not found."; exit 1; } + . "${lib}" + diff --git a/x11/mons/pkg-descr b/x11/mons/pkg-descr new file mode 100644 index 000000000000..2cc2155ca317 --- /dev/null +++ b/x11/mons/pkg-descr @@ -0,0 +1,11 @@ +Mons is a shell script to quickly manage 2-monitors display using XRandR. + +Perks: +- No requirement: POSIX-compliant (minimal: xorg-xrandr) +- Useful: Perfectly fit for laptops, quick and daily use +- Well known: Laptop mode, projector mode, duplicate, mirror and extend +- More: Select one or two monitors over several others +- Extra: Cycle through every mode with only one shortcut +- Auto: Daemon mode to automatically reset display + +WWW: https://github.com/Ventto/mons diff --git a/x11/mons/pkg-plist b/x11/mons/pkg-plist new file mode 100644 index 000000000000..edd9400194a4 --- /dev/null +++ b/x11/mons/pkg-plist @@ -0,0 +1,5 @@ +bin/mons +lib/libshlist/liblist.sh +man/man1/mons.1.gz +%%PORTDOCS%%%%DOCSDIR%%/README.md +%%PORTDOCS%%%%DOCSDIR%%/img/raw-body.png |