Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-calculators/units/
Date: Fri, 01 Jan 2021 04:32:51
Message-Id: 1609475554.f9668b4fe4c289875bb573d5ce0bb057faca6f28.sam@gentoo
1 commit: f9668b4fe4c289875bb573d5ce0bb057faca6f28
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jan 1 04:32:34 2021 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Fri Jan 1 04:32:34 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f9668b4f
7
8 sci-calculators/units: bump to 2.21
9
10 Package-Manager: Portage-3.0.9, Repoman-3.0.2
11 Signed-off-by: Sam James <sam <AT> gentoo.org>
12
13 sci-calculators/units/Manifest | 1 +
14 sci-calculators/units/units-2.21.ebuild | 58 +++++++++++++++++++++++++++++++++
15 2 files changed, 59 insertions(+)
16
17 diff --git a/sci-calculators/units/Manifest b/sci-calculators/units/Manifest
18 index ba47bcea8d7..a40be723533 100644
19 --- a/sci-calculators/units/Manifest
20 +++ b/sci-calculators/units/Manifest
21 @@ -2,3 +2,4 @@ DIST units-2.16.tar.gz 1178197 BLAKE2B 6de569cd70c8067be053c5acb0885f898b76252bf
22 DIST units-2.18.tar.gz 1248892 BLAKE2B b1dd86907ba6af3251577c533d6c39705ff4a8cdf099c15c61efaf7876ee9a4131212e09b3e9ca0f2355fc547256e33be4fcb9efc552b38e3e990e76b9465992 SHA512 2ae9f08acb03f2f443514800dafb454434d7d1a43497d2a937c2e9e8429f63d821be11ae3090693e8cadbd2f9cdeafba8f80c1671d84a9cceb0f72ad75d8cad7
23 DIST units-2.19.tar.gz 1271288 BLAKE2B b6d61661d88e8221d5689e7f1cdba357479d4e34c4c6fd51c336e76850521b3ad7d8f1bfd9ff8173917931151c8da2180928879be940358e35ae3e96a6e30765 SHA512 f28df8f0b95b53620d4d21ed369551b8510663ff3658293ba62de2722e7dc2d87506db7c65dc192e35f3c3a20842e8ed09ddaa7352532f7e3eaeab4c001061c8
24 DIST units-2.20.tar.gz 1309242 BLAKE2B 5321e6234cfe4514d1ebccec490e472ff64a0428bb2721f51e3ff626ddef7eec4b4e8822aa947da1f4ddca414078b617ba34308c86a71788f6d8a9ba20dd6846 SHA512 5292588fb7ea0ab12e45e5521a115a0eaba4e37378011677cbd80e6e17a6ffa5f388a57859c590b6d65460fc91a4ff33e6603e27d4909b8122d4ad3696c8600d
25 +DIST units-2.21.tar.gz 1308533 BLAKE2B 0a02979eafa21af759128ec72b11e1f532640c9d0e88ae8f389a1beb52d5a400cbd6294042aa4c7d8786c06c8ac4106a77c302805b8c5e3bb84d4134805fd517 SHA512 34bacff606f12aa5b2e59170f6b2142277aa1121d79610a51b57f07f17ae2dbdfbbb0e60be34522f367679cc152408f77c1ebb551016224d23f81c21f4b3ba62
26
27 diff --git a/sci-calculators/units/units-2.21.ebuild b/sci-calculators/units/units-2.21.ebuild
28 new file mode 100644
29 index 00000000000..f62e7185316
30 --- /dev/null
31 +++ b/sci-calculators/units/units-2.21.ebuild
32 @@ -0,0 +1,58 @@
33 +# Copyright 1999-2021 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=7
37 +
38 +PYTHON_COMPAT=( python3_{6,7,8,9} )
39 +inherit python-r1
40 +
41 +DESCRIPTION="Unit conversion program"
42 +HOMEPAGE="https://www.gnu.org/software/units/units.html"
43 +SRC_URI="mirror://gnu/${PN}/${P}.tar.gz"
44 +
45 +LICENSE="FDL-1.3 GPL-3"
46 +SLOT="0"
47 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux"
48 +IUSE="+units-cur"
49 +REQUIRED_USE="units-cur? ( ${PYTHON_REQUIRED_USE} )"
50 +
51 +RDEPEND="
52 + sys-libs/readline:=
53 + units-cur? (
54 + ${PYTHON_DEPS}
55 + $(python_gen_cond_dep '
56 + dev-python/future[${PYTHON_USEDEP}]
57 + dev-python/requests[${PYTHON_USEDEP}]
58 + ')
59 + )
60 +"
61 +DEPEND="${RDEPEND}"
62 +
63 +PATCHES=(
64 + "${FILESDIR}"/${PN}-2.17-network-sandbox.patch
65 + "${FILESDIR}"/${PN}-2.20-readerror.patch
66 +)
67 +
68 +DOCS=( ChangeLog NEWS README )
69 +
70 +src_configure() {
71 + econf \
72 + --sharedstatedir="${EPREFIX}"/var/lib \
73 + ac_cv_path_PYTHON=no
74 +}
75 +
76 +src_compile() {
77 + emake ${PN}
78 +}
79 +
80 +src_install() {
81 + default
82 +
83 + if use units-cur; then
84 + sed \
85 + -e "/^outfile/s|'.*'|'/usr/share/units/currency.units'|g" \
86 + -e 's|^#!|&/usr/bin/python|g' \
87 + units_cur_inst > units_cur || die
88 + python_foreach_impl python_doscript units_cur
89 + fi
90 +}