svn commit: r511755 - in head/x11: . mons mons/files
Mateusz Piotrowski
0mp at FreeBSD.org
Tue Sep 10 11:44:41 UTC 2019
Author: 0mp
Date: Tue Sep 10 11:44:39 2019
New Revision: 511755
URL: https://svnweb.freebsd.org/changeset/ports/511755
Log:
New port: x11/mons: POSIX shell script to quickly manage displays using XRandR
PR: 222206
Submitted by: Robert James Hernandez <rob at sarcasticadmin.com>
Differential Revision: https://reviews.freebsd.org/D18437
Added:
head/x11/mons/
head/x11/mons/Makefile (contents, props changed)
head/x11/mons/distinfo (contents, props changed)
head/x11/mons/files/
head/x11/mons/files/patch-Makefile (contents, props changed)
head/x11/mons/files/patch-mons (contents, props changed)
head/x11/mons/pkg-descr (contents, props changed)
head/x11/mons/pkg-plist (contents, props changed)
Modified:
head/x11/Makefile
Modified: head/x11/Makefile
==============================================================================
--- head/x11/Makefile Tue Sep 10 11:40:25 2019 (r511754)
+++ head/x11/Makefile Tue Sep 10 11:44:39 2019 (r511755)
@@ -226,6 +226,7 @@
SUBDIR += metisse
SUBDIR += mkcomposecache
SUBDIR += mlterm
+ SUBDIR += mons
SUBDIR += mrxvt
SUBDIR += mrxvt-devel
SUBDIR += multi-aterm
Added: head/x11/mons/Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/x11/mons/Makefile Tue Sep 10 11:44:39 2019 (r511755)
@@ -0,0 +1,39 @@
+# $FreeBSD$
+
+PORTNAME= mons
+DISTVERSIONPREFIX= v
+DISTVERSION= 0.8.2
+CATEGORIES= x11
+
+MAINTAINER= rob at 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>
Added: head/x11/mons/distinfo
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/x11/mons/distinfo Tue Sep 10 11:44:39 2019 (r511755)
@@ -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
Added: head/x11/mons/files/patch-Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/x11/mons/files/patch-Makefile Tue Sep 10 11:44:39 2019 (r511755)
@@ -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 \
Added: head/x11/mons/files/patch-mons
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/x11/mons/files/patch-mons Tue Sep 10 11:44:39 2019 (r511755)
@@ -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}"
+
Added: head/x11/mons/pkg-descr
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/x11/mons/pkg-descr Tue Sep 10 11:44:39 2019 (r511755)
@@ -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
Added: head/x11/mons/pkg-plist
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/x11/mons/pkg-plist Tue Sep 10 11:44:39 2019 (r511755)
@@ -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
More information about the svn-ports-head
mailing list