diff --git a/sysutils/elephant/Makefile b/sysutils/elephant/Makefile index ebd602a9a4ae..9506c76f8797 100644 --- a/sysutils/elephant/Makefile +++ b/sysutils/elephant/Makefile @@ -1,91 +1,91 @@ PORTNAME= elephant DISTVERSIONPREFIX= v -DISTVERSION= 2.1.8 -PORTREVISION= 2 +DISTVERSION= 2.2.5 CATEGORIES= sysutils MAINTAINER= tagattie@FreeBSD.org COMMENT= Powerful data provider service and backend for application launchers WWW= https://github.com/abenz1267/elephant LICENSE= GPLv3 LICENSE_FILE= ${WRKSRC}/LICENSE 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/v2 GO_TARGET= ./cmd/elephant PLIST_FILES= bin/${PORTNAME} PORTDOCS= README.md 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 PROVIDERS_DESC= Enabled providers CALC_DESC= Perform calculation and unit-conversions CLIPBOARD_DESC= Store clipboard history DESKTOPAPPLICATIONS_DESC=Run installed desktop applications FILES_DESC= Find files/folders MENUS_DESC= Create custom menus PROVIDERLIST_DESC= Lists all providers and configured menus RUNNER_DESC= Execute everything installed in your PATH 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 CALC_RUN_DEPENDS= qalc:math/libqalculate \ wl-copy:x11/wl-clipboard CALC_PLIST_FILES= etc/xdg/elephant/providers/calc.so CLIPBOARD_RUN_DEPENDS= wl-copy:x11/wl-clipboard CLIPBOARD_PLIST_FILES= etc/xdg/elephant/providers/clipboard.so DESKTOPAPPLICATIONS_PLIST_FILES=etc/xdg/elephant/providers/desktopapplications.so FILES_RUN_DEPENDS= fd:sysutils/fd FILES_PLIST_FILES= etc/xdg/elephant/providers/files.so MENUS_PLIST_FILES= etc/xdg/elephant/providers/menus.so PROVIDERLIST_PLIST_FILES=etc/xdg/elephant/providers/providerlist.so RUNNER_PLIST_FILES= etc/xdg/elephant/providers/runner.so SYMBOLS_RUN_DEPENDS= wl-copy:x11/wl-clipboard SYMBOLS_PLIST_FILES= etc/xdg/elephant/providers/symbols.so TODO_RUN_DEPENDS= notify-send:devel/libnotify 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 .include ENABLED_PROVIDERS= ${SELECTED_OPTIONS:NDOCS:tl} post-patch: - @${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|' \ + @${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} @${ECHO_MSG} "===> Building ${provider} from ./internal/providers/${provider}" @cd ${GO_WRKSRC} && \ ${SETENV} ${MAKE_ENV} ${GO_ENV} \ GOMAXPROCS=${MAKE_JOBS_NUMBER} GOPROXY=off \ ${GO_CMD} build ${GO_BUILDFLAGS:C/-buildmode=.*//} -buildmode=plugin \ -o ${GO_WRKDIR_BIN}/${provider}.so \ ./internal/providers/${provider} .endfor post-install: @${MKDIR} ${STAGEDIR}${PREFIX}/etc/xdg/elephant/providers ${INSTALL_LIB} ${GO_WRKDIR_BIN}/*.so \ ${STAGEDIR}${PREFIX}/etc/xdg/elephant/providers post-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_MAN} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR} .include diff --git a/sysutils/elephant/distinfo b/sysutils/elephant/distinfo index 40e71e8fc093..607bddf16aaf 100644 --- a/sysutils/elephant/distinfo +++ b/sysutils/elephant/distinfo @@ -1,5 +1,5 @@ -TIMESTAMP = 1760429024 -SHA256 (go/sysutils_elephant/elephant-v2.1.8/v2.1.8.mod) = 14a4b55d5d6ccd87e99494525a571abd0c17a79c426f3caeba09bd1dc3f08448 -SIZE (go/sysutils_elephant/elephant-v2.1.8/v2.1.8.mod) = 994 -SHA256 (go/sysutils_elephant/elephant-v2.1.8/v2.1.8.zip) = 8682dcd8bef3294bd5f22b13680e45d1a7ea6dedad8df39a4873b310f204e061 -SIZE (go/sysutils_elephant/elephant-v2.1.8/v2.1.8.zip) = 7135212 +TIMESTAMP = 1760870611 +SHA256 (go/sysutils_elephant/elephant-v2.2.5/v2.2.5.mod) = b058902528d9d2e309cc203e7666eb905798ce4540ffd767910d85a4c1b68824 +SIZE (go/sysutils_elephant/elephant-v2.2.5/v2.2.5.mod) = 994 +SHA256 (go/sysutils_elephant/elephant-v2.2.5/v2.2.5.zip) = 5ac7bc745950c41998c67ed83ed80e47cd0457ae7cba01e9754200bad7414735 +SIZE (go/sysutils_elephant/elephant-v2.2.5/v2.2.5.zip) = 7135910 diff --git a/sysutils/elephant/files/patch-vendor_github.com_adrg_xdg_paths__unix.go b/sysutils/elephant/files/patch-vendor_github.com_adrg_xdg_paths__unix.go index bee2e9cd1b8c..68edda2d05a5 100644 --- a/sysutils/elephant/files/patch-vendor_github.com_adrg_xdg_paths__unix.go +++ b/sysutils/elephant/files/patch-vendor_github.com_adrg_xdg_paths__unix.go @@ -1,11 +1,11 @@ ---- vendor/github.com/adrg/xdg/paths_unix.go.orig 2025-10-15 14:39:48 UTC +--- vendor/github.com/adrg/xdg/paths_unix.go.orig 2025-10-19 10:43:42 UTC +++ vendor/github.com/adrg/xdg/paths_unix.go @@ -21,7 +21,7 @@ func initBaseDirs(home string) { baseDirs.dataHome = pathutil.EnvPath(envDataHome, filepath.Join(home, ".local", "share")) baseDirs.data = pathutil.EnvPathList(envDataDirs, "/usr/local/share", "/usr/share") baseDirs.configHome = pathutil.EnvPath(envConfigHome, filepath.Join(home, ".config")) - baseDirs.config = pathutil.EnvPathList(envConfigDirs, "/etc/xdg") -+ baseDirs.config = pathutil.EnvPathList(envConfigDirs, "%%LOCALBASE%%/etc/xdg", "/etc/xdg") ++ baseDirs.config = pathutil.EnvPathList(envConfigDirs, "/usr/local/etc/xdg", "/etc/xdg") baseDirs.stateHome = pathutil.EnvPath(envStateHome, filepath.Join(home, ".local", "state")) baseDirs.cacheHome = pathutil.EnvPath(envCacheHome, filepath.Join(home, ".cache")) baseDirs.runtime = pathutil.EnvPath(envRuntimeDir, filepath.Join("/run/user", strconv.Itoa(os.Getuid())))