Gentoo Archives: gentoo-commits

From: Alessandro Barbieri <lssndrbarbieri@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-python/glicko2/
Date: Sun, 23 Feb 2020 03:31:07
Message-Id: 1582428630.dade0be9b01b25f784b529ace1891cd094f6311c.Alessandro-Barbieri@gentoo
1 commit: dade0be9b01b25f784b529ace1891cd094f6311c
2 Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
3 AuthorDate: Sun Feb 23 03:30:30 2020 +0000
4 Commit: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
5 CommitDate: Sun Feb 23 03:30:30 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=dade0be9
7
8 dev-python/glicko2: new package
9
10 Package-Manager: Portage-2.3.89, Repoman-2.3.20
11 Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>
12
13 dev-python/glicko2/glicko2-9999.ebuild | 37 ++++++++++++++++++++++++++++++++++
14 dev-python/glicko2/metadata.xml | 11 ++++++++++
15 2 files changed, 48 insertions(+)
16
17 diff --git a/dev-python/glicko2/glicko2-9999.ebuild b/dev-python/glicko2/glicko2-9999.ebuild
18 new file mode 100644
19 index 0000000..2caf8b1
20 --- /dev/null
21 +++ b/dev-python/glicko2/glicko2-9999.ebuild
22 @@ -0,0 +1,37 @@
23 +# Copyright 1999-2020 Gentoo Authors
24 +# Distributed under the terms of the GNU General Public License v2
25 +
26 +EAPI="7"
27 +PYTHON_COMPAT=( python3_{6,7} pypy3)
28 +
29 +inherit distutils-r1
30 +
31 +case "${PV}" in
32 +9999)
33 + SRC_URI=""
34 + EGIT_REPO_URI="https://github.com/sublee/glicko2.git"
35 + inherit git-r3
36 + ;;
37 +esac
38 +
39 +DESCRIPTION="An implementation of the Glicko-2 rating system for Python"
40 +HOMEPAGE="https://github.com/sublee/glicko2"
41 +
42 +LICENSE="BSD"
43 +SLOT="0"
44 +KEYWORDS=""
45 +IUSE="test"
46 +RESTRICT="!test? ( test )"
47 +
48 +DEPEND="
49 + dev-python/setuptools[${PYTHON_USEDEP}]
50 +"
51 +
52 +src_prepare() {
53 + sed -i -e "s/distribute/setuptools/g" setup.py
54 + eapply_user
55 +}
56 +
57 +python_test() {
58 + "${PYTHON}" setup.py test || die
59 +}
60
61 diff --git a/dev-python/glicko2/metadata.xml b/dev-python/glicko2/metadata.xml
62 new file mode 100644
63 index 0000000..b1a0922
64 --- /dev/null
65 +++ b/dev-python/glicko2/metadata.xml
66 @@ -0,0 +1,11 @@
67 +<?xml version="1.0" encoding="UTF-8"?>
68 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
69 +<pkgmetadata>
70 + <maintainer type="person">
71 + <email>lssndrbarbieri@×××××.com</email>
72 + <name>Alessandro Barbieri</name>
73 + </maintainer>
74 + <upstream>
75 + <remote-id type="github">sublee/glicko2</remote-id>
76 + </upstream>
77 +</pkgmetadata>