diff options
Diffstat (limited to 'sci-calculators')
-rw-r--r-- | sci-calculators/Manifest.gz | bin | 3196 -> 3197 bytes | |||
-rw-r--r-- | sci-calculators/units/Manifest | 1 | ||||
-rw-r--r-- | sci-calculators/units/units-2.23-r1.ebuild | 61 |
3 files changed, 62 insertions, 0 deletions
diff --git a/sci-calculators/Manifest.gz b/sci-calculators/Manifest.gz Binary files differindex 204252ce72c8..3686001ac543 100644 --- a/sci-calculators/Manifest.gz +++ b/sci-calculators/Manifest.gz diff --git a/sci-calculators/units/Manifest b/sci-calculators/units/Manifest index d69f55c0bdd4..aaf460068f3d 100644 --- a/sci-calculators/units/Manifest +++ b/sci-calculators/units/Manifest @@ -1,4 +1,5 @@ AUX units-2.20-readerror.patch 306 BLAKE2B 7007ed50539043f1b21a9676c8d1ff377d1d6e1d9e1d3e4bca9e4dcda520d77cddc28abe35333cd1cb4a5d451264d94f22bc6594a5f1fd15488d5d5e1d5bf12d SHA512 4d1acb3ca6e4bd2874854cfa27e8bc5418ef30d628589eace8011733556835feb30630a2b37bb1e5e975392fe75e684b48f31a9b2624b8703714dbb501f6f27d DIST units-2.23.tar.gz 1423494 BLAKE2B 9a835ec3862b7c09149d5726084fb3068acb9d01b3a8234647cd47805a559b75131046bfe407152dec9f2e06c6c3315686dd0db0694d2c5ef0173e6ee64ce378 SHA512 628aac3a560ed728f1aba91841f9fccc0b145375a0b8953b98ac00c71bcc7f647377d16c6ba7b59e987a6e7a74b44038a62f2576f757a43d7564be469be81ee8 +EBUILD units-2.23-r1.ebuild 1128 BLAKE2B c0aeb66e05a5b52f2ced42d9b1f88746db5691e1677d4f6b7deab7286908c113811f68a5d88b22205b36ac4e4427f170bf031f9351ab618b134a8e34a81f69b7 SHA512 8e524881fe35724cba34651c189cb3dcc517e3b7bec9828ee513d8304134d0bc0d980ab8ae6a5eb3fd187c61a471c410382c7e5d1c37bf3d73a5fe13260e3165 EBUILD units-2.23.ebuild 1133 BLAKE2B 39bde80069bc8630fa8a985ff36128952c118bb19ecf7d1a1d08da282de8ffc874962ec350711f8fe9b7db6b3e8439371aef745e4fbcc3683cca648cbe4f0d6a SHA512 2aae996c7c558b3f175bc12d57a4bfa02022882c104cd634236a8e22047b5a6bb21e00e9155fc07f9221e53a776cb9204e4ad5de415967dfb3b51e896ab06dbc MISC metadata.xml 472 BLAKE2B fc9e0b85f99b703ba852b3f817879a40616f1dedf03dfd9fff4f1ec3fc152f0032d66275534f987ffecc40cd790d6216263035c502ff8eb760012ace304ebb68 SHA512 7d432f9df639f57ffe12ca5aafd8e78095b94c9cf764e64a76d9e04cdd1cd57e8193ca72f61a968c5d718c2b5a6216cc94c1d619564b3eeb7e645010aa27c20f diff --git a/sci-calculators/units/units-2.23-r1.ebuild b/sci-calculators/units/units-2.23-r1.ebuild new file mode 100644 index 000000000000..e70c55546e81 --- /dev/null +++ b/sci-calculators/units/units-2.23-r1.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{10..13} ) +inherit flag-o-matic 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() { + # bug #944371 + append-cflags -std=gnu17 + + 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 's|^#!|&/usr/bin/python|g' \ + units_cur_inst > units_cur || die + python_foreach_impl python_doscript units_cur + fi +} |