From 679a0223383cea8ae828858d0bbc3532c0229322 Mon Sep 17 00:00:00 2001 From: Vitaly Zdanevich Date: Sat, 15 Jun 2024 06:10:38 +0400 Subject: [PATCH] */*: add versioned ebuild Signed-off-by: Vitaly Zdanevich --- app-doc/geeknote/Manifest | 1 + ...te-9999-remove_completion_from_setup.patch | 21 ---------- app-doc/geeknote/geeknote-3.0.5.ebuild | 41 +++++++++++++++++++ app-doc/geeknote/geeknote-9999.ebuild | 2 - dev-python/evernote2/Manifest | 1 + dev-python/evernote2/evernote2-1.0.3.ebuild | 26 ++++++++++++ 6 files changed, 69 insertions(+), 23 deletions(-) create mode 100644 app-doc/geeknote/Manifest delete mode 100644 app-doc/geeknote/files/geeknote-9999-remove_completion_from_setup.patch create mode 100644 app-doc/geeknote/geeknote-3.0.5.ebuild create mode 100644 dev-python/evernote2/Manifest create mode 100644 dev-python/evernote2/evernote2-1.0.3.ebuild diff --git a/app-doc/geeknote/Manifest b/app-doc/geeknote/Manifest new file mode 100644 index 0000000000..515be19b3c --- /dev/null +++ b/app-doc/geeknote/Manifest @@ -0,0 +1 @@ +DIST geeknote-3.0.5.tar.gz 69842 BLAKE2B c6bc3c0622625531d2dc96f334d86fb3dcb9dc4ad459f7a1cbe54e64593641d40b485021b2442a8ac1c56ea5167bcdd46f1a4d9063150945a9a40d3e528aba37 SHA512 87f7598bff94c7b42c276270ab75fbf7dbc26b82229359bcdc684633b1cced2a42716590212b6c19be7e68330b08c292a54d9612eaf72c71bfd5a34c8c4036ac diff --git a/app-doc/geeknote/files/geeknote-9999-remove_completion_from_setup.patch b/app-doc/geeknote/files/geeknote-9999-remove_completion_from_setup.patch deleted file mode 100644 index c31c3c6c7d..0000000000 --- a/app-doc/geeknote/files/geeknote-9999-remove_completion_from_setup.patch +++ /dev/null @@ -1,21 +0,0 @@ ---- a/setup.py -+++ b/setup.py -@@ -52,12 +52,12 @@ class full_install(install): - print(traceback.format_exc()) - - print("installing autocomplete") -- copy_autocomplete( -- "completion/bash_completion/_geeknote", self.bash_completion_dir -- ) -- copy_autocomplete( -- "completion/zsh_completion/_geeknote", self.zsh_completion_dir -- ) -+# copy_autocomplete( -+# "completion/bash_completion/_geeknote", self.bash_completion_dir -+# ) -+# copy_autocomplete( -+# "completion/zsh_completion/_geeknote", self.zsh_completion_dir -+# ) - - - with open("geeknote/__init__.py") as f: diff --git a/app-doc/geeknote/geeknote-3.0.5.ebuild b/app-doc/geeknote/geeknote-3.0.5.ebuild new file mode 100644 index 0000000000..17e814e84e --- /dev/null +++ b/app-doc/geeknote/geeknote-3.0.5.ebuild @@ -0,0 +1,41 @@ +# Copyright 2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{11..12} ) +DISTUTILS_USE_PEP517=setuptools + +inherit distutils-r1 + +DESCRIPTION="Evernote CLI: CRUD for notes in cloud, in markdown" +HOMEPAGE="https://github.com/vitaly-zdanevich/geeknote" +SRC_URI="https://github.com/vitaly-zdanevich/$PN/archive/refs/tags/v$PV.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64" + +BDEPEND="test? ( + dev-python/mock[${PYTHON_USEDEP}] +)" + +RDEPEND=" + dev-python/evernote2[${PYTHON_USEDEP}] + dev-python/html2text[${PYTHON_USEDEP}] + dev-python/sqlalchemy[${PYTHON_USEDEP}] + dev-python/markdown2[${PYTHON_USEDEP}] + dev-python/beautifulsoup4[${PYTHON_USEDEP}] + dev-python/thrift[${PYTHON_USEDEP}] + dev-python/lxml[${PYTHON_USEDEP}] +" + +RESTRICT="test" + +distutils_enable_tests pytest + +pkg_postinst() { + einfo "Autocompletion plugin is already bundled in oh-my-zsh. To enable just configure plugin definition" + einfo "plugins=( ... geeknote ...)" + einfo "see more at https://github.com/s7anley/zsh-geeknote" +} diff --git a/app-doc/geeknote/geeknote-9999.ebuild b/app-doc/geeknote/geeknote-9999.ebuild index 0cb845e3f7..ce78f8a520 100644 --- a/app-doc/geeknote/geeknote-9999.ebuild +++ b/app-doc/geeknote/geeknote-9999.ebuild @@ -29,8 +29,6 @@ RDEPEND=" dev-python/lxml[${PYTHON_USEDEP}] " -PATCHES=( "${FILESDIR}/${P}-remove_completion_from_setup.patch" ) - RESTRICT="test" # python_install_all() { diff --git a/dev-python/evernote2/Manifest b/dev-python/evernote2/Manifest new file mode 100644 index 0000000000..544ce1cc49 --- /dev/null +++ b/dev-python/evernote2/Manifest @@ -0,0 +1 @@ +DIST v1.0.3.tar.gz 247239 BLAKE2B 899067b7736a9e8e7932f1fe5b2c3c5e20650f5bc836f184de18ee7576cec1edb34c25211119bc41917a54bdabff65a6b33216f6bead08fcb3989081a87afff3 SHA512 2df19761dd02d67e1faa7a702ea363530b485e9a5c3ccab7e90f987cdbf06a4d1f00de0066c7cbce15f8a489bb0879d1024226ff8ef9aaff0226eb66f0a6998d diff --git a/dev-python/evernote2/evernote2-1.0.3.ebuild b/dev-python/evernote2/evernote2-1.0.3.ebuild new file mode 100644 index 0000000000..f663b23a8f --- /dev/null +++ b/dev-python/evernote2/evernote2-1.0.3.ebuild @@ -0,0 +1,26 @@ +# Copyright Gentoo Authors 2024 +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{9..12} ) + +inherit distutils-r1 + +DESCRIPTION="Unofficial Evernote SDK for Python 3" +HOMEPAGE=" + https://github.com/JackonYang/evernote2 + https://pypi.org/project/evernote2/ +" +SRC_URI="https://github.com/JackonYang/$PN/archive/refs/tags/v$PV.tar.gz" + +LICENSE="Apache-2.0" + +SLOT="0" +KEYWORDS="~amd64" + +RDEPEND=" + dev-python/oauthlib[${PYTHON_USEDEP}] + dev-python/thrift[${PYTHON_USEDEP}] +"