From 93958cff63305b2bef45f606ee28d8c752ec32a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gon=C3=A7alo=20Negrier=20Duarte?= Date: Fri, 7 Mar 2025 21:36:55 +0000 Subject: [PATCH 1/2] net-misc/onedrivegui-bin: improve ebuild MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Gonçalo Negrier Duarte --- .../onedrivegui-bin-1.0.3-r2.ebuild | 39 ---------------- .../onedrivegui-bin-1.0.3-r3.ebuild | 46 +++++++++++++++++++ .../onedrivegui-bin-1.1.1-r1.ebuild | 39 ---------------- .../onedrivegui-bin-1.1.1-r2.ebuild | 46 +++++++++++++++++++ 4 files changed, 92 insertions(+), 78 deletions(-) delete mode 100644 net-misc/onedrivegui-bin/onedrivegui-bin-1.0.3-r2.ebuild create mode 100644 net-misc/onedrivegui-bin/onedrivegui-bin-1.0.3-r3.ebuild delete mode 100644 net-misc/onedrivegui-bin/onedrivegui-bin-1.1.1-r1.ebuild create mode 100644 net-misc/onedrivegui-bin/onedrivegui-bin-1.1.1-r2.ebuild diff --git a/net-misc/onedrivegui-bin/onedrivegui-bin-1.0.3-r2.ebuild b/net-misc/onedrivegui-bin/onedrivegui-bin-1.0.3-r2.ebuild deleted file mode 100644 index 1c7eff1..0000000 --- a/net-misc/onedrivegui-bin/onedrivegui-bin-1.0.3-r2.ebuild +++ /dev/null @@ -1,39 +0,0 @@ -# Copyright 1999-2025 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -M_PN=OneDriveGUI - -DESCRIPTION="A simple GUI for OneDrive Linux client, with multi-account support." -HOMEPAGE="https://github.com/bpozdena/OneDriveGUI" - -inherit desktop xdg-utils -SRC_URI=" - https://github.com/bpozdena/${M_PN}/releases/download/v${PV}/${M_PN}-${PV}_fix150-x86_64.AppImage -> ${PN}-${PV}.AppImage - https://github.com/bpozdena/${M_PN}/blob/v${PV}/src/resources/images/OneDriveGUI.png -> OneDriveGUI-${PV}.png -" -S="${WORKDIR}" - -RDEPEND=" - <=net-misc/onedrive-2.5 - sys-fs/fuse:0 -" - -LICENSE="GPL-3" -SLOT="0" -KEYWORDS="-* ~amd64" -RESTRICT="strip" - -src_install() { - #Install binary and alias command - newbin "${DISTDIR}/${PN}-${PV}.AppImage" OneDriveGUI - - #Icon and Desktop File - newicon "${DISTDIR}/OneDriveGUI-${PV}.png" OneDriveGUI.png - domenu "${FILESDIR}/OneDriveGUI.desktop" -} - -pkg_postinst() { - xdg_desktop_database_update -} diff --git a/net-misc/onedrivegui-bin/onedrivegui-bin-1.0.3-r3.ebuild b/net-misc/onedrivegui-bin/onedrivegui-bin-1.0.3-r3.ebuild new file mode 100644 index 0000000..b61fa0c --- /dev/null +++ b/net-misc/onedrivegui-bin/onedrivegui-bin-1.0.3-r3.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +M_PN=OneDriveGUI + +DESCRIPTION="A simple GUI for OneDrive Linux client, with multi-account support." +HOMEPAGE="https://github.com/bpozdena/OneDriveGUI" + +inherit desktop xdg-utils +SRC_URI=" + https://github.com/bpozdena/${M_PN}/releases/download/v${PV}/${M_PN}-${PV}_fix150-x86_64.AppImage -> ${P}.AppImage + https://raw.githubusercontent.com/bpozdena/${M_PN}/refs/tags/v${PV}/src/resources/images/${M_PN}.png -> OneDriveGUI-${PV}.png +" +S="${WORKDIR}" +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="-* ~amd64" + +RDEPEND=" + Date: Fri, 7 Mar 2025 21:33:55 +0000 Subject: [PATCH 2/2] net-misc/onedrivegui: use distutil-r1 functions instead MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Gonçalo Negrier Duarte --- .../onedrivegui/files/OneDriveGUI.desktop | 7 -- .../onedrivegui/files/setup-onedrivegui.cfg | 40 ---------- .../onedrivegui/files/setup-onedrivegui.py | 6 -- .../onedrivegui/onedrivegui-1.0.3-r2.ebuild | 46 ------------ .../onedrivegui/onedrivegui-1.0.3-r3.ebuild | 69 +++++++++++++++++ .../onedrivegui/onedrivegui-1.1.1-r1.ebuild | 46 ------------ .../onedrivegui/onedrivegui-1.1.1-r2.ebuild | 69 +++++++++++++++++ net-misc/onedrivegui/onedrivegui-9999.ebuild | 75 ++++++++++++------- 8 files changed, 187 insertions(+), 171 deletions(-) delete mode 100644 net-misc/onedrivegui/files/OneDriveGUI.desktop delete mode 100644 net-misc/onedrivegui/files/setup-onedrivegui.cfg delete mode 100644 net-misc/onedrivegui/files/setup-onedrivegui.py delete mode 100644 net-misc/onedrivegui/onedrivegui-1.0.3-r2.ebuild create mode 100644 net-misc/onedrivegui/onedrivegui-1.0.3-r3.ebuild delete mode 100644 net-misc/onedrivegui/onedrivegui-1.1.1-r1.ebuild create mode 100644 net-misc/onedrivegui/onedrivegui-1.1.1-r2.ebuild diff --git a/net-misc/onedrivegui/files/OneDriveGUI.desktop b/net-misc/onedrivegui/files/OneDriveGUI.desktop deleted file mode 100644 index b87b5de..0000000 --- a/net-misc/onedrivegui/files/OneDriveGUI.desktop +++ /dev/null @@ -1,7 +0,0 @@ -[Desktop Entry] -Name=OneDriveGUI -StartupNotify=true -Exec=OneDriveGUI -Terminal=false -Icon=/usr/share/pixmaps/OneDriveGUI.png -Type=Application \ No newline at end of file diff --git a/net-misc/onedrivegui/files/setup-onedrivegui.cfg b/net-misc/onedrivegui/files/setup-onedrivegui.cfg deleted file mode 100644 index eb1af44..0000000 --- a/net-misc/onedrivegui/files/setup-onedrivegui.cfg +++ /dev/null @@ -1,40 +0,0 @@ -[metadata] -name = OneDriveGUI -version = _VERSION -author = bpozdena -author_email = bpozdena@example.org -description = A simple GUI for OneDrive Linux client with multi-account support. -long_description = file: README.md -license = GPL-3.0 -license_files = LICENSE -long_description_content_type = text/markdown -url = https://github.com/bpozdena/OneDriveGUI -project_urls = - Bug Tracker = https://github.com/bpozdena/OneDriveGUI/-/issues - repository = https://github.com/bpozdena/OneDriveGUI -classifiers = - Programming Language :: Python :: 3 - -[options] -python_requires = >=3.8 -packages = find: -install_requires= - PySide6_Essentials - requests - -[options.packages.find] -exclude = - tests - -[options.entry_points] -console_scripts = - OneDriveGUI= src.OneDriveGUI:main - -[options.data_files] -lib/OneDriveGUI/resource = src/resources/default_config -lib/OneDriveGUI/resource/images = src/resources/images/*.* -lib/OneDriveGUI/ui = src/ui/*.* -share/pixmaps/ = - src/resources/images/OneDriveGUI.png -share/applications/ = - src/OneDriveGUI.desktop \ No newline at end of file diff --git a/net-misc/onedrivegui/files/setup-onedrivegui.py b/net-misc/onedrivegui/files/setup-onedrivegui.py deleted file mode 100644 index 45f160d..0000000 --- a/net-misc/onedrivegui/files/setup-onedrivegui.py +++ /dev/null @@ -1,6 +0,0 @@ -#!/usr/bin/env python - -import setuptools - -if __name__ == "__main__": - setuptools.setup() \ No newline at end of file diff --git a/net-misc/onedrivegui/onedrivegui-1.0.3-r2.ebuild b/net-misc/onedrivegui/onedrivegui-1.0.3-r2.ebuild deleted file mode 100644 index 71ac84a..0000000 --- a/net-misc/onedrivegui/onedrivegui-1.0.3-r2.ebuild +++ /dev/null @@ -1,46 +0,0 @@ -# Copyright 1999-2025 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -M_PN=OneDriveGUI - -DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=(python3_{9..13}) - -inherit desktop distutils-r1 -if [[ ${PV} == "9999" ]]; then - EGIT_REPO_URI="https://github.com/bpozdena/${M_PN}.git" - inherit git-r3 -else - SRC_URI="https://github.com/bpozdena/${M_PN}/archive/refs/tags/v${PV}.tar.gz -> ${PN}-${PV}.tar.gz" - KEYWORDS="~amd64" - S="${WORKDIR}/${M_PN}-${PV}" -fi - -DESCRIPTION="A simple GUI for OneDrive Linux client, with multi-account support." -HOMEPAGE="https://github.com/bpozdena/OneDriveGUI" - -RDEPEND="