public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Michał Górny" <mgorny@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/polygon/
Date: Sat, 29 Jan 2022 20:43:22 +0000 (UTC)	[thread overview]
Message-ID: <1643488995.e3fe91b5e3c1ecb5b52838189b966d093cb910f3.mgorny@gentoo> (raw)

commit:     e3fe91b5e3c1ecb5b52838189b966d093cb910f3
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Jan 29 20:09:24 2022 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Jan 29 20:43:15 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e3fe91b5

dev-python/polygon: Switch to PEP 517 build

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/polygon/polygon-3.0.7-r1.ebuild | 45 ++++++++++++++++++++++++++++++
 1 file changed, 45 insertions(+)

diff --git a/dev-python/polygon/polygon-3.0.7-r1.ebuild b/dev-python/polygon/polygon-3.0.7-r1.ebuild
new file mode 100644
index 000000000000..abdaae630441
--- /dev/null
+++ b/dev-python/polygon/polygon-3.0.7-r1.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{8..9} )
+
+inherit distutils-r1
+
+DESCRIPTION="Python package to handle polygonal shapes in 2D"
+HOMEPAGE="https://www.j-raedler.de/projects/polygon/"
+SRC_URI="https://www.bitbucket.org/jraedler/${PN}3/downloads/Polygon3-${PV}.zip"
+S="${WORKDIR}/Polygon3-${PV}"
+
+LICENSE="LGPL-2"
+SLOT="3"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="examples"
+
+BDEPEND="app-arch/unzip"
+
+DOCS=( doc/{Polygon.txt,Polygon.pdf} )
+
+python_prepare_all() {
+	if use examples; then
+		mkdir examples || die
+		mv doc/{Examples.py,testpoly.gpf} examples || die
+	fi
+
+	distutils-r1_python_prepare_all
+}
+
+python_test() {
+	"${EPYTHON}" test/Test.py -v || die "Tests failed under ${EPYTHON}"
+}
+
+python_install_all() {
+	if use examples; then
+		dodoc -r examples
+		docompress -x /usr/share/doc/${PF}/examples
+	fi
+
+	distutils-r1_python_install_all
+}


             reply	other threads:[~2022-01-29 20:43 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-29 20:43 Michał Górny [this message]
  -- strict thread matches above, loose matches on Subject: below --
2022-03-17  8:34 [gentoo-commits] repo/gentoo:master commit in: dev-python/polygon/ Michał Górny
2022-03-17  8:34 Michał Górny
2022-03-16 23:53 Sam James
2022-03-15 13:07 Jakov Smolić
2022-03-15 13:07 Jakov Smolić
2022-02-05 16:51 Arthur Zamarin
2022-02-05 16:51 Arthur Zamarin
2021-01-24  0:10 David Seifert
2020-04-25  9:07 Michał Górny
2020-03-20  9:58 David Seifert
2019-12-27 18:52 David Seifert
2018-02-05 21:55 Michał Górny
2016-11-09 14:04 Pacho Ramos
2016-01-30  9:40 Pacho Ramos
2016-01-23 16:59 Agostino Sarubbo

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=1643488995.e3fe91b5e3c1ecb5b52838189b966d093cb910f3.mgorny@gentoo \
    --to=mgorny@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