1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-19 00:13:33 +00:00

x11/rofi-file-browser-extended: New Port: Use rofi to quickly open files

rofi-file-browser-extended is a configurable file browser plugin for rofi.
Its main use case is to quickly open files without having to open a window
to navigate to the file.
This commit is contained in:
Nicola Vitale 2022-12-02 11:42:08 +01:00
parent 4d34e13c98
commit a00b945ec5
No known key found for this signature in database
GPG Key ID: A51E190C4C0808D0
5 changed files with 63 additions and 0 deletions

View File

@ -318,6 +318,7 @@
SUBDIR += rofi
SUBDIR += rofi-calc
SUBDIR += rofi-emoji
SUBDIR += rofi-file-browser-extended
SUBDIR += rofi-pass
SUBDIR += rofi-wayland
SUBDIR += roxterm

View File

@ -0,0 +1,26 @@
PORTNAME= rofi-file-browser-extended
DISTVERSION= 1.3.1
CATEGORIES= x11
MAINTAINER= nivit@FreeBSD.org
COMMENT= Use rofi to quickly open files
WWW= https://github.com/marvinkreis/rofi-file-browser-extended
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= rofi:x11/rofi
RUN_DEPENDS= rofi:x11/rofi
USES= cmake gettext-runtime gnome pkgconfig
USE_GITHUB= yes
GH_ACCOUNT= marvinkreis
USE_GNOME= cairo glib20
CMAKE_ARGS= -DCMAKE_INSTALL_MANDIR=${PREFIX}/man/man1 \
-DROFI_PLUGINS_DIR=${PREFIX}/lib/rofi
PLIST_FILES= lib/rofi/filebrowser.so \
man/man1/rofi-file-browser-extended.1.gz
.include <bsd.port.mk>

View File

@ -0,0 +1,3 @@
TIMESTAMP = 1669926301
SHA256 (marvinkreis-rofi-file-browser-extended-1.3.1_GH0.tar.gz) = 9e010e671533dd747e6e7ae4ed290b6e2829e758ca073381fa8a8fe53e004660
SIZE (marvinkreis-rofi-file-browser-extended-1.3.1_GH0.tar.gz) = 27169

View File

@ -0,0 +1,30 @@
--- CMakeLists.txt.orig 2022-02-01 17:36:09 UTC
+++ CMakeLists.txt
@@ -8,11 +8,9 @@ project(rofi-file-browser-extended)
# Plugin
find_package(PkgConfig)
-pkg_search_module(GLIB2 REQUIRED glib-2.0)
+pkg_search_module(GLIB REQUIRED glib-2.0)
pkg_search_module(CAIRO REQUIRED cairo)
-pkg_get_variable(ROFI_PLUGINS_DIR rofi pluginsdir)
-
include_directories(
include
${GLIB2_INCLUDE_DIRS}
@@ -37,7 +35,7 @@ add_library(filebrowser SHARED ${SRC})
set_target_properties(filebrowser PROPERTIES PREFIX "")
target_link_libraries(filebrowser
- ${GLIB2_LIBRARIES}
+ ${GLIB_LDFLAGS}
${CAIRO_LIBRARIES}
)
@@ -53,4 +51,4 @@ add_custom_command(OUTPUT "${CMAKE_CURRENT_SOURCE_DIR}
add_custom_target(manpage ALL DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/doc/rofi-file-browser-extended.1.gz")
-install(FILES "doc/rofi-file-browser-extended.1.gz" DESTINATION "/usr/share/man/man1")
+install(FILES "doc/rofi-file-browser-extended.1.gz" DESTINATION "${CMAKE_INSTALL_MANDIR}")

View File

@ -0,0 +1,3 @@
rofi-file-browser-extended is a configurable file browser plugin for rofi.
Its main use case is to quickly open files without having to open a window
to navigate to the file.