From owner-svn-ports-all@freebsd.org Thu Mar 7 11:33:22 2019 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BE103152B251; Thu, 7 Mar 2019 11:33:22 +0000 (UTC) (envelope-from tobik@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 5DD8C77F74; Thu, 7 Mar 2019 11:33:22 +0000 (UTC) (envelope-from tobik@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 3C0301B1A4; Thu, 7 Mar 2019 11:33:22 +0000 (UTC) (envelope-from tobik@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id x27BXMS2059080; Thu, 7 Mar 2019 11:33:22 GMT (envelope-from tobik@FreeBSD.org) Received: (from tobik@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id x27BXKhZ059073; Thu, 7 Mar 2019 11:33:20 GMT (envelope-from tobik@FreeBSD.org) Message-Id: <201903071133.x27BXKhZ059073@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: tobik set sender to tobik@FreeBSD.org using -f From: Tobias Kortkamp Date: Thu, 7 Mar 2019 11:33:20 +0000 (UTC) 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 X-SVN-Group: ports-head X-SVN-Commit-Author: tobik X-SVN-Commit-Paths: in head/x11: . bemenu bemenu/files X-SVN-Commit-Revision: 494923 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 5DD8C77F74 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.96 / 15.00]; local_wl_from(0.00)[FreeBSD.org]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; NEURAL_HAM_SHORT(-0.97)[-0.965,0]; ASN(0.00)[asn:11403, ipnet:2610:1c1:1::/48, country:US]; NEURAL_HAM_LONG(-1.00)[-1.000,0] X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Mar 2019 11:33:23 -0000 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 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