Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-analyzer/linkchecker/, net-analyzer/linkchecker/files/
Date: Fri, 24 Dec 2021 06:47:57
Message-Id: 1640328422.93c84c844c18bffebfc7751628cfac0666f4429d.sam@gentoo
1 commit: 93c84c844c18bffebfc7751628cfac0666f4429d
2 Author: Tomáš Mózes <hydrapolic <AT> gmail <DOT> com>
3 AuthorDate: Fri Dec 24 06:34:35 2021 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Fri Dec 24 06:47:02 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=93c84c84
7
8 net-analyzer/linkchecker: bump to 10.1.0
9
10 Signed-off-by: Tomáš Mózes <hydrapolic <AT> gmail.com>
11 Signed-off-by: Sam James <sam <AT> gentoo.org>
12
13 net-analyzer/linkchecker/Manifest | 1 +
14 .../files/linkchecker-10.1.0-version.patch | 32 ++++++++++++
15 net-analyzer/linkchecker/linkchecker-10.1.0.ebuild | 60 ++++++++++++++++++++++
16 3 files changed, 93 insertions(+)
17
18 diff --git a/net-analyzer/linkchecker/Manifest b/net-analyzer/linkchecker/Manifest
19 index 2e7f18ffea10..9e0c64f510b3 100644
20 --- a/net-analyzer/linkchecker/Manifest
21 +++ b/net-analyzer/linkchecker/Manifest
22 @@ -1,2 +1,3 @@
23 DIST linkchecker-10.0.0_pre20200729.tar.gz 401694 BLAKE2B f1a0918c30b292e569fd3168eee152e63ba7266f0ef848a55601e0205d8b0521cb653db77c8dc7b5d1140b493c95e50d76acba44e961586159f2b691e6898353 SHA512 35c49ca5de06688667e39f4eb0d8a048e565fe460a4aff125a484e3966c62cbea95fd95154cb2b544c0f4987f66012793726cf890d604321ed83970654a318f6
24 DIST linkchecker-10.0.1.tar.gz 512649 BLAKE2B f0373da6c1b4c18394500f32936065dca8b4a92532f5da6f15a4470c2e458df147009599939a41fc36f5ae4941c0fdd97aa9bf77a7237544f3df3bf5772ed884 SHA512 2d57092591187f62f7ae685b867ab02d08108ce3a687ea7da444e57cbe5e9f74220747beee322ccfec0ce4319c95cc37ba0908ba8fae6a8d88bdb0928d099099
25 +DIST linkchecker-10.1.0.tar.gz 521214 BLAKE2B 767c1176751a2011e0e175eb7c9e7b3704bda0d469bad7b38ac1481db62b470fbb69a62bf11316699e15fd1ca822f801a1237c798754353aba5c559ccd9d3274 SHA512 a6ba57ef9c617ece2c53d54cf460571561bfa60831e038e31e520e7fbee789566616b6e5b0b98529376510ef4e228bebdb6e6e011fb986b74d837ebc69323085
26
27 diff --git a/net-analyzer/linkchecker/files/linkchecker-10.1.0-version.patch b/net-analyzer/linkchecker/files/linkchecker-10.1.0-version.patch
28 new file mode 100644
29 index 000000000000..f0132a8a8089
30 --- /dev/null
31 +++ b/net-analyzer/linkchecker/files/linkchecker-10.1.0-version.patch
32 @@ -0,0 +1,32 @@
33 +diff --git a/setup.py b/setup.py
34 +index c00bdc0..8493d09 100755
35 +--- a/setup.py
36 ++++ b/setup.py
37 +@@ -56,6 +56,7 @@ else:
38 +
39 + # the application name
40 + AppName = "LinkChecker"
41 ++AppVersion = "LINKCHECKER_VERSION"
42 + Description = "check links in web documents or full websites"
43 +
44 + RELEASE_DATE_FILE = "_release_date"
45 +@@ -340,10 +341,7 @@ if os.name == "posix":
46 +
47 + setup(
48 + name=AppName,
49 +- use_scm_version={
50 +- "local_scheme": "node-and-timestamp",
51 +- "version_scheme": "post-release",
52 +- },
53 ++ version=AppVersion,
54 + description=Description,
55 + keywords="link,url,site,checking,crawling,verification,validation",
56 + author=myname,
57 +@@ -383,7 +381,6 @@ setup(
58 + options={},
59 + # Requirements, usable with setuptools or the new Python packaging module.
60 + python_requires=">= 3.6",
61 +- setup_requires=["setuptools_scm"],
62 + install_requires=[
63 + "importlib_metadata;python_version<'3.8'",
64 + "requests >= 2.4",
65
66 diff --git a/net-analyzer/linkchecker/linkchecker-10.1.0.ebuild b/net-analyzer/linkchecker/linkchecker-10.1.0.ebuild
67 new file mode 100644
68 index 000000000000..c839792807fa
69 --- /dev/null
70 +++ b/net-analyzer/linkchecker/linkchecker-10.1.0.ebuild
71 @@ -0,0 +1,60 @@
72 +# Copyright 1999-2021 Gentoo Authors
73 +# Distributed under the terms of the GNU General Public License v2
74 +
75 +EAPI=8
76 +
77 +PYTHON_COMPAT=( python3_{7..10} )
78 +PYTHON_REQ_USE="sqlite?"
79 +
80 +inherit bash-completion-r1 distutils-r1 optfeature
81 +
82 +DESCRIPTION="Check websites for broken links"
83 +HOMEPAGE="https://github.com/linkcheck/linkchecker"
84 +
85 +if [[ "${PV}" == "9999" ]]; then
86 + EGIT_REPO_URI="https://github.com/linkcheck/linkchecker.git"
87 + inherit git-r3
88 +else
89 + SRC_URI="https://github.com/linkchecker/linkchecker/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
90 + KEYWORDS="~amd64 ~x86"
91 +fi
92 +
93 +LICENSE="GPL-2"
94 +SLOT="0"
95 +IUSE="sqlite"
96 +# requires libs not present in portage yet
97 +RESTRICT="test"
98 +
99 +RDEPEND="
100 + dev-python/beautifulsoup4[${PYTHON_USEDEP}]
101 + dev-python/dnspython[${PYTHON_USEDEP}]
102 + dev-python/pyxdg[${PYTHON_USEDEP}]
103 + dev-python/requests[${PYTHON_USEDEP}]
104 +"
105 +
106 +PATCHES=(
107 + "${FILESDIR}/${PN}-9.3-bash-completion.patch"
108 + "${FILESDIR}/${PN}-10.1.0-version.patch"
109 +)
110 +
111 +DOCS=(
112 + doc/changelog.txt
113 + doc/upgrading.txt
114 +)
115 +
116 +python_prepare_all() {
117 + distutils-r1_python_prepare_all
118 + sed -e "s/LINKCHECKER_VERSION/${PV}/g" -i setup.py || die
119 +}
120 +
121 +python_install_all() {
122 + distutils-r1_python_install_all
123 + newbashcomp config/linkchecker-completion ${PN}
124 +}
125 +
126 +pkg_postinst() {
127 + optfeature "bash-completion support" dev-python/argcomplete[${PYTHON_USEDEP}]
128 + optfeature "Virus scanning" app-antivirus/clamav
129 + optfeature "Geo IP support" dev-python/geoip-python[${PYTHON_USEDEP}]
130 + optfeature "GNOME proxy settings support" dev-python/pygobject[${PYTHON_USEDEP}]
131 +}