Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: David Roman <davidroman96@gmail.com> Package-Manager: Portage-2.3.51, Repoman-2.3.11
- Loading branch information
Showing
4 changed files
with
211 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
DIST bookmarks.zip 449981 BLAKE2B a758cc79c7009c2f36d46be64d074c6979444faf7eba6a49a23c7af30a9dd229121d56fccd154226fb4f466f7581ba2033e693e6f3a16eb3e3726adfae9fe7eb SHA512 a93f2e99f802aedd3660e7475ac01ecb7b2bd00e03d3e1991b3784121fa4b4561fb02fd68668edc0f06e6d17672714937676222d1feabaf3aaaa5efd17d115e4 | ||
DIST buku-3.7.tar.gz 98970 BLAKE2B 7227b5fb632d9ec92ef236d1889f2ba0872d67d2c3cfb302beab48b03e8d62a762d02e517014d5041a9f79deab74d0f5ceca12c315eb77922f73d359b58a48b5 SHA512 c515e11686aa8888231ffc8c1d6ec29d6143f1714eacdf640d8d3d3fa3fd469e111073762a3ba831dd673d63034afe3db181ec66501c18165e8ddd97cbc57c82 | ||
DIST buku-4.1.tar.gz 478709 BLAKE2B e5aac262ae58e938083c78d1f34350d0fa003d4205d9e5f0a956c690edd51699fcb824c1ac7d91e25d159e695799fdc3341cb568d1e0b88365353d7d3094b317 SHA512 52c853767cf7007e66dca11574051d6f6c75546bcf51b2c8cf5c58d954b95256875cd6ce7377a77db5dee4016c2c7ef1665829c28226ce6610deec0c920e4c15 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,103 @@ | ||
# Copyright 1999-2019 Gentoo Authors | ||
# Distributed under the terms of the GNU General Public License v2 | ||
|
||
EAPI=7 | ||
|
||
PYTHON_COMPAT=( python3_{5,6} ) | ||
|
||
inherit bash-completion-r1 distutils-r1 | ||
|
||
DESCRIPTION="Powerful command-line bookmark manager" | ||
HOMEPAGE="https://github.com/jarun/Buku" | ||
|
||
SRC_URI="https://github.com/jarun/Buku/files/1319933/bookmarks.zip" | ||
|
||
if [[ ${PV} == *9999 ]]; then | ||
inherit git-r3 | ||
EGIT_REPO_URI="https://github.com/jarun/Buku" | ||
else | ||
# Tests are not working with the pypi version (https://github.com/jarun/Buku/issues/325) | ||
SRC_URI="${SRC_URI} https://github.com/jarun/Buku/archive/v${PV}.tar.gz -> ${P}.tar.gz" | ||
|
||
# SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz -> ${P}.tar.gz" | ||
|
||
# Github folder name starts with capital B | ||
S="${WORKDIR}/${P^}" | ||
|
||
KEYWORDS="~amd64 ~x86" | ||
fi | ||
|
||
LICENSE="GPL-3" | ||
SLOT="0" | ||
IUSE="test server" | ||
|
||
CLIENT_DEPEND="dev-python/beautifulsoup:4[${PYTHON_USEDEP}] | ||
dev-python/certifi[${PYTHON_USEDEP}] | ||
dev-python/cryptography[${PYTHON_USEDEP}] | ||
dev-python/html5lib[${PYTHON_USEDEP}] | ||
>=dev-python/urllib3-1.13.1[${PYTHON_USEDEP}]" | ||
|
||
SERVER_DEPEND="dev-python/arrow[${PYTHON_USEDEP}] | ||
dev-python/click[${PYTHON_USEDEP}] | ||
dev-python/flask[${PYTHON_USEDEP}] | ||
dev-python/flask-admin[${PYTHON_USEDEP}] | ||
dev-python/flask-api[${PYTHON_USEDEP}] | ||
dev-python/flask-bootstrap[${PYTHON_USEDEP}] | ||
dev-python/flask-paginate[${PYTHON_USEDEP}] | ||
dev-python/flask-wtf[${PYTHON_USEDEP}] | ||
dev-python/requests[${PYTHON_USEDEP}] | ||
dev-python/werkzeug[${PYTHON_USEDEP}]" | ||
|
||
RDEPEND="${CLIENT_DEPEND} | ||
server? ( ${SERVER_DEPEND} )" | ||
|
||
DEPEND="${RDEPEND} | ||
test? ( | ||
dev-python/attrs[${PYTHON_USEDEP}] | ||
dev-python/hypothesis[${PYTHON_USEDEP}] | ||
dev-python/py[${PYTHON_USEDEP}] | ||
dev-python/pytest[${PYTHON_USEDEP}] | ||
dev-python/pyyaml[${PYTHON_USEDEP}] | ||
dev-python/vcrpy[${PYTHON_USEDEP}] | ||
) | ||
" | ||
|
||
python_prepare_all() { | ||
distutils-r1_python_prepare_all | ||
|
||
if ! use server; then | ||
sed -i 's/, '\''bukuserver=bukuserver.server:cli'\''\]/\]/g' setup.py || die | ||
sed -i 's/de=\['\''tests/de=\['\''bukuserver'\'', '\''tests/g' setup.py || die | ||
fi | ||
|
||
if use test; then | ||
unpack bookmarks.zip || die | ||
mv Bookmarks places.sqlite "${S}/tests/test_bukuDb" || die | ||
fi | ||
} | ||
|
||
python_install_all() { | ||
distutils-r1_python_install_all | ||
|
||
insinto /usr/share/zsh/site-functions | ||
doins auto-completion/zsh/_* | ||
|
||
newbashcomp auto-completion/bash/buku-completion.bash "${PN}" | ||
|
||
insinto /usr/share/zsh/site-functions | ||
newins auto-completion/zsh/_buku _buku | ||
|
||
doman buku.1 | ||
} | ||
|
||
python_test() { | ||
local skipped=("_rec" "refreshdb" "tnyfy_url" "with_url" "test_browse" \ | ||
"search" "_tag" "_compactdb" "cleardb" ) | ||
|
||
local args="not ${skipped[0]}" | ||
for i in ${skipped[@]:1}; do | ||
args+=" and not $i" | ||
done | ||
|
||
py.test -vv -k "$args" tests/test_*.py || die | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,103 @@ | ||
# Copyright 1999-2019 Gentoo Authors | ||
# Distributed under the terms of the GNU General Public License v2 | ||
|
||
EAPI=7 | ||
|
||
PYTHON_COMPAT=( python3_{5,6} ) | ||
|
||
inherit bash-completion-r1 distutils-r1 | ||
|
||
DESCRIPTION="Powerful command-line bookmark manager" | ||
HOMEPAGE="https://github.com/jarun/Buku" | ||
|
||
SRC_URI="https://github.com/jarun/Buku/files/1319933/bookmarks.zip" | ||
|
||
if [[ ${PV} == *9999 ]]; then | ||
inherit git-r3 | ||
EGIT_REPO_URI="https://github.com/jarun/Buku" | ||
else | ||
# Tests are not working with the pypi version (https://github.com/jarun/Buku/issues/325) | ||
SRC_URI="${SRC_URI} https://github.com/jarun/Buku/archive/v${PV}.tar.gz -> ${P}.tar.gz" | ||
|
||
# SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz -> ${P}.tar.gz" | ||
|
||
# Github folder name starts with capital B | ||
S="${WORKDIR}/${P^}" | ||
|
||
KEYWORDS="~amd64 ~x86" | ||
fi | ||
|
||
LICENSE="GPL-3" | ||
SLOT="0" | ||
IUSE="test server" | ||
|
||
CLIENT_DEPEND="dev-python/beautifulsoup:4[${PYTHON_USEDEP}] | ||
dev-python/certifi[${PYTHON_USEDEP}] | ||
dev-python/cryptography[${PYTHON_USEDEP}] | ||
dev-python/html5lib[${PYTHON_USEDEP}] | ||
>=dev-python/urllib3-1.13.1[${PYTHON_USEDEP}]" | ||
|
||
SERVER_DEPEND="dev-python/arrow[${PYTHON_USEDEP}] | ||
dev-python/click[${PYTHON_USEDEP}] | ||
dev-python/flask[${PYTHON_USEDEP}] | ||
dev-python/flask-admin[${PYTHON_USEDEP}] | ||
dev-python/flask-api[${PYTHON_USEDEP}] | ||
dev-python/flask-bootstrap[${PYTHON_USEDEP}] | ||
dev-python/flask-paginate[${PYTHON_USEDEP}] | ||
dev-python/flask-wtf[${PYTHON_USEDEP}] | ||
dev-python/requests[${PYTHON_USEDEP}] | ||
dev-python/werkzeug[${PYTHON_USEDEP}]" | ||
|
||
RDEPEND="${CLIENT_DEPEND} | ||
server? ( ${SERVER_DEPEND} )" | ||
|
||
DEPEND="${RDEPEND} | ||
test? ( | ||
dev-python/attrs[${PYTHON_USEDEP}] | ||
dev-python/hypothesis[${PYTHON_USEDEP}] | ||
dev-python/py[${PYTHON_USEDEP}] | ||
dev-python/pytest[${PYTHON_USEDEP}] | ||
dev-python/pyyaml[${PYTHON_USEDEP}] | ||
dev-python/vcrpy[${PYTHON_USEDEP}] | ||
) | ||
" | ||
|
||
python_prepare_all() { | ||
distutils-r1_python_prepare_all | ||
|
||
if ! use server; then | ||
sed -i 's/, '\''bukuserver=bukuserver.server:cli'\''\]/\]/g' setup.py || die | ||
sed -i 's/de=\['\''tests/de=\['\''bukuserver'\'', '\''tests/g' setup.py || die | ||
fi | ||
|
||
if use test; then | ||
unpack bookmarks.zip || die | ||
mv Bookmarks places.sqlite "${S}/tests/test_bukuDb" || die | ||
fi | ||
} | ||
|
||
python_install_all() { | ||
distutils-r1_python_install_all | ||
|
||
insinto /usr/share/zsh/site-functions | ||
doins auto-completion/zsh/_* | ||
|
||
newbashcomp auto-completion/bash/buku-completion.bash "${PN}" | ||
|
||
insinto /usr/share/zsh/site-functions | ||
newins auto-completion/zsh/_buku _buku | ||
|
||
doman buku.1 | ||
} | ||
|
||
python_test() { | ||
local skipped=("_rec" "refreshdb" "tnyfy_url" "with_url" "test_browse" \ | ||
"search" "_tag" "_compactdb" "cleardb" ) | ||
|
||
local args="not ${skipped[0]}" | ||
for i in ${skipped[@]:1}; do | ||
args+=" and not $i" | ||
done | ||
|
||
py.test -vv -k "$args" tests/test_*.py || die | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters