diff --git a/net/onedrivegui/Makefile b/net/onedrivegui/Makefile index d261549201f7..a86ce56e977b 100644 --- a/net/onedrivegui/Makefile +++ b/net/onedrivegui/Makefile @@ -1,50 +1,48 @@ PORTNAME= onedrivegui -DISTVERSION= 1.2.1 +DISTVERSION= 1.2.2 DISTVERSIONPREFIX= v CATEGORIES= net python MAINTAINER= acm@FreeBSD.org COMMENT= simple GUI for OneDrive client with multi-account support WWW= https://github.com/bpozdena/OneDriveGUI LICENSE= GPLv3 LICENSE_FILE= ${WRKSRC}/LICENSE RUN_DEPENDS= onedrive:net/onedrive \ ${PYTHON_PKGNAMEPREFIX}pyside6>0:devel/pyside6@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}requests>0:www/py-requests@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}urllib3>0:net/py-urllib3@${PY_FLAVOR} USE_GITHUB= yes GH_ACCOUNT= bpozdena GH_PROJECT= OneDriveGUI USES= desktop-file-utils python shebangfix NO_ARCH= yes NO_BUILD= yes SHEBANG_LANG= python SHEBANG_GLOB= *.py SUB_FILES= onedrivegui.sh post-patch: ${REINPLACE_CMD} -i "" -e "s|%%DATADIR%%|${DATADIR}|g" ${WRKSRC}/src/global_config.py - ${REINPLACE_CMD} -i "" -e "s|%%PYTHON_CMD%%|${PYTHON_CMD}|g" \ - -e "s|%%DATADIR%%|${DATADIR}|g" ${WRKSRC}/src/resources/OneDriveGUI.desktop ${RM} ${WRKSRC}/src/resources/OneDriveGUI.desktop.orig ${RM} ${WRKSRC}/src/global_config.py.orig do-install: @${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/48x48/apps @${MKDIR} ${STAGEDIR}${DATADIR} ${INSTALL_DATA} ${WRKSRC}/src/resources/images/OneDriveGUI.png ${STAGEDIR}${PREFIX}/share/icons/hicolor/48x48/apps/onedrivegui.png ${INSTALL_DATA} ${WRKSRC}/src/resources/OneDriveGUI.desktop ${STAGEDIR}${DESKTOPDIR} @cd ${WRKSRC}/src && ${COPYTREE_SHARE} "resources settings ui utils" ${STAGEDIR}${DATADIR}/ ${INSTALL_SCRIPT} ${WRKSRC}/src/*.py ${STAGEDIR}${DATADIR} ${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME}.sh ${STAGEDIR}${PREFIX}/bin/${PORTNAME} .include diff --git a/net/onedrivegui/distinfo b/net/onedrivegui/distinfo index 3cbd1a2282e4..4c67e99ee9c8 100644 --- a/net/onedrivegui/distinfo +++ b/net/onedrivegui/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1752769251 -SHA256 (bpozdena-OneDriveGUI-v1.2.1_GH0.tar.gz) = 50320c5df5ad599da673af35a0f5d0c80a0f9d4f979333a06a762017a64224c5 -SIZE (bpozdena-OneDriveGUI-v1.2.1_GH0.tar.gz) = 112478 +TIMESTAMP = 1759115543 +SHA256 (bpozdena-OneDriveGUI-v1.2.2_GH0.tar.gz) = c98fe134fae3b58188b2408b4733520335d5a1682cd7d9709b7f34ad7cf05758 +SIZE (bpozdena-OneDriveGUI-v1.2.2_GH0.tar.gz) = 115872 diff --git a/net/onedrivegui/files/patch-src_global__config.py b/net/onedrivegui/files/patch-src_global__config.py index 3455329b4b49..307a1b61a407 100644 --- a/net/onedrivegui/files/patch-src_global__config.py +++ b/net/onedrivegui/files/patch-src_global__config.py @@ -1,11 +1,11 @@ --- src/global_config.py.orig 2025-06-16 11:23:57 UTC +++ src/global_config.py @@ -7,7 +7,7 @@ from configparser import ConfigParser from configparser import ConfigParser -DIR_PATH = os.path.dirname(os.path.realpath(__file__)) -+DIR_PATH = "/usr/local/share/onedrivegui" ++DIR_PATH = "%%DATADIR%%" PROFILES_FILE = os.path.expanduser("~/.config/onedrive-gui/profiles") diff --git a/net/onedrivegui/files/patch-src_resources_OneDriveGUI.desktop b/net/onedrivegui/files/patch-src_resources_OneDriveGUI.desktop index 02801c7b71da..42c424dfddf7 100644 --- a/net/onedrivegui/files/patch-src_resources_OneDriveGUI.desktop +++ b/net/onedrivegui/files/patch-src_resources_OneDriveGUI.desktop @@ -1,18 +1,15 @@ ---- src/resources/OneDriveGUI.desktop.orig 2025-06-16 11:23:57 UTC +--- src/resources/OneDriveGUI.desktop.orig 2025-09-10 08:49:21 UTC +++ src/resources/OneDriveGUI.desktop -@@ -1,8 +1,10 @@ Name=OneDriveGUI +@@ -1,9 +1,9 @@ Name=OneDriveGUI [Desktop Entry] Name=OneDriveGUI -+GenericName=OneDrive Client for FreeBSD - StartupNotify=true --Exec=/usr/bin/python3 /home/bob/host_share/Python/OneDriveGUI/src/OneDriveGUI.py +-Comment=A simple GUI for OneDrive Linux client +-Exec=OneDriveGUI ++Comment=A simple GUI for OneDrive FreeBSD client +Exec=onedrivegui Terminal=false --Path=/home/bob/host_share/Python/OneDriveGUI/src/resources/images --Icon=/home/bob/host_share/Python/OneDriveGUI/src/resources/images/icons8-clouds-48.png --Type=Application -\ No newline at end of file + Type=Application +-Icon=OneDriveGUI +Icon=onedrivegui -+Categories=Network; -+Type=Application -+ + Categories=Network;Office + StartupNotify=true