Gentoo Archives: gentoo-commits

From: Sebastian Pipping <sping@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: www-apps/nikola/, www-apps/nikola/files/
Date: Fri, 07 Feb 2020 22:06:12
Message-Id: 1581113160.de0ffe064886ece1687ebd61d410023203fa9916.sping@gentoo
1 commit: de0ffe064886ece1687ebd61d410023203fa9916
2 Author: Sebastian Pipping <sping <AT> gentoo <DOT> org>
3 AuthorDate: Fri Feb 7 22:04:18 2020 +0000
4 Commit: Sebastian Pipping <sping <AT> gentoo <DOT> org>
5 CommitDate: Fri Feb 7 22:06:00 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=de0ffe06
7
8 www-apps/nikola: 8.0.4
9
10 Closes: https://bugs.gentoo.org/674368
11 Signed-off-by: Sebastian Pipping <sping <AT> gentoo.org>
12 Package-Manager: Portage-2.3.84, Repoman-2.3.20
13
14 www-apps/nikola/Manifest | 1 +
15 www-apps/nikola/files/nikola-8.0.4-setup-py.patch | 47 ++++++++++++++++
16 www-apps/nikola/nikola-8.0.4.ebuild | 66 +++++++++++++++++++++++
17 3 files changed, 114 insertions(+)
18
19 diff --git a/www-apps/nikola/Manifest b/www-apps/nikola/Manifest
20 index 79fe3fe29de..1da720e5956 100644
21 --- a/www-apps/nikola/Manifest
22 +++ b/www-apps/nikola/Manifest
23 @@ -1 +1,2 @@
24 DIST Nikola-7.8.15.tar.gz 4131518 BLAKE2B ea3dca9340852a68b668de82e5deeaa0ecf7bb8597f311721b27409fe0cf820919c79f6e631b030bd3ea4571dd8480c862c607d0b9e6015a8b03023de5a9b93e SHA512 b441ae014539b948d007183ceb574243b89a498be265da7245095f67510d4d7c109c4935e0f9765b4144e82f788a1b66a0eacfba1477a89ce6c2645cb77102d7
25 +DIST Nikola-8.0.4.tar.gz 4137494 BLAKE2B 04db8b83f34ca9b3cee785c5eed9d0421d27acf750c4f17dc3bec0df6fd4f462af52a65c0c97a07777922da3bf3fa855d58d546479b19bfb152e8190d2f74524 SHA512 eb6774d11be4eab81fbe41115d80e5d0d38694b734431d5d6355fcd3e3d8ae5ff4a02114c5dd0dbbc9e1ea5a625e9ac2b6b91e82f6e017b4376e4ca8d56cfec7
26
27 diff --git a/www-apps/nikola/files/nikola-8.0.4-setup-py.patch b/www-apps/nikola/files/nikola-8.0.4-setup-py.patch
28 new file mode 100644
29 index 00000000000..8089b4ee8b2
30 --- /dev/null
31 +++ b/www-apps/nikola/files/nikola-8.0.4-setup-py.patch
32 @@ -0,0 +1,47 @@
33 +From 89bfbfb5bb0ffc823664557ff59f90db03f7b10f Mon Sep 17 00:00:00 2001
34 +From: Chris Warrick <kwpolska@×××××.com>
35 +Date: Fri, 7 Feb 2020 13:06:06 +0100
36 +Subject: [PATCH] =?UTF-8?q?Fix=20#3348=20=E2=80=94=20don=E2=80=99t=20ship?=
37 + =?UTF-8?q?=20tests=20to=20site-packages?=
38 +MIME-Version: 1.0
39 +Content-Type: text/plain; charset=UTF-8
40 +Content-Transfer-Encoding: 8bit
41 +
42 +---
43 + CHANGES.txt | 12 ++++++++++++
44 + setup.py | 2 +-
45 + 2 files changed, 13 insertions(+), 1 deletion(-)
46 +
47 +diff --git a/CHANGES.txt b/CHANGES.txt
48 +index e76f24bee..815b37849 100644
49 +--- a/CHANGES.txt
50 ++++ b/CHANGES.txt
51 +@@ -1,3 +1,15 @@
52 ++New in master
53 ++============
54 ++
55 ++Features
56 ++--------
57 ++
58 ++Bugfixes
59 ++--------
60 ++
61 ++* Avoid installing ``tests`` package to site-packages, remove it from
62 ++ your environment if it was inadvertently added (Issue #3348)
63 ++
64 + New in v8.0.4
65 + =============
66 +
67 +diff --git a/setup.py b/setup.py
68 +index f6ca027b7..e4f2c7fc7 100755
69 +--- a/setup.py
70 ++++ b/setup.py
71 +@@ -105,7 +105,7 @@ def run(self):
72 + author='Roberto Alsina and others',
73 + author_email='ralsina@×××××××××××××××.ar',
74 + url='https://getnikola.com/',
75 +- packages=find_packages(exclude=('tests',)),
76 ++ packages=find_packages(exclude=('tests', 'tests.*')),
77 + license='MIT',
78 + keywords='website, blog, static',
79 + classifiers=['Development Status :: 5 - Production/Stable',
80
81 diff --git a/www-apps/nikola/nikola-8.0.4.ebuild b/www-apps/nikola/nikola-8.0.4.ebuild
82 new file mode 100644
83 index 00000000000..abec5ee581f
84 --- /dev/null
85 +++ b/www-apps/nikola/nikola-8.0.4.ebuild
86 @@ -0,0 +1,66 @@
87 +# Copyright 1999-2020 Gentoo Authors
88 +# Distributed under the terms of the GNU General Public License v2
89 +
90 +EAPI=7
91 +PYTHON_COMPAT=( python3_6 )
92 +DISTUTILS_USE_SETUPTOOLS=rdepend
93 +
94 +inherit distutils-r1
95 +
96 +MY_PN="Nikola"
97 +MY_P="${MY_PN}-${PV}"
98 +
99 +DESCRIPTION="A static website and blog generator"
100 +HOMEPAGE="https://getnikola.com/"
101 +SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
102 +
103 +LICENSE="MIT Apache-2.0 CC0-1.0 public-domain"
104 +SLOT="0"
105 +KEYWORDS="~amd64"
106 +IUSE="assets charts ghpages hyphenation ipython jinja watchdog webmedia websocket"
107 +RESTRICT="test" # needs coveralls
108 +
109 +DEPEND=">=dev-python/docutils-0.13[${PYTHON_USEDEP}]" # needs rst2man to build manpage
110 +RDEPEND="${DEPEND}
111 + >=dev-python/Babel-2.6.0[${PYTHON_USEDEP}]
112 + >=dev-python/blinker-1.3[${PYTHON_USEDEP}]
113 + >=dev-python/doit-0.30.1[${PYTHON_USEDEP}]
114 + >=dev-python/lxml-3.3.5[${PYTHON_USEDEP}]
115 + >=dev-python/mako-1.0[${PYTHON_USEDEP}]
116 + >=dev-python/markdown-3.0.0[${PYTHON_USEDEP}]
117 + >=dev-python/natsort-3.5.2[${PYTHON_USEDEP}]
118 + >=dev-python/piexif-1.0.3[${PYTHON_USEDEP}]
119 + >=dev-python/pygments-1.6[${PYTHON_USEDEP}]
120 + >=dev-python/PyRSS2Gen-1.1[${PYTHON_USEDEP}]
121 + >=dev-python/python-dateutil-2.6.0[${PYTHON_USEDEP}]
122 + >=dev-python/requests-2.2.0[${PYTHON_USEDEP}]
123 + >=dev-python/unidecode-0.04.16[${PYTHON_USEDEP}]
124 + >=dev-python/yapsy-1.11.223[${PYTHON_USEDEP}]
125 + dev-python/pillow[${PYTHON_USEDEP}]
126 + dev-python/cloudpickle[${PYTHON_USEDEP}]
127 + assets? ( >=dev-python/webassets-0.10.1[${PYTHON_USEDEP}] )
128 + charts? ( >=dev-python/pygal-2.0.1[${PYTHON_USEDEP}] )
129 + ghpages? ( >=dev-python/ghp-import-0.4.1[${PYTHON_USEDEP}] )
130 + hyphenation? ( >=dev-python/pyphen-0.9.1[${PYTHON_USEDEP}] )
131 + ipython? ( >=dev-python/ipython-2.0.0[notebook,${PYTHON_USEDEP}] )
132 + jinja? ( >=dev-python/jinja-2.7.2[${PYTHON_USEDEP}] )
133 + watchdog? ( ~dev-python/watchdog-0.8.3[${PYTHON_USEDEP}] )
134 + webmedia? ( >=dev-python/micawber-0.3.0[${PYTHON_USEDEP}] )
135 + websocket? ( ~dev-python/ws4py-0.3.4[${PYTHON_USEDEP}] )"
136 +# typography? ( >=dev-python/typogrify-2.0.4[${PYTHON_USEDEP}] ) # needs smartypants
137 +
138 +S="${WORKDIR}/${MY_P}"
139 +
140 +PATCHES=(
141 + "${FILESDIR}"/${P}-setup-py.patch
142 +)
143 +
144 +src_install() {
145 + distutils-r1_src_install
146 +
147 + # hackish way to remove docs that ended up in the wrong place
148 + rm -rv "${D}/usr/share/doc/${PN}" || die
149 +
150 + dodoc AUTHORS.txt CHANGES.txt README.rst docs/*.rst
151 + gunzip "${D}/usr/share/man/man1/${PN}.1.gz" || die
152 +}