Import rofi 0.15.8.

Rofi is a graphical menu. Its features include:
* Full (configurable) keyboard navigation.
* Type to filter
    - Tokenized: Type any word in any order to filter.
    - Case insensitive
* UTF-8 enabled.
    - UTF-8 aware string collating.
    - intl. keyboard support (`e -> è)
* Pango font rendering.
* RTL language support.
* Window Switcher.
    - I3 support.
    - EWHM compatible WM.
* Run dialog.
* SSH launcher.
* History based ordering: last 25 choices are ordered based on use.
* Levenshtein distance ordering of matches.
* Drop in dmenu replacement with many added improvements.
* Can be easily extended using scripts.

ok/feedback jasper@ czarkoff@
This commit is contained in:
landry 2015-09-20 12:49:52 +00:00
parent ceb9949d2b
commit 0fb565c88b
6 changed files with 88 additions and 0 deletions

37
sysutils/rofi/Makefile Normal file
View File

@ -0,0 +1,37 @@
# $OpenBSD: Makefile,v 1.1.1.1 2015/09/20 12:49:52 landry Exp $
COMMENT = window switcher, run dialog and dmenu replacement
GH_PROJECT = rofi
GH_TAGNAME = 0.15.8
GH_ACCOUNT = DaveDavenPort
DISTNAME = ${GH_PROJECT}-${GH_TAGNAME}
CATEGORIES = sysutils x11
HOMEPAGE = https://davedavenport.github.io/rofi/
# MIT/X
PERMIT_PACKAGE_CDROM = Yes
AUTOCONF_VERSION = 2.69
AUTOMAKE_VERSION = 1.12
BUILD_DEPENDS+= ${MODGNU_AUTOMAKE_DEPENDS} \
${MODGNU_AUTOCONF_DEPENDS}
MODULES = devel/gettext
CONFIGURE_STYLE = gnu
CONFIGURE_ENV = CPPFLAGS=-I${LOCALBASE}/include
BUILD_DEPENDS = x11/i3
LIB_DEPENDS = devel/pango
WANTLIB += X11 Xft Xinerama c fontconfig freetype glib-2.0 gobject-2.0
WANTLIB += m pango-1.0 pangoft2-1.0 pangoxft-1.0 pthread
WANTLIB += z
pre-configure:
cd ${WRKSRC} && \
AUTOMAKE_VERSION=${AUTOMAKE_VERSION} \
AUTOCONF_VERSION=${AUTOCONF_VERSION} \
autoreconf -i
TEST_TARGET = test
.include <bsd.port.mk>

2
sysutils/rofi/distinfo Normal file
View File

@ -0,0 +1,2 @@
SHA256 (rofi-0.15.8.tar.gz) = BlNw8Ja3geleX4s2j1cuCHkWXv+An1OeCf5b13NHEuI=
SIZE (rofi-0.15.8.tar.gz) = 86499

View File

@ -0,0 +1,9 @@
$OpenBSD: patch-script_rofi-sensible-terminal,v 1.1.1.1 2015/09/20 12:49:52 landry Exp $
--- script/rofi-sensible-terminal.orig Sun Sep 20 11:13:39 2015
+++ script/rofi-sensible-terminal Sun Sep 20 11:13:43 2015
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
#
# This code is released in public domain by Han Boetes <han@mijncomputer.nl>
# Updated by Dave Davenport <qball@gmpclient.org>

View File

@ -0,0 +1,17 @@
$OpenBSD: patch-source_rofi_c,v 1.1.1.1 2015/09/20 12:49:52 landry Exp $
--- source/rofi.c.orig Sun Sep 20 10:31:20 2015
+++ source/rofi.c Sun Sep 20 10:32:03 2015
@@ -1741,10 +1741,9 @@ static gpointer rofi_signal_handler_process ( gpointer
sigaddset ( &set, SIGCHLD );
// loop forever.
while ( 1 ) {
- siginfo_t info;
- int sig = sigwaitinfo ( &set, &info );
- if ( sig < 0 ) {
- perror ( "sigwaitinfo failed, lets restart" );
+ int sig = 0;
+ if ( sigwait( &set, &sig ) < 0 ) {
+ perror ( "sigwait failed, lets restart" );
}
else {
// Send message to main thread.

19
sysutils/rofi/pkg/DESCR Normal file
View File

@ -0,0 +1,19 @@
Rofi is a graphical menu. Its features include:
* Full (configurable) keyboard navigation.
* Type to filter
- Tokenized: Type any word in any order to filter.
- Case insensitive
* UTF-8 enabled.
- UTF-8 aware string collating.
- intl. keyboard support (`e -> è)
* Pango font rendering.
* RTL language support.
* Window Switcher.
- I3 support.
- EWHM compatible WM.
* Run dialog.
* SSH launcher.
* History based ordering: last 25 choices are ordered based on use.
* Levenshtein distance ordering of matches.
* Drop in dmenu replacement with many added improvements.
* Can be easily extended using scripts.

4
sysutils/rofi/pkg/PLIST Normal file
View File

@ -0,0 +1,4 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2015/09/20 12:49:52 landry Exp $
@bin bin/rofi
bin/rofi-sensible-terminal
@man man/man1/rofi.1