From adc33f52008525f9614f34df073cb087b4331f90 Mon Sep 17 00:00:00 2001 From: David Denoncin Date: Mon, 18 May 2020 03:23:40 +0200 Subject: [PATCH 1/3] dev-python/pylatex: update ebuild to conform with qa standards Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: David Denoncin --- dev-python/pylatex/metadata.xml | 5 --- dev-python/pylatex/pylatex-1.3.1.ebuild | 50 +++++++++++++------------ 2 files changed, 27 insertions(+), 28 deletions(-) diff --git a/dev-python/pylatex/metadata.xml b/dev-python/pylatex/metadata.xml index 212167a98d..ebb4c5894f 100644 --- a/dev-python/pylatex/metadata.xml +++ b/dev-python/pylatex/metadata.xml @@ -6,9 +6,4 @@ ddenoncin@gmail.com David Denoncin - - Optionally add dev-python/numpy - Optionally add dev-python/matplotlib - Optionally add dev-python/quantities - diff --git a/dev-python/pylatex/pylatex-1.3.1.ebuild b/dev-python/pylatex/pylatex-1.3.1.ebuild index c15bb8bc98..c1f01ab9d6 100644 --- a/dev-python/pylatex/pylatex-1.3.1.ebuild +++ b/dev-python/pylatex/pylatex-1.3.1.ebuild @@ -7,8 +7,8 @@ MY_PN="PyLaTeX" MY_P="${MY_PN}-${PV}" S="${WORKDIR}/${MY_P}" -PYTHON_COMPAT=( python3_{6,7,8} ) #python2_7 -> error: package directory 'python2_source/pylatex' does not exist -inherit distutils-r1 +PYTHON_COMPAT=( python3_{6,7,8} ) +inherit distutils-r1 eutils DESCRIPTION="A Python library for creating LaTeX files and snippets" HOMEPAGE="https://github.com/JelteF/PyLaTeX" @@ -17,40 +17,44 @@ SRC_URI="https://github.com/JelteF/${MY_PN}/archive/v${PV}.tar.gz -> ${MY_PN}.ta LICENSE="MIT" SLOT="0" KEYWORDS="~amd64 ~x86" -IUSE="examples matplotlib numpy extras" +IUSE="examples" DEPEND=" - dev-python/ordered-set[${PYTHON_USEDEP}] - matplotlib? ( dev-python/matplotlib[$PYTHON_USEDEP] ) - numpy? ( dev-python/numpy[$PYTHON_USEDEP] ) - extras? ( dev-python/quantities[$PYTHON_USEDEP] ) +dev-python/ordered-set[${PYTHON_USEDEP}] " - RDEPEND="${DEPEND}" -distutils_enable_tests nose distutils_enable_sphinx docs +distutils_enable_tests nose + +DEPEND+=" +test? ( + dev-python/quantities + dev-python/matplotlib + dev-python/numpy +) +" src_prepare(){ - if use doc; then - sphinx-apidoc -F -o docs "${S}"/pylatex # conf.py is not included in source - fi +if use doc; then + sphinx-apidoc -F -o docs "${S}"/pylatex # conf.py is not included in source +fi - distutils-r1_src_prepare +distutils-r1_src_prepare } python_install_all() { - if use examples ; then - docinto examples - dodoc -r examples/. - fi +if use examples ; then + docinto examples + dodoc -r examples/. +fi - distutils-r1_python_install_all +distutils-r1_python_install_all } -src_test() { - if ! use extras ; then - rm "${S}"/tests/test_quantities.py # remove if quantities is not installed - fi - distutils-r1_src_test +pkg_postinst() { + elog "Optional dependencies:" + optfeature "matplotlib support" dev-python/matplotlib + optfeature "numpy support" dev-python/numpy + optfeature "quantities support" dev-python/quantities } From 57fb961437d7ee76ee4f520c32d61db973dee26d Mon Sep 17 00:00:00 2001 From: "Haelwenn (lanodan) Monnier" Date: Mon, 18 May 2020 05:11:08 +0200 Subject: [PATCH 2/3] www-client/badwolf: Bump to 1.0.0 Signed-off-by: Haelwenn (lanodan) Monnier --- www-client/badwolf/Manifest | 1 + www-client/badwolf/badwolf-1.0.0.ebuild | 55 +++++++++++++++++++++++++ 2 files changed, 56 insertions(+) create mode 100644 www-client/badwolf/badwolf-1.0.0.ebuild diff --git a/www-client/badwolf/Manifest b/www-client/badwolf/Manifest index e4a40a2bc1..1fba2a10f9 100644 --- a/www-client/badwolf/Manifest +++ b/www-client/badwolf/Manifest @@ -1 +1,2 @@ DIST badwolf-0.5.1.tar.gz 20992 BLAKE2B f1c31ba3f1b485adcc134a1e14e7eac1bd7ec2c3c3a48b09e245cfec4adacceeba5a9f477fd74ce85e5e8453fa660779248e1d6987281f850cb35b652aaa98f3 SHA512 75cd50bba4aaa458341b3ce0a6f70b4432e7a708901a19780457661b5275a15ad275a8b53f00b482be1e9a3eaa2565b39d9bbd40f5e6ec2551ae7fc1c7840ed2 +DIST badwolf-1.0.0.tar.gz 69676 BLAKE2B 44b463b0096f1971ae01d48556f70636c58c96324c2fcfb4a1b2507f78f6cdcb5c4b51e68f64b20c5fbafdf529bbc8e2f4ec60d383405019fa556a9697948cae SHA512 72437709a32937c33dc0509f94efbb5f3551b039017d3067b02f5d2b275eb4f3883dba8dc1c1b4b82bfa31a7b174f5fa393ceeefaf627d9b6c27be0fea5a0652 diff --git a/www-client/badwolf/badwolf-1.0.0.ebuild b/www-client/badwolf/badwolf-1.0.0.ebuild new file mode 100644 index 0000000000..aaab35ec59 --- /dev/null +++ b/www-client/badwolf/badwolf-1.0.0.ebuild @@ -0,0 +1,55 @@ +# Copyright 2019-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit xdg + +if [[ "${PV}" == "9999" ]] +then + EGIT_REPO_URI="https://hacktivis.me/git/badwolf.git" + EGIT_MIN_CLONE_TYPE="single+tags" + inherit git-r3 +else + MY_P="${PN}-$(ver_rs 3 - 4 .)" + SRC_URI="https://hacktivis.me/releases/${MY_P}.tar.gz" + KEYWORDS="~amd64 ~ppc" + S="${WORKDIR}/${MY_P}" + inherit savedconfig +fi + +DESCRIPTION="Minimalist and privacy-oriented WebKitGTK+ browser" +HOMEPAGE="https://hacktivis.me/projects/badwolf" +LICENSE="BSD" +SLOT="0" + +DOCS=("README.md" "KnowledgeBase.md") + +DEPEND=" + x11-libs/gtk+:3 + net-libs/webkit-gtk:4= +" +RDEPEND="${DEPEND}" + +src_configure() { + [[ "${PV}" == "9999" ]] || restore_config config.h + default +} + +src_compile() { + emake \ + CC="${CC:-cc}" \ + CFLAGS="${CFLAGS:--02 -Wall -Wextra}" \ + LDFLAGS="${LDFLAGS}" \ + PREFIX="/usr" +} + +src_install() { + emake \ + DESTDIR="${D}" \ + PREFIX="/usr" \ + install + + [[ "${PV}" == "9999" ]] || save_config config.h + einstalldocs +} From 51701a9b1efbd968033e8fc3f81981a7522b1bc0 Mon Sep 17 00:00:00 2001 From: "Haelwenn (lanodan) Monnier" Date: Mon, 18 May 2020 05:14:29 +0200 Subject: [PATCH 3/3] www-client/badwolf: Clean old, 0.5.1 Signed-off-by: Haelwenn (lanodan) Monnier --- www-client/badwolf/Manifest | 1 - www-client/badwolf/badwolf-0.5.1.ebuild | 55 ------------------------- 2 files changed, 56 deletions(-) delete mode 100644 www-client/badwolf/badwolf-0.5.1.ebuild diff --git a/www-client/badwolf/Manifest b/www-client/badwolf/Manifest index 1fba2a10f9..14726a327d 100644 --- a/www-client/badwolf/Manifest +++ b/www-client/badwolf/Manifest @@ -1,2 +1 @@ -DIST badwolf-0.5.1.tar.gz 20992 BLAKE2B f1c31ba3f1b485adcc134a1e14e7eac1bd7ec2c3c3a48b09e245cfec4adacceeba5a9f477fd74ce85e5e8453fa660779248e1d6987281f850cb35b652aaa98f3 SHA512 75cd50bba4aaa458341b3ce0a6f70b4432e7a708901a19780457661b5275a15ad275a8b53f00b482be1e9a3eaa2565b39d9bbd40f5e6ec2551ae7fc1c7840ed2 DIST badwolf-1.0.0.tar.gz 69676 BLAKE2B 44b463b0096f1971ae01d48556f70636c58c96324c2fcfb4a1b2507f78f6cdcb5c4b51e68f64b20c5fbafdf529bbc8e2f4ec60d383405019fa556a9697948cae SHA512 72437709a32937c33dc0509f94efbb5f3551b039017d3067b02f5d2b275eb4f3883dba8dc1c1b4b82bfa31a7b174f5fa393ceeefaf627d9b6c27be0fea5a0652 diff --git a/www-client/badwolf/badwolf-0.5.1.ebuild b/www-client/badwolf/badwolf-0.5.1.ebuild deleted file mode 100644 index aaab35ec59..0000000000 --- a/www-client/badwolf/badwolf-0.5.1.ebuild +++ /dev/null @@ -1,55 +0,0 @@ -# Copyright 2019-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -inherit xdg - -if [[ "${PV}" == "9999" ]] -then - EGIT_REPO_URI="https://hacktivis.me/git/badwolf.git" - EGIT_MIN_CLONE_TYPE="single+tags" - inherit git-r3 -else - MY_P="${PN}-$(ver_rs 3 - 4 .)" - SRC_URI="https://hacktivis.me/releases/${MY_P}.tar.gz" - KEYWORDS="~amd64 ~ppc" - S="${WORKDIR}/${MY_P}" - inherit savedconfig -fi - -DESCRIPTION="Minimalist and privacy-oriented WebKitGTK+ browser" -HOMEPAGE="https://hacktivis.me/projects/badwolf" -LICENSE="BSD" -SLOT="0" - -DOCS=("README.md" "KnowledgeBase.md") - -DEPEND=" - x11-libs/gtk+:3 - net-libs/webkit-gtk:4= -" -RDEPEND="${DEPEND}" - -src_configure() { - [[ "${PV}" == "9999" ]] || restore_config config.h - default -} - -src_compile() { - emake \ - CC="${CC:-cc}" \ - CFLAGS="${CFLAGS:--02 -Wall -Wextra}" \ - LDFLAGS="${LDFLAGS}" \ - PREFIX="/usr" -} - -src_install() { - emake \ - DESTDIR="${D}" \ - PREFIX="/usr" \ - install - - [[ "${PV}" == "9999" ]] || save_config config.h - einstalldocs -}