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
This commit is contained in:
@@ -226,6 +226,7 @@
|
||||
SUBDIR += metisse
|
||||
SUBDIR += mkcomposecache
|
||||
SUBDIR += mlterm
|
||||
SUBDIR += mons
|
||||
SUBDIR += mrxvt
|
||||
SUBDIR += mrxvt-devel
|
||||
SUBDIR += multi-aterm
|
||||
|
||||
39
x11/mons/Makefile
Normal file
39
x11/mons/Makefile
Normal file
@@ -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>
|
||||
5
x11/mons/distinfo
Normal file
5
x11/mons/distinfo
Normal file
@@ -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
|
||||
22
x11/mons/files/patch-Makefile
Normal file
22
x11/mons/files/patch-Makefile
Normal file
@@ -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 \
|
||||
11
x11/mons/files/patch-mons
Normal file
11
x11/mons/files/patch-mons
Normal file
@@ -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}"
|
||||
|
||||
11
x11/mons/pkg-descr
Normal file
11
x11/mons/pkg-descr
Normal file
@@ -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
|
||||
5
x11/mons/pkg-plist
Normal file
5
x11/mons/pkg-plist
Normal file
@@ -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
|
||||
Reference in New Issue
Block a user