Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 Mar 2019 11:33:20 +0000 (UTC)
From:      Tobias Kortkamp <tobik@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r494923 - in head/x11: . bemenu bemenu/files
Message-ID:  <201903071133.x27BXKhZ059073@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: tobik
Date: Thu Mar  7 11:33:20 2019
New Revision: 494923
URL: https://svnweb.freebsd.org/changeset/ports/494923

Log:
  New port: x11/bemenu
  
  Dynamic menu library and client program inspired by dmenu, a
  minimalistic menu that reads a newline separated list of items from
  stdin and shows them as a menu on the top of the screen.  When the
  user selects one item or types any text and presses Enter, their
  choice is printed to stdout.
  
  Bemenu comes with Ncurses, Wayland, and X11 backends.
  
  WWW: https://github.com/Cloudef/bemenu

Added:
  head/x11/bemenu/
  head/x11/bemenu/Makefile   (contents, props changed)
  head/x11/bemenu/distinfo   (contents, props changed)
  head/x11/bemenu/files/
  head/x11/bemenu/files/patch-lib_renderers_wayland_wayland.c   (contents, props changed)
  head/x11/bemenu/pkg-descr   (contents, props changed)
  head/x11/bemenu/pkg-help   (contents, props changed)
  head/x11/bemenu/pkg-plist   (contents, props changed)
Modified:
  head/x11/Makefile

Modified: head/x11/Makefile
==============================================================================
--- head/x11/Makefile	Thu Mar  7 10:02:02 2019	(r494922)
+++ head/x11/Makefile	Thu Mar  7 11:33:20 2019	(r494923)
@@ -21,6 +21,7 @@
     SUBDIR += bbdock
     SUBDIR += bbrun
     SUBDIR += beforelight
+    SUBDIR += bemenu
     SUBDIR += bgrot
     SUBDIR += bgs
     SUBDIR += bitmap

Added: head/x11/bemenu/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/x11/bemenu/Makefile	Thu Mar  7 11:33:20 2019	(r494923)
@@ -0,0 +1,49 @@
+# $FreeBSD$
+
+PORTNAME=	bemenu
+DISTVERSION=	0.1.0
+CATEGORIES=	x11 wayland
+
+MAINTAINER=	tobik@FreeBSD.org
+COMMENT=	Dynamic menu library and client program inspired by dmenu
+
+LICENSE=	GPLv3+ LGPL3+
+LICENSE_COMB=	multi
+LICENSE_FILE_GPLv3+ =	${WRKSRC}/LICENSE-CLIENT
+LICENSE_FILE_LGPL3+ =	${WRKSRC}/LICENSE-LIB
+
+USES=		cmake
+USE_GITHUB=	yes
+GH_ACCOUNT=	Cloudef
+USE_LDCONFIG=	yes
+
+LDFLAGS+=	-Wl,--as-needed
+
+OPTIONS_DEFINE=		BEMENU_RUN
+OPTIONS_DEFAULT=	${OPTIONS_MULTI_BACKEND}
+OPTIONS_MULTI=		BACKEND
+OPTIONS_MULTI_BACKEND=	NCURSES WAYLAND X11
+OPTIONS_SUB=		yes
+
+BACKEND_DESC=		Backend
+BEMENU_RUN_DESC=	Install bemenu-run (not recommended)
+
+NCURSES_CMAKE_ON=	-DCURSES_FOUND:BOOL=yes \
+			-DCURSES_INCLUDE_DIRS:PATH="${NCURSESINC}" \
+			-DCURSES_LIBRARY:PATH="${NCURSESLIB}/libncursesw.so"
+NCURSES_USES=		ncurses
+
+WAYLAND_CFLAGS=		-I${LOCALBASE}/include/libepoll-shim
+WAYLAND_CMAKE_BOOL_OFF=	CMAKE_DISABLE_FIND_PACKAGE_Wayland
+WAYLAND_LIB_DEPENDS=	libepoll-shim.so:devel/libepoll-shim \
+			libwayland-client.so:graphics/wayland \
+			libxkbcommon.so:x11/libxkbcommon
+WAYLAND_LDFLAGS=	-lepoll-shim
+WAYLAND_USES=		localbase:ldflags gnome pkgconfig
+WAYLAND_USE=		GNOME=cairo,glib20,pango
+
+X11_CMAKE_BOOL_OFF=	CMAKE_DISABLE_FIND_PACKAGE_X11
+X11_USES=		gnome localbase:ldflags pkgconfig
+X11_USE=		GNOME=cairo,glib20,pango XORG=x11,xinerama
+
+.include <bsd.port.mk>

Added: head/x11/bemenu/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/x11/bemenu/distinfo	Thu Mar  7 11:33:20 2019	(r494923)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1551945398
+SHA256 (Cloudef-bemenu-0.1.0_GH0.tar.gz) = fddc08be9f04efea221841ccc481ed7ae27a6f28438c1f9871939fe71b22559e
+SIZE (Cloudef-bemenu-0.1.0_GH0.tar.gz) = 117342

Added: head/x11/bemenu/files/patch-lib_renderers_wayland_wayland.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/x11/bemenu/files/patch-lib_renderers_wayland_wayland.c	Thu Mar  7 11:33:20 2019	(r494923)
@@ -0,0 +1,11 @@
+--- lib/renderers/wayland/wayland.c.orig	2019-03-07 08:35:43 UTC
++++ lib/renderers/wayland/wayland.c
+@@ -266,7 +266,7 @@ constructor(struct bm_menu *menu)
+         wl_list_insert(&wayland->windows, &window->link);
+     }
+ 
+-    if (!efd && (efd = epoll_create(EPOLL_CLOEXEC)) < 0)
++    if (!efd && (efd = epoll_create1(EPOLL_CLOEXEC)) < 0)
+         goto fail;
+ 
+     struct epoll_event ep;

Added: head/x11/bemenu/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/x11/bemenu/pkg-descr	Thu Mar  7 11:33:20 2019	(r494923)
@@ -0,0 +1,9 @@
+Dynamic menu library and client program inspired by dmenu, a
+minimalistic menu that reads a newline separated list of items from
+stdin and shows them as a menu on the top of the screen.  When the
+user selects one item or types any text and presses Enter, their
+choice is printed to stdout.
+
+Bemenu comes with Ncurses, Wayland, and X11 backends.
+
+WWW: https://github.com/Cloudef/bemenu

Added: head/x11/bemenu/pkg-help
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/x11/bemenu/pkg-help	Thu Mar  7 11:33:20 2019	(r494923)
@@ -0,0 +1,6 @@
+BEMENU_RUN
+When enabled the bundled bemenu-run utility will also be installed.
+It behaves badly on FreeBSD with Wayland and might hang and not
+release bemenu's key grab when executing a program.  It is recommended
+to instead install x11/dmenu and use its dmenu_path script with
+bemenu as a substitute.

Added: head/x11/bemenu/pkg-plist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/x11/bemenu/pkg-plist	Thu Mar  7 11:33:20 2019	(r494923)
@@ -0,0 +1,9 @@
+bin/bemenu
+%%BEMENU_RUN%%bin/bemenu-run
+include/bemenu.h
+%%NCURSES%%lib/bemenu/bemenu-renderer-curses.so
+%%WAYLAND%%lib/bemenu/bemenu-renderer-wayland.so
+%%X11%%lib/bemenu/bemenu-renderer-x11.so
+lib/libbemenu.so
+lib/libbemenu.so.0
+lib/libbemenu.so.0.1.0



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201903071133.x27BXKhZ059073>