svn commit: r548731 - in head/x11: . havoc havoc/files
Emmanuel Vadot
manu at FreeBSD.org
Tue Sep 15 13:41:52 UTC 2020
Author: manu
Date: Tue Sep 15 13:41:50 2020
New Revision: 548731
URL: https://svnweb.freebsd.org/changeset/ports/548731
Log:
x11/havoc: Add new port
havoc is a minimal terminal emulator supporting wayland only.
Added:
head/x11/havoc/
head/x11/havoc/Makefile (contents, props changed)
head/x11/havoc/distinfo (contents, props changed)
head/x11/havoc/files/
head/x11/havoc/files/patch-Makefile (contents, props changed)
head/x11/havoc/files/patch-havoc.cfg (contents, props changed)
head/x11/havoc/files/pkg-message.in (contents, props changed)
head/x11/havoc/pkg-descr (contents, props changed)
Modified:
head/x11/Makefile
Modified: head/x11/Makefile
==============================================================================
--- head/x11/Makefile Tue Sep 15 13:29:49 2020 (r548730)
+++ head/x11/Makefile Tue Sep 15 13:41:50 2020 (r548731)
@@ -96,6 +96,7 @@
SUBDIR += gtkterm2
SUBDIR += guake
SUBDIR += gxkb
+ SUBDIR += havoc
SUBDIR += hhpc
SUBDIR += hs-xmobar
SUBDIR += hsetroot
Added: head/x11/havoc/Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/x11/havoc/Makefile Tue Sep 15 13:41:50 2020 (r548731)
@@ -0,0 +1,48 @@
+# Created by: Emmanuel Vadot <manu at FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME= havoc
+PORTVERSION= 0.3.1
+CATEGORIES= x11
+
+PATCH_SITES= https://github.com/ii8/havoc/commit/
+PATCH_DIST_STRIP= -p1
+
+MAINTAINER= manu at FreeBSD.org
+COMMENT= Minimal terminal emulator for Wayland
+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+BUILD_DEPENDS= wayland-protocols>0:graphics/wayland-protocols \
+ libxkbcommon>0:x11/libxkbcommon
+LIB_DEPENDS= libepoll-shim.so:devel/libepoll-shim \
+ libwayland-client.so:graphics/wayland \
+ libxkbcommon.so:x11/libxkbcommon
+RUN_DEPENDS= ${LOCALBASE}/share/fonts/dejavu/DejaVuSansMono.ttf:x11-fonts/dejavu
+
+USES= gmake pkgconfig
+USE_GITHUB= yes
+GH_ACCOUNT= ii8
+GH_PROJECT= havoc
+
+PATCHFILES+= be024469f0.patch # https://github.com/ii8/havoc/pull/32
+PATCHFILES+= 4fe53499c6.patch # https://github.com/ii8/havoc/pull/32
+PATCHFILES+= f7bcc3d158.patch # https://github.com/ii8/havoc/pull/32
+PATCHFILES+= ef6eff8681.patch # https://github.com/ii8/havoc/pull/32
+
+PLIST_FILES= bin/havoc \
+ share/examples/havoc/havoc.cfg
+
+SUB_FILES= pkg-message
+
+do-build:
+ (cd ${WRKSRC} && ${MAKE_CMD} havoc)
+
+do-install:
+ (cd ${WRKSRC} && ${MAKE_CMD} PREFIX=${STAGEDIR}${PREFIX} install)
+ ${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+ ${INSTALL_DATA} ${WRKSRC}/havoc.cfg ${STAGEDIR}${EXAMPLESDIR}/havoc.cfg
+ ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/havoc
+
+.include <bsd.port.mk>
Added: head/x11/havoc/distinfo
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/x11/havoc/distinfo Tue Sep 15 13:41:50 2020 (r548731)
@@ -0,0 +1,11 @@
+TIMESTAMP = 1600174676
+SHA256 (ii8-havoc-0.3.1_GH0.tar.gz) = c4e18de62435a6338c8453d0b6e84b5f284dbd179f608ec74326b39e2cb36e87
+SIZE (ii8-havoc-0.3.1_GH0.tar.gz) = 93931
+SHA256 (be024469f0.patch) = 61a34f614d72bb3a7245c173054c17e78c0c2d6fa188788bab311676b72654e1
+SIZE (be024469f0.patch) = 761
+SHA256 (4fe53499c6.patch) = fbcf884409b9d7377ff1972ceeb5e05f8808ffe64615291f1818a67af40e4cc5
+SIZE (4fe53499c6.patch) = 1257
+SHA256 (f7bcc3d158.patch) = 83d2026b2be62aee5a5068dbe8d300da7f23f904391f62849b28bdf3edc1056a
+SIZE (f7bcc3d158.patch) = 1154
+SHA256 (ef6eff8681.patch) = f7efcbacfa3b611dad39163a56ac0e7703482c5cfe2887cb3255599aea08e1a0
+SIZE (ef6eff8681.patch) = 699
Added: head/x11/havoc/files/patch-Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/x11/havoc/files/patch-Makefile Tue Sep 15 13:41:50 2020 (r548731)
@@ -0,0 +1,27 @@
+--- Makefile.orig 2020-09-15 12:40:25 UTC
++++ Makefile
+@@ -8,6 +8,7 @@ VERSION="0.3.1"
+
+ CFLAGS ?= -Wall -Wextra -Wno-unused-parameter -Wno-parentheses
+ CFLAGS += `pkg-config --cflags xkbcommon` \
++ `pkg-config --cflags epoll-shim` \
+ `pkg-config --cflags wayland-client` \
+ `pkg-config --cflags wayland-cursor`
+ override CFLAGS += -DVERSION=\"$(VERSION)\"
+@@ -15,6 +16,7 @@ override CFLAGS += -DVERSION=\"$(VERSION)\"
+ VPATH=$(WAYLAND_PROTOCOLS_DIR)/stable/xdg-shell
+ LIBS=-lrt -lm -lutil -lwayland-client -lwayland-cursor -lxkbcommon -Ltsm -lhtsm
+ LIBS+=`pkg-config --libs xkbcommon` \
++ `pkg-config --libs epoll-shim` \
+ `pkg-config --libs wayland-client` \
+ `pkg-config --libs wayland-cursor`
+
+@@ -25,7 +27,7 @@ havoc: tsm $(OBJ)
+ $(CC) $(LDFLAGS) -o $@ $(OBJ) $(LIBS)
+
+ install: havoc
+- install -D -t $(DESTDIR)$(BINDIR) havoc
++ install havoc $(DESTDIR)$(BINDIR)
+
+ uninstall:
+ rm -f $(DESTDIR)$(BINDIR)/havoc
Added: head/x11/havoc/files/patch-havoc.cfg
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/x11/havoc/files/patch-havoc.cfg Tue Sep 15 13:41:50 2020 (r548731)
@@ -0,0 +1,19 @@
+--- havoc.cfg.orig 2020-09-15 12:50:19 UTC
++++ havoc.cfg
+@@ -1,6 +1,6 @@
+ [child]
+ # program to run in child process
+-program=bash
++program=sh
+
+ [window]
+ # opacity of background from 0 (fully transparent) to 255 (fully opaque)
+@@ -22,7 +22,7 @@ scrollback=1000
+ size=18
+
+ # absolute path to a truetype font
+-path=/usr/share/fonts/TTF/DejaVuSansMono.ttf
++path=/usr/local/share/fonts/dejavu/DejaVuSansMono.ttf
+
+ [bind]
+ # bind keys to actions
Added: head/x11/havoc/files/pkg-message.in
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/x11/havoc/files/pkg-message.in Tue Sep 15 13:41:50 2020 (r548731)
@@ -0,0 +1,14 @@
+[
+{ type: install
+ message: <<EOM
+Havoc is installed
+
+Before using this program, copy
+
+%%EXAMPLESDIR%%/havoc.cfg
+
+in $HOME/.config/ and edit it based on your needs.
+
+EOM
+}
+]
Added: head/x11/havoc/pkg-descr
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/x11/havoc/pkg-descr Tue Sep 15 13:41:50 2020 (r548731)
@@ -0,0 +1,3 @@
+Havoc is a minimal terminal emulator for wayland environment.
+
+WWW: https://github.com/ii8/havoc
More information about the svn-ports-all
mailing list