From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id CB4031580E0 for ; Sun, 26 Jan 2025 23:30:45 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id B38CD34351B for ; Sun, 26 Jan 2025 23:30:45 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id D69A9110470; Sun, 26 Jan 2025 23:30:41 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id C626E110470 for ; Sun, 26 Jan 2025 23:30:41 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 4F6CD343513 for ; Sun, 26 Jan 2025 23:30:41 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 9A528E65 for ; Sun, 26 Jan 2025 23:30:39 +0000 (UTC) From: "Gonçalo Negrier Duarte" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Gonçalo Negrier Duarte" Message-ID: <1737932865.5653a89ff386f26ccd065fb38d17bb88aeba9601.gonegrier.duarte@gentoo> Subject: [gentoo-commits] repo/user/dlang:master commit in: net-misc/onedrivegui/files/, net-misc/onedrivegui/ X-VCS-Repository: repo/user/dlang X-VCS-Files: net-misc/onedrivegui/files/OneDriveGUI net-misc/onedrivegui/files/OneDriveGUI.desktop net-misc/onedrivegui/files/setup-onedrivegui.cfg net-misc/onedrivegui/files/setup-onedrivegui.py net-misc/onedrivegui/onedrivegui-1.0.3-r1.ebuild net-misc/onedrivegui/onedrivegui-1.0.3-r2.ebuild net-misc/onedrivegui/onedrivegui-1.1.1-r1.ebuild net-misc/onedrivegui/onedrivegui-1.1.1.ebuild net-misc/onedrivegui/onedrivegui-9999.ebuild X-VCS-Directories: net-misc/onedrivegui/ net-misc/onedrivegui/files/ X-VCS-Committer: gonegrier.duarte X-VCS-Committer-Name: Gonçalo Negrier Duarte X-VCS-Revision: 5653a89ff386f26ccd065fb38d17bb88aeba9601 X-VCS-Branch: master Date: Sun, 26 Jan 2025 23:30:39 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 2b94e063-0328-41d3-81a4-f4cecf855286 X-Archives-Hash: 3968f40ec44c0eb5d9c8caa68fdd17e1 commit: 5653a89ff386f26ccd065fb38d17bb88aeba9601 Author: Gonçalo Negrier Duarte gmail com> AuthorDate: Sun Jan 26 23:07:45 2025 +0000 Commit: Gonçalo Negrier Duarte gmail com> CommitDate: Sun Jan 26 23:07:45 2025 +0000 URL: https://gitweb.gentoo.org/repo/user/dlang.git/commit/?id=5653a89f net-misc/onedrivegui: add 1.1.1-r1, 1.0.3-r2, drop 1.1.1, 1.0.3-r1 * update ebuilds to use distutils-r1 Signed-off-by: Gonçalo Negrier Duarte gmail.com> net-misc/onedrivegui/files/OneDriveGUI | 2 -- net-misc/onedrivegui/files/OneDriveGUI.desktop | 4 +-- net-misc/onedrivegui/files/setup-onedrivegui.cfg | 40 +++++++++++++++++++++ net-misc/onedrivegui/files/setup-onedrivegui.py | 6 ++++ net-misc/onedrivegui/onedrivegui-1.0.3-r1.ebuild | 33 ----------------- net-misc/onedrivegui/onedrivegui-1.0.3-r2.ebuild | 46 ++++++++++++++++++++++++ net-misc/onedrivegui/onedrivegui-1.1.1-r1.ebuild | 46 ++++++++++++++++++++++++ net-misc/onedrivegui/onedrivegui-1.1.1.ebuild | 33 ----------------- net-misc/onedrivegui/onedrivegui-9999.ebuild | 44 +++++++++++++++-------- 9 files changed, 170 insertions(+), 84 deletions(-) diff --git a/net-misc/onedrivegui/files/OneDriveGUI b/net-misc/onedrivegui/files/OneDriveGUI deleted file mode 100644 index 4286f78..0000000 --- a/net-misc/onedrivegui/files/OneDriveGUI +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/sh -/usr/bin/python /opt/OneDriveGUI/OneDriveGUI.py \ No newline at end of file diff --git a/net-misc/onedrivegui/files/OneDriveGUI.desktop b/net-misc/onedrivegui/files/OneDriveGUI.desktop index 784f423..b87b5de 100644 --- a/net-misc/onedrivegui/files/OneDriveGUI.desktop +++ b/net-misc/onedrivegui/files/OneDriveGUI.desktop @@ -1,7 +1,7 @@ [Desktop Entry] Name=OneDriveGUI StartupNotify=true -Exec=/usr/bin/python /opt/OneDriveGUI/OneDriveGUI.py +Exec=OneDriveGUI Terminal=false -Icon=OneDriveGUI +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 new file mode 100644 index 0000000..eb1af44 --- /dev/null +++ b/net-misc/onedrivegui/files/setup-onedrivegui.cfg @@ -0,0 +1,40 @@ +[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 new file mode 100644 index 0000000..45f160d --- /dev/null +++ b/net-misc/onedrivegui/files/setup-onedrivegui.py @@ -0,0 +1,6 @@ +#!/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-r1.ebuild b/net-misc/onedrivegui/onedrivegui-1.0.3-r1.ebuild deleted file mode 100644 index 1674677..0000000 --- a/net-misc/onedrivegui/onedrivegui-1.0.3-r1.ebuild +++ /dev/null @@ -1,33 +0,0 @@ -# Copyright 1999-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -M_PN=OneDriveGUI - -inherit desktop -SRC_URI="https://github.com/bpozdena/OneDriveGUI/archive/refs/tags/v${PV}.tar.gz -> ${PN}-${PV}.tar.gz" -DESCRIPTION="A simple GUI for OneDrive Linux client, with multi-account support." -HOMEPAGE="https://github.com/bpozdena/OneDriveGUI" - -RDEPEND="<=net-misc/onedrive-2.5.3 - dev-python/requests - dev-python/pyside6[gui(+),webengine(+),widgets(+)] -" - -LICENSE="GPL-3" -SLOT="0" -KEYWORDS="~amd64" - -S="${WORKDIR}/${M_PN}-${PV}" - -src_install() { - #Install binary and alias command - insinto /opt/OneDriveGUI/ && doins -r "${S}/src/resources" && doins -r "${S}/src/ui" && doins -r "${S}/src/OneDriveGUI.py" - insinto /opt/bin/ && doins "${FILESDIR}/OneDriveGUI" - fperms +x /opt/OneDriveGUI/OneDriveGUI.py /opt/bin/OneDriveGUI - - #Icon and Desktop File - doicon "${S}/src/resources/images/OneDriveGUI.ico" - domenu "${FILESDIR}/OneDriveGUI.desktop" -} diff --git a/net-misc/onedrivegui/onedrivegui-1.0.3-r2.ebuild b/net-misc/onedrivegui/onedrivegui-1.0.3-r2.ebuild new file mode 100644 index 0000000..71ac84a --- /dev/null +++ b/net-misc/onedrivegui/onedrivegui-1.0.3-r2.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 + +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="=net-misc/onedrive-2.5 dev-python/requests dev-python/pyside6[gui(+),webengine(+),widgets(+)] " @@ -18,13 +29,18 @@ RDEPEND=">=net-misc/onedrive-2.5.3 LICENSE="GPL-3" SLOT="0" -src_install() { - #Install binary and alias command - insinto /opt/OneDriveGUI/ && doins -r "${S}/src/resources" && doins -r "${S}/src/ui" && doins -r "${S}/src/OneDriveGUI.py" - insinto /opt/bin/ && doins "${FILESDIR}/OneDriveGUI" - fperms +x /opt/OneDriveGUI/OneDriveGUI.py /opt/bin/OneDriveGUI +src_prepare() { + cp "${FILESDIR}/setup-onedrivegui.py" "${S}/setup.py" || die + cp "${FILESDIR}/setup-onedrivegui.cfg" "${S}/setup.cfg" || die + cp "${FILESDIR}/OneDriveGUI.desktop" "${S}/src/OneDriveGUI.desktop" || die + + if [[ ${PV} == "9999" ]]; then + #fix python package version + sed -i "s/version = _VERSION/version = 9999/g" "${S}/setup.cfg" || die + else + #fix python package version + sed -i "s/version = _VERSION/version = ${PV}/g" "${S}/setup.cfg" || die + fi - #Icon and Desktop File - doicon "${S}/src/resources/images/OneDriveGUI.ico" - domenu "${FILESDIR}/OneDriveGUI.desktop" -} + default +} \ No newline at end of file