From: "Ulrich Müller" <ulm@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: www-apps/nikola/
Date: Thu, 23 Jun 2022 09:45:57 +0000 (UTC) [thread overview]
Message-ID: <1655977540.bcb9d02f1093c3bc00ff90dfbc3c46e8a6126549.ulm@gentoo> (raw)
commit: bcb9d02f1093c3bc00ff90dfbc3c46e8a6126549
Author: Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Thu Jun 23 09:44:35 2022 +0000
Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Thu Jun 23 09:45:40 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bcb9d02f
www-apps/nikola: Replace optional runtime dependencies by optfeature
Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>
www-apps/nikola/metadata.xml | 25 ----------------------
...{nikola-8.2.2.ebuild => nikola-8.2.2-r1.ebuild} | 23 ++++++++++----------
2 files changed, 12 insertions(+), 36 deletions(-)
diff --git a/www-apps/nikola/metadata.xml b/www-apps/nikola/metadata.xml
index f3793128d66f..d03a91b8243b 100644
--- a/www-apps/nikola/metadata.xml
+++ b/www-apps/nikola/metadata.xml
@@ -4,31 +4,6 @@
<maintainer type="person">
<email>ulm@gentoo.org</email>
</maintainer>
- <use>
- <flag name="charts">
- Support chart generation through <pkg>dev-python/pygal</pkg>
- </flag>
- <flag name="hyphenation">
- Add hyphenation support through <pkg>dev-python/pyphen</pkg>
- </flag>
- <flag name="ipython">
- Add IPython notebook compilation and LESS support
- </flag>
- <flag name="jinja">
- Add support for <pkg>dev-python/jinja</pkg> as alternative templating
- engine to Mako
- </flag>
- <flag name="server">
- Enable support for built-in web server using <pkg>dev-python/aiohttp</pkg>
- </flag>
- <flag name="watchdog">
- Use <pkg>dev-python/watchdog</pkg> to monitor file system events
- </flag>
- <flag name="webmedia">
- Use <pkg>dev-python/micawber</pkg> to extract metadata from web media
- links
- </flag>
- </use>
<upstream>
<remote-id type="pypi">Nikola</remote-id>
</upstream>
diff --git a/www-apps/nikola/nikola-8.2.2.ebuild b/www-apps/nikola/nikola-8.2.2-r1.ebuild
similarity index 72%
rename from www-apps/nikola/nikola-8.2.2.ebuild
rename to www-apps/nikola/nikola-8.2.2-r1.ebuild
index 75f7358c791b..efa4bce006ed 100644
--- a/www-apps/nikola/nikola-8.2.2.ebuild
+++ b/www-apps/nikola/nikola-8.2.2-r1.ebuild
@@ -5,7 +5,7 @@ EAPI=8
PYTHON_COMPAT=( python3_{8,9,10} )
DISTUTILS_USE_SETUPTOOLS=rdepend
-inherit distutils-r1
+inherit distutils-r1 optfeature
MY_PN="Nikola"
MY_P="${MY_PN}-${PV}"
@@ -18,8 +18,6 @@ S="${WORKDIR}/${MY_P}"
LICENSE="MIT Apache-2.0 CC0-1.0 public-domain"
SLOT="0"
KEYWORDS="amd64 ~riscv"
-IUSE="charts hyphenation ipython jinja server watchdog webmedia"
-REQUIRED_USE="server? ( watchdog )"
RESTRICT="test" # needs coveralls
DEPEND=">=dev-python/docutils-0.13[${PYTHON_USEDEP}]" # needs rst2man to build manpage
@@ -39,14 +37,7 @@ RDEPEND="${DEPEND}
>=dev-python/unidecode-0.04.16[${PYTHON_USEDEP}]
>=dev-python/yapsy-1.11.223[${PYTHON_USEDEP}]
dev-python/pillow[jpeg,${PYTHON_USEDEP}]
- dev-python/cloudpickle[${PYTHON_USEDEP}]
- charts? ( >=dev-python/pygal-2.0.1[${PYTHON_USEDEP}] )
- hyphenation? ( >=dev-python/pyphen-0.9.1[${PYTHON_USEDEP}] )
- ipython? ( >=dev-python/ipython-2.0.0[notebook,${PYTHON_USEDEP}] )
- jinja? ( >=dev-python/jinja-2.7.2[${PYTHON_USEDEP}] )
- server? ( dev-python/aiohttp[${PYTHON_USEDEP}] )
- watchdog? ( >=dev-python/watchdog-0.8.3[${PYTHON_USEDEP}] )
- webmedia? ( >=dev-python/micawber-0.3.0[${PYTHON_USEDEP}] )"
+ dev-python/cloudpickle[${PYTHON_USEDEP}]"
src_install() {
distutils-r1_src_install
@@ -57,3 +48,13 @@ src_install() {
dodoc AUTHORS.txt CHANGES.txt README.rst docs/*.rst
gunzip "${ED}/usr/share/man/man1/${PN}.1.gz" || die
}
+
+pkg_postinst() {
+ optfeature "chart generation" dev-python/pygal
+ optfeature "hyphenation support" dev-python/pyphen
+ optfeature "notebook compilation and LESS support" dev-python/ipython
+ optfeature "alternative templating engine to Mako" dev-python/jinja
+ optfeature "built-in web server support" dev-python/aiohttp
+ optfeature "monitoring file system events" dev-python/watchdog
+ optfeature "extracting metadata from web media links" dev-python/micawber
+}
next reply other threads:[~2022-06-23 9:46 UTC|newest]
Thread overview: 69+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-06-23 9:45 Ulrich Müller [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-04-12 22:19 [gentoo-commits] repo/gentoo:master commit in: www-apps/nikola/ Ulrich Müller
2025-04-12 22:09 Ulrich Müller
2025-04-12 22:09 Ulrich Müller
2025-03-28 19:23 Ulrich Müller
2025-03-02 22:55 Sam James
2025-01-26 18:31 Ulrich Müller
2024-04-14 18:42 Arthur Zamarin
2024-04-14 17:02 Ulrich Müller
2024-04-14 17:02 Ulrich Müller
2024-02-08 8:23 Ulrich Müller
2024-02-08 8:15 Ulrich Müller
2023-11-05 14:18 Sebastian Pipping
2023-11-05 3:02 Ulrich Müller
2023-11-05 3:02 Ulrich Müller
2023-07-31 2:02 Sam James
2023-03-29 20:08 Sam James
2023-03-29 18:38 Ulrich Müller
2023-03-29 18:38 Ulrich Müller
2023-02-26 10:20 Ulrich Müller
2023-02-25 18:07 Ulrich Müller
2023-02-25 15:12 Ulrich Müller
2023-02-25 14:26 Sam James
2023-02-25 12:55 Ulrich Müller
2022-07-22 12:36 Ulrich Müller
2022-06-22 15:54 Ulrich Müller
2022-06-22 15:42 Ulrich Müller
2022-06-22 13:22 Agostino Sarubbo
2022-06-05 9:48 Ulrich Müller
2022-05-31 18:49 Ulrich Müller
2022-05-15 9:10 Ulrich Müller
2022-03-28 9:17 Jakov Smolić
2021-05-18 21:27 Thomas Deutschmann
2021-02-21 23:43 Thomas Deutschmann
2021-02-15 15:14 Thomas Deutschmann
2021-01-01 0:59 Michał Górny
2020-11-18 17:23 Thomas Deutschmann
2020-08-22 19:36 Thomas Deutschmann
2020-08-22 19:16 Thomas Deutschmann
2020-08-22 19:16 Thomas Deutschmann
2020-08-22 18:12 Thomas Deutschmann
2020-08-22 18:12 Thomas Deutschmann
2020-07-06 23:22 Thomas Deutschmann
2020-06-30 11:19 Thomas Deutschmann
2020-06-29 15:04 Thomas Deutschmann
2020-03-17 8:08 Michał Górny
2020-03-07 20:37 Thomas Deutschmann
2020-02-29 22:43 Sebastian Pipping
2020-02-07 21:30 Sebastian Pipping
2019-12-04 17:15 Michał Górny
2019-12-04 17:15 Michał Górny
2018-08-15 14:11 Sebastian Pipping
2018-06-24 12:50 Jason Zaman
2018-05-05 19:34 Sebastian Pipping
2018-04-01 22:54 Sebastian Pipping
2018-03-31 15:44 Sebastian Pipping
2018-03-21 14:07 Sebastian Pipping
2018-03-17 19:43 Sebastian Pipping
2018-03-09 23:43 Sebastian Pipping
2017-10-12 17:16 Tim Harder
2017-09-24 11:00 Michael Palimaka
2017-09-24 11:00 Michael Palimaka
2017-09-24 11:00 Michael Palimaka
2017-07-30 9:23 Michał Górny
2017-07-11 7:56 Patrice Clement
2017-06-20 12:37 Pacho Ramos
2017-06-14 14:33 Sebastian Pipping
2016-10-02 13:00 Patrice Clement
2015-08-12 7:11 Ben de Groot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1655977540.bcb9d02f1093c3bc00ff90dfbc3c46e8a6126549.ulm@gentoo \
--to=ulm@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox