mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-04-07 03:10:15 -04:00
app-doc/geeknote: new package, add 9999
Signed-off-by: Vitaly Zdanevich <zdanevich.vitaly@ya.ru>
This commit is contained in:
29
app-doc/geeknote/files/completion.patch
Normal file
29
app-doc/geeknote/files/completion.patch
Normal 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):
|
||||
34
app-doc/geeknote/geeknote-9999.ebuild
Normal file
34
app-doc/geeknote/geeknote-9999.ebuild
Normal 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
|
||||
}
|
||||
12
app-doc/geeknote/metadata.xml
Normal file
12
app-doc/geeknote/metadata.xml
Normal 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>
|
||||
Reference in New Issue
Block a user