summaryrefslogtreecommitdiff
path: root/sci-calculators
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-04-21 12:05:28 +0100
committerV3n3RiX <venerix@koprulu.sector>2024-04-21 12:05:28 +0100
commit490ef2c2dc8b4e808f37add1adee21a754efd9a9 (patch)
treee235cdf15550b3d2f644b6fc4a8aa726971416f5 /sci-calculators
parentda7ae1dd1fccb6b3c0e4763ab983ad96d57bf463 (diff)
gentoo auto-resync : 21:04:2024 - 12:05:28
Diffstat (limited to 'sci-calculators')
-rw-r--r--sci-calculators/Manifest.gzbin3207 -> 3209 bytes
-rw-r--r--sci-calculators/units/Manifest4
-rw-r--r--sci-calculators/units/metadata.xml20
-rw-r--r--sci-calculators/units/units-2.23.ebuild59
4 files changed, 74 insertions, 9 deletions
diff --git a/sci-calculators/Manifest.gz b/sci-calculators/Manifest.gz
index 6970ce8ff1dc..17c0f873eb90 100644
--- a/sci-calculators/Manifest.gz
+++ b/sci-calculators/Manifest.gz
Binary files differ
diff --git a/sci-calculators/units/Manifest b/sci-calculators/units/Manifest
index 1edcb70a8eac..1e38fa899d08 100644
--- a/sci-calculators/units/Manifest
+++ b/sci-calculators/units/Manifest
@@ -1,5 +1,7 @@
AUX units-2.17-network-sandbox.patch 469 BLAKE2B 800ffebb2bf096fac9ca94672caa457a08ddbe98e85cd3c195c149215de8753aa72fec618ccf4bdf584002c507cc53532ee92af6e8097c7fa2573628de34b17c SHA512 f54fb5d006263f89ff8c376f100066d79883b68a30441e8665ca4d8a6aa061e5c697c715ccb93c67a692145a44a441862039e5249e4795159f1c43a12ffe1c97
AUX units-2.20-readerror.patch 306 BLAKE2B 7007ed50539043f1b21a9676c8d1ff377d1d6e1d9e1d3e4bca9e4dcda520d77cddc28abe35333cd1cb4a5d451264d94f22bc6594a5f1fd15488d5d5e1d5bf12d SHA512 4d1acb3ca6e4bd2874854cfa27e8bc5418ef30d628589eace8011733556835feb30630a2b37bb1e5e975392fe75e684b48f31a9b2624b8703714dbb501f6f27d
DIST units-2.21.tar.gz 1308533 BLAKE2B 0a02979eafa21af759128ec72b11e1f532640c9d0e88ae8f389a1beb52d5a400cbd6294042aa4c7d8786c06c8ac4106a77c302805b8c5e3bb84d4134805fd517 SHA512 34bacff606f12aa5b2e59170f6b2142277aa1121d79610a51b57f07f17ae2dbdfbbb0e60be34522f367679cc152408f77c1ebb551016224d23f81c21f4b3ba62
+DIST units-2.23.tar.gz 1423494 BLAKE2B 9a835ec3862b7c09149d5726084fb3068acb9d01b3a8234647cd47805a559b75131046bfe407152dec9f2e06c6c3315686dd0db0694d2c5ef0173e6ee64ce378 SHA512 628aac3a560ed728f1aba91841f9fccc0b145375a0b8953b98ac00c71bcc7f647377d16c6ba7b59e987a6e7a74b44038a62f2576f757a43d7564be469be81ee8
EBUILD units-2.21-r1.ebuild 1159 BLAKE2B 94f7305d1da3963e12b23d7bfca2d5d9f45c72ee1c5df96f77bf22104b45348087b2de06f0377823571f5a607693283267bbc7af3a352ce91f26d153451f48d1 SHA512 405d57775fab7ba2e85d149b24e42778fb4e0b0629425199ff723261e90fecc56334334179bea4b3067963a1a80cc48302033b9b6f99f56544dc47fd6cd54e73
-MISC metadata.xml 356 BLAKE2B e29e63011490681ea66a493a573fef96d45c5cc045ee87534380ba64c4bb56e14231f64b87527105d6ec560326c52c61e72746f8d4e61b820e3bb87a7b92086c SHA512 36bab25faccb86cfc0f2d8f864788dbf1a561d9dd94c76dab878bd9e7b29f55f74ed115f1d374230bd9745038612b9f6343a9a1832bf025ca0e654d4074bdf7b
+EBUILD units-2.23.ebuild 1136 BLAKE2B 905899fc59762b48db4c4d9991c08af2e47066932a1abea29f23c1187e9531e781cb8e4e0a4e76f6b59b542d5c64b0695733974c020bd5a94965d81bcb0ffc64 SHA512 f05b90f1aff3619fd03554f38bee5f8b2fa275110645eaa53cf03b659a4301d43c55bd7ca76caf018ceaf67af8cc6f0c43f599400004051af29af2df37810911
+MISC metadata.xml 472 BLAKE2B fc9e0b85f99b703ba852b3f817879a40616f1dedf03dfd9fff4f1ec3fc152f0032d66275534f987ffecc40cd790d6216263035c502ff8eb760012ace304ebb68 SHA512 7d432f9df639f57ffe12ca5aafd8e78095b94c9cf764e64a76d9e04cdd1cd57e8193ca72f61a968c5d718c2b5a6216cc94c1d619564b3eeb7e645010aa27c20f
diff --git a/sci-calculators/units/metadata.xml b/sci-calculators/units/metadata.xml
index 0f742b8f2221..09b6ba2b5614 100644
--- a/sci-calculators/units/metadata.xml
+++ b/sci-calculators/units/metadata.xml
@@ -1,11 +1,15 @@
-<?xml version="1.0" encoding="UTF-8"?>
+<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
- <!-- maintainer-needed -->
- <use>
- <flag name="units-cur">Install the units_cur python script that updates currencies</flag>
- </use>
- <upstream>
- <remote-id type="savannah">units</remote-id>
- </upstream>
+ <maintainer type="person">
+ <email>ceamac@gentoo.org</email>
+ <name>Viorel Munteanu</name>
+ </maintainer>
+ <use>
+ <flag name="units-cur">Install the units_cur python script that updates currencies</flag>
+ </use>
+ <upstream>
+ <remote-id type="savannah">units</remote-id>
+ <bugs-to>mailto:adrianm@gnu.org</bugs-to>
+ </upstream>
</pkgmetadata>
diff --git a/sci-calculators/units/units-2.23.ebuild b/sci-calculators/units/units-2.23.ebuild
new file mode 100644
index 000000000000..4d4fecb58392
--- /dev/null
+++ b/sci-calculators/units/units-2.23.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{10..12} )
+inherit python-r1
+
+DESCRIPTION="Unit conversion program"
+HOMEPAGE="https://www.gnu.org/software/units/units.html"
+SRC_URI="mirror://gnu/${PN}/${P}.tar.gz"
+
+LICENSE="FDL-1.3 GPL-3+"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux"
+IUSE="+units-cur"
+REQUIRED_USE="units-cur? ( ${PYTHON_REQUIRED_USE} )"
+
+RDEPEND="
+ sys-libs/readline:=
+ units-cur? (
+ ${PYTHON_DEPS}
+ $(python_gen_cond_dep '
+ dev-python/requests[${PYTHON_USEDEP}]
+ ')
+ )
+"
+DEPEND="${RDEPEND}"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-2.20-readerror.patch
+)
+
+DOCS=( NEWS README )
+
+src_configure() {
+ local myconf=(
+ --sharedstatedir="${EPREFIX}"/var/lib
+ ac_cv_path_PYTHON=no
+ )
+
+ econf "${myconf[@]}"
+}
+
+src_compile() {
+ emake ${PN}
+}
+
+src_install() {
+ default
+
+ if use units-cur; then
+ sed \
+ -e "/^outfile/s|'.*'|'/usr/share/units/currency.units'|g" \
+ -e 's|^#!|&/usr/bin/python|g' \
+ units_cur_inst > units_cur || die
+ python_foreach_impl python_doscript units_cur
+ fi
+}