summaryrefslogtreecommitdiff
path: root/sysutils/elephant/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/elephant/Makefile')
-rw-r--r--sysutils/elephant/Makefile22
1 files changed, 13 insertions, 9 deletions
diff --git a/sysutils/elephant/Makefile b/sysutils/elephant/Makefile
index 0d8774e9f236..10344bfd81a5 100644
--- a/sysutils/elephant/Makefile
+++ b/sysutils/elephant/Makefile
@@ -1,7 +1,6 @@
PORTNAME= elephant
DISTVERSIONPREFIX= v
-DISTVERSION= 1.3.2
-PORTREVISION= 1
+DISTVERSION= 2.4.1
CATEGORIES= sysutils
MAINTAINER= tagattie@FreeBSD.org
@@ -11,12 +10,12 @@ WWW= https://github.com/abenz1267/elephant
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/LICENSE
-NOT_FOR_ARCHS= i386
-NOT_FOR_ARCHS_REASON= -buildmode=plugin not supported on freebsd/386
+NOT_FOR_ARCHS= aarch64 armv7 i386
+NOT_FOR_ARCHS_REASON= -buildmode=plugin not supported on these architectures
-USES= go:1.25,modules
+USES= go:modules
-GO_MODULE= github.com/abenz1267/elephant
+GO_MODULE= github.com/abenz1267/elephant/v2
GO_TARGET= ./cmd/elephant
PLIST_FILES= bin/${PORTNAME}
@@ -26,7 +25,8 @@ OPTIONS_DEFINE= DOCS
OPTIONS_DEFAULT= ${OPTIONS_GROUP_PROVIDERS}
OPTIONS_GROUP= PROVIDERS
OPTIONS_GROUP_PROVIDERS=CALC CLIPBOARD DESKTOPAPPLICATIONS FILES MENUS \
- PROVIDERLIST RUNNER SYMBOLS TODO UNICODE WEBSEARCH
+ PROVIDERLIST RUNNER SYMBOLS TODO UNICODE WEBSEARCH \
+ WINDOWS
PROVIDERS_DESC= Enabled providers
CALC_DESC= Perform calculation and unit-conversions
@@ -40,6 +40,7 @@ SYMBOLS_DESC= Search for emojis and symbols
TODO_DESC= Basic Todolist
UNICODE_DESC= Search for unicode symbols
WEBSEARCH_DESC= Search web with custom defined search engines
+WINDOWS_DESC= Find and focus opened windows
CALC_RUN_DEPENDS= qalc:math/libqalculate \
wl-copy:x11/wl-clipboard
@@ -59,14 +60,17 @@ TODO_PLIST_FILES= etc/xdg/elephant/providers/todo.so
UNICODE_RUN_DEPENDS= wl-copy:x11/wl-clipboard
UNICODE_PLIST_FILES= etc/xdg/elephant/providers/unicode.so
WEBSEARCH_PLIST_FILES= etc/xdg/elephant/providers/websearch.so
+WINDOWS_LIB_DEPENDS= libwayland-client.so:graphics/wayland
+WINDOWS_PLIST_FILES= etc/xdg/elephant/providers/windows.so
.include <bsd.port.options.mk>
ENABLED_PROVIDERS= ${SELECTED_OPTIONS:NDOCS:tl}
post-patch:
- @${REINPLACE_CMD} -e 's|/etc|${PREFIX}&|' \
- ${GO_WRKSRC}/internal/providers/load.go
+ @${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|; \
+ s|/run/user|/var&|' \
+ ${GO_WRKSRC}/vendor/github.com/adrg/xdg/paths_unix.go
post-build:
.for provider in ${ENABLED_PROVIDERS}