git: a00b945ec524 - main - x11/rofi-file-browser-extended: New Port: Use rofi to quickly open files
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 02 Dec 2022 10:46:50 UTC
The branch main has been updated by nivit: URL: https://cgit.FreeBSD.org/ports/commit/?id=a00b945ec524adf181556d8356063d7d3997060d commit a00b945ec524adf181556d8356063d7d3997060d Author: Nicola Vitale <nivit@FreeBSD.org> AuthorDate: 2022-12-02 10:42:08 +0000 Commit: Nicola Vitale <nivit@FreeBSD.org> CommitDate: 2022-12-02 10:45:30 +0000 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. --- x11/Makefile | 1 + x11/rofi-file-browser-extended/Makefile | 26 +++++++++++++++++++ x11/rofi-file-browser-extended/distinfo | 3 +++ .../files/patch-CMakeLists.txt | 30 ++++++++++++++++++++++ x11/rofi-file-browser-extended/pkg-descr | 3 +++ 5 files changed, 63 insertions(+) diff --git a/x11/Makefile b/x11/Makefile index 632928fe65f4..ef98f7ecf199 100644 --- a/x11/Makefile +++ b/x11/Makefile @@ -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 diff --git a/x11/rofi-file-browser-extended/Makefile b/x11/rofi-file-browser-extended/Makefile new file mode 100644 index 000000000000..74f87bcde9bb --- /dev/null +++ b/x11/rofi-file-browser-extended/Makefile @@ -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> diff --git a/x11/rofi-file-browser-extended/distinfo b/x11/rofi-file-browser-extended/distinfo new file mode 100644 index 000000000000..054b9d945aba --- /dev/null +++ b/x11/rofi-file-browser-extended/distinfo @@ -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 diff --git a/x11/rofi-file-browser-extended/files/patch-CMakeLists.txt b/x11/rofi-file-browser-extended/files/patch-CMakeLists.txt new file mode 100644 index 000000000000..7c9808ad2b72 --- /dev/null +++ b/x11/rofi-file-browser-extended/files/patch-CMakeLists.txt @@ -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}") diff --git a/x11/rofi-file-browser-extended/pkg-descr b/x11/rofi-file-browser-extended/pkg-descr new file mode 100644 index 000000000000..988551f4c076 --- /dev/null +++ b/x11/rofi-file-browser-extended/pkg-descr @@ -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.