summaryrefslogtreecommitdiff
path: root/sysutils/elephant/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/elephant/Makefile')
-rw-r--r--sysutils/elephant/Makefile15
1 files changed, 8 insertions, 7 deletions
diff --git a/sysutils/elephant/Makefile b/sysutils/elephant/Makefile
index a5090ec297f0..9506c76f8797 100644
--- a/sysutils/elephant/Makefile
+++ b/sysutils/elephant/Makefile
@@ -1,6 +1,6 @@
PORTNAME= elephant
DISTVERSIONPREFIX= v
-DISTVERSION= 1.0.4
+DISTVERSION= 2.2.5
CATEGORIES= sysutils
MAINTAINER= tagattie@FreeBSD.org
@@ -10,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}
@@ -64,8 +64,9 @@ WEBSEARCH_PLIST_FILES= etc/xdg/elephant/providers/websearch.so
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}