app-doc/geeknote: new package, add 9999

Signed-off-by: Vitaly Zdanevich <zdanevich.vitaly@ya.ru>
This commit is contained in:
Vitaly Zdanevich
2023-08-29 11:01:04 +04:00
parent 5d11bef645
commit 1bbbf8a16d
3 changed files with 75 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
diff --git i/setup.py w/setup.py
index 5cd1e35..a2618ab 100755
--- i/setup.py
+++ w/setup.py
@@ -24,22 +24,22 @@ class full_install(install):
),
(
"zsh-completion-dir=",
None,
"(Linux only) Set zsh completion directory (default: /usr/local/share/zsh/site-functions)",
),
]
def initialize_options(self):
install.initialize_options(self)
- self.bash_completion_dir = "/etc/bash_completion.d"
- self.zsh_completion_dir = "/usr/local/share/zsh/site-functions"
+ self.bash_completion_dir = "${D}"
+ self.zsh_completion_dir = "${D}"
def run(self):
if sys.platform.startswith("linux"):
self.install_autocomplete()
install.run(self)
def install_autocomplete(self):
def copy_autocomplete(src, dst):
try:
if os.path.exists(dst):

View File

@@ -0,0 +1,34 @@
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{10..11} )
DISTUTILS_USE_PEP517=setuptools
inherit distutils-r1 git-r3
DESCRIPTION="Evernote CLI"
HOMEPAGE="https://github.com/Evernote/evernote-sdk-python3"
EGIT_REPO_URI="https://github.com/jeffkowalski/geeknote"
LICENSE="GPL-3"
SLOT="0"
RDEPEND="dev-python/evernote3[${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}]"
src_prepare() {
eapply "${FILESDIR}"/completion.patch
default
}
python_install_all() {
distutils-r1_python_install_all --bash-completion-dir="${D}"/etc/bash_completion.d
}

View File

@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<name>Vitaly Zdanevich</name>
<email>zdanevich.vitaly@ya.ru</email>
</maintainer>
<upstream>
<remote-id type="github">jeffkowalski/geeknote</remote-id>
<bugs-to>https://github.com/jeffkowalski/geeknote/issues</bugs-to>
</upstream>
</pkgmetadata>