summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sci-calculators')
-rw-r--r--sci-calculators/bc-gh/Manifest1
-rw-r--r--sci-calculators/bc-gh/bc-gh-6.7.6.ebuild77
-rw-r--r--sci-calculators/qalculate-gtk/qalculate-gtk-4.8.1.ebuild2
-rw-r--r--sci-calculators/units/Manifest1
-rw-r--r--sci-calculators/units/files/units-2.17-network-sandbox.patch11
-rw-r--r--sci-calculators/units/units-2.21-r1.ebuild57
-rw-r--r--sci-calculators/xsv/xsv-0.13.0-r1.ebuild77
-rw-r--r--sci-calculators/xsv/xsv-0.13.0.ebuild76
8 files changed, 156 insertions, 146 deletions
diff --git a/sci-calculators/bc-gh/Manifest b/sci-calculators/bc-gh/Manifest
index b949909ea6f0..e9f5245f83e7 100644
--- a/sci-calculators/bc-gh/Manifest
+++ b/sci-calculators/bc-gh/Manifest
@@ -1,2 +1,3 @@
DIST bc-6.5.0.tar.xz 461380 BLAKE2B e4aa633162d03fc5723e967ba81f985ab1b16e47b3c9a3ca1c32e9a717db682ce88cc6ba453d5e9b09539dcb8ddbb258b7b7dbdd2e27279355e3c35028d56130 SHA512 1cb03038d828a0b10734c29931777add8b22f194c507b8ff538ec1aa52a2a97a4ac2733d72cdb0710fdc6937807074e929f7918c56aaf5be8fbe908ea7c5a401
DIST bc-6.7.5.tar.xz 468572 BLAKE2B 3942cfbbc2b8a307bc24b9f7c3e037bce374bd17332b236a8c76ccacef1177e36669b7f61944a5c5791b0a436dec171991cfc821526865a816fba91e65aa1f04 SHA512 5f689fd20801ea7ede725ae5dc4e8744bdf2d72424bffef99c53193a950f4bd83b6eb4c5a07556576d0b3f5b6cd7f9fc7cbcb41d27891f488bb2e97a186f76a4
+DIST bc-6.7.6.tar.xz 473104 BLAKE2B 447cf15d94e8800ad81d734efef5a6b4dfdc4930eeb0bff3a4c093e31d65a8449cf3e685af077ae3397a1a730c4345fb7e95c82446d09b692f4fd6ef6e90ea88 SHA512 418ce61e8151a548627b794692325f48c68f8cedca7a0cb8d896bb74510f55b33486214af0af1b160c1f387f3d034300dff6fbc29c2d44d7b304a7a37c3c478b
diff --git a/sci-calculators/bc-gh/bc-gh-6.7.6.ebuild b/sci-calculators/bc-gh/bc-gh-6.7.6.ebuild
new file mode 100644
index 000000000000..f60e406b8630
--- /dev/null
+++ b/sci-calculators/bc-gh/bc-gh-6.7.6.ebuild
@@ -0,0 +1,77 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit edo
+
+MY_P="bc-${PV}"
+DESCRIPTION="Implementation of POSIX bc with GNU extensions"
+HOMEPAGE="
+ https://git.gavinhoward.com/gavin/bc/
+ https://github.com/gavinhoward/bc/
+"
+SRC_URI="
+ https://github.com/gavinhoward/bc/releases/download/${PV}/${MY_P}.tar.xz
+"
+S=${WORKDIR}/${MY_P}
+
+LICENSE="BSD-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
+IUSE="libedit readline"
+
+DEPEND="
+ !readline? (
+ libedit? ( dev-libs/libedit:= )
+ )
+ readline? (
+ sys-libs/readline:=
+ sys-libs/ncurses:=
+ )
+"
+RDEPEND="
+ ${DEPEND}
+"
+
+src_configure() {
+ local myconf=(
+ # GNU and BSD bc's have slightly different behavior. This bc can act
+ # like both, changing at runtime with environment variables, but it
+ # needs defaults, which can be set at compile time. This option sets all
+ # of the defaults to match the GNU bc/dc since it's common on Linux.
+ -pGNU
+ # A lot of test results are generated first by a bc compatible with the
+ # GNU bc. If there is no GNU bc installed, then those tests should be
+ # skipped. That's what this option does. Without it, we would have a
+ # dependency cycle. Those tests are super long, anyway.
+ -G
+ # Disables the automatic stripping of binaries.
+ -T
+ # Enables installing all locales, which is important for packages.
+ -l
+ # Disables some "problematic" tests that need specific options on Linux
+ # to not trigger the OOM killer because malloc() lies.
+ -P
+ )
+ if use readline ; then
+ myconf+=( -r )
+ elif use libedit ; then
+ myconf+=( -e )
+ fi
+
+ local -x EXECSUFFIX="-gh"
+ local -x PREFIX="${EPREFIX}/usr"
+ edo ./configure.sh "${myconf[@]}"
+}
+
+src_test() {
+ # This is to fix a bug encountered on Arch. It is to ensure we don't get
+ # segfaults on `make check` when the error messages change because the error
+ # messages are passed to printf(); they have format specifiers. With these
+ # env vars, the internal error messages are used, instead of the installed
+ # locales, which might be different since the new locale files are not
+ # installed yet. (It is impossible to use uninstalled locales because of the
+ # poor design of POSIX locales.)
+ env LANG=C LC_ALL=C emake check
+}
diff --git a/sci-calculators/qalculate-gtk/qalculate-gtk-4.8.1.ebuild b/sci-calculators/qalculate-gtk/qalculate-gtk-4.8.1.ebuild
index 57d14e1d78dc..3cd6ad871803 100644
--- a/sci-calculators/qalculate-gtk/qalculate-gtk-4.8.1.ebuild
+++ b/sci-calculators/qalculate-gtk/qalculate-gtk-4.8.1.ebuild
@@ -13,7 +13,7 @@ SRC_URI="https://github.com/Qalculate/${PN}/releases/download/v${PV}/${P}.tar.gz
LICENSE="GPL-2+"
SLOT="0"
-KEYWORDS="~alpha amd64 ~arm64 ~hppa ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux"
+KEYWORDS="~alpha amd64 ~arm64 ~hppa ppc ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux"
RDEPEND="dev-libs/glib:2
>=sci-libs/libqalculate-${PV}:=
diff --git a/sci-calculators/units/Manifest b/sci-calculators/units/Manifest
index 2f123aa654f9..0dcbf6be4c02 100644
--- a/sci-calculators/units/Manifest
+++ b/sci-calculators/units/Manifest
@@ -1,2 +1 @@
-DIST units-2.21.tar.gz 1308533 BLAKE2B 0a02979eafa21af759128ec72b11e1f532640c9d0e88ae8f389a1beb52d5a400cbd6294042aa4c7d8786c06c8ac4106a77c302805b8c5e3bb84d4134805fd517 SHA512 34bacff606f12aa5b2e59170f6b2142277aa1121d79610a51b57f07f17ae2dbdfbbb0e60be34522f367679cc152408f77c1ebb551016224d23f81c21f4b3ba62
DIST units-2.23.tar.gz 1423494 BLAKE2B 9a835ec3862b7c09149d5726084fb3068acb9d01b3a8234647cd47805a559b75131046bfe407152dec9f2e06c6c3315686dd0db0694d2c5ef0173e6ee64ce378 SHA512 628aac3a560ed728f1aba91841f9fccc0b145375a0b8953b98ac00c71bcc7f647377d16c6ba7b59e987a6e7a74b44038a62f2576f757a43d7564be469be81ee8
diff --git a/sci-calculators/units/files/units-2.17-network-sandbox.patch b/sci-calculators/units/files/units-2.17-network-sandbox.patch
deleted file mode 100644
index e457610e430a..000000000000
--- a/sci-calculators/units/files/units-2.17-network-sandbox.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- a/Makefile.in
-+++ b/Makefile.in
-@@ -107,7 +107,7 @@
- -e "s@/usr/bin/python@$(PYTHON)@" \
- $(srcdir)/units_cur > units_cur_inst
-
--install-support: definitions.units units_cur_inst currency-units-update
-+install-support: definitions.units units_cur_inst
- $(MKDIR_P) $(DESTDIR)@UDAT@ $(DESTDIR)$(bindir) $(DESTDIR)@CDAT@
- $(INSTALL_DATA) $(srcdir)/definitions.units $(DESTDIR)@UDAT@definitions.units
- -rm -f $(DESTDIR)@UDAT@currency.units
diff --git a/sci-calculators/units/units-2.21-r1.ebuild b/sci-calculators/units/units-2.21-r1.ebuild
deleted file mode 100644
index 4fd1ba750a36..000000000000
--- a/sci-calculators/units/units-2.21-r1.ebuild
+++ /dev/null
@@ -1,57 +0,0 @@
-# Copyright 1999-2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-PYTHON_COMPAT=( python3_{10..11} )
-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.17-network-sandbox.patch
- "${FILESDIR}"/${PN}-2.20-readerror.patch
-)
-
-DOCS=( ChangeLog NEWS README )
-
-src_configure() {
- econf \
- --sharedstatedir="${EPREFIX}"/var/lib \
- ac_cv_path_PYTHON=no
-}
-
-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
-}
diff --git a/sci-calculators/xsv/xsv-0.13.0-r1.ebuild b/sci-calculators/xsv/xsv-0.13.0-r1.ebuild
new file mode 100644
index 000000000000..d5d9399c3aa6
--- /dev/null
+++ b/sci-calculators/xsv/xsv-0.13.0-r1.ebuild
@@ -0,0 +1,77 @@
+# Copyright 2021-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+CRATES="
+ aho-corasick@0.7.18
+ autocfg@1.0.1
+ bstr@0.2.16
+ byteorder@1.4.3
+ cfg-if@0.1.10
+ cfg-if@1.0.0
+ chan@0.1.23
+ csv@1.1.6
+ csv-core@0.1.10
+ csv-index@0.1.6
+ docopt@1.1.1
+ filetime@0.1.15
+ fuchsia-cprng@0.1.1
+ hermit-abi@0.1.18
+ itoa@0.4.7
+ lazy_static@1.4.0
+ libc@0.2.97
+ log@0.4.14
+ memchr@2.4.0
+ num-traits@0.2.14
+ num_cpus@1.13.0
+ proc-macro2@1.0.27
+ quickcheck@0.6.2
+ quote@1.0.9
+ rand@0.3.23
+ rand@0.4.6
+ rand_core@0.3.1
+ rand_core@0.4.2
+ rdrand@0.4.0
+ redox_syscall@0.1.57
+ regex@1.5.4
+ regex-automata@0.1.10
+ regex-syntax@0.6.25
+ ryu@1.0.5
+ serde@1.0.126
+ serde_derive@1.0.126
+ streaming-stats@0.2.3
+ strsim@0.10.0
+ syn@1.0.73
+ tabwriter@1.2.1
+ threadpool@1.8.1
+ unicode-width@0.1.8
+ unicode-xid@0.2.2
+ winapi@0.3.9
+ winapi-i686-pc-windows-gnu@0.4.0
+ winapi-x86_64-pc-windows-gnu@0.4.0
+"
+
+inherit cargo
+
+DESCRIPTION="A fast CSV command line toolkit written in Rust"
+HOMEPAGE="https://github.com/BurntSushi/xsv"
+SRC_URI="${CARGO_CRATE_URIS}
+ https://github.com/BurntSushi/xsv/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
+LICENSE="|| ( MIT Unlicense ) Apache-2.0 Boost-1.0 MIT Unlicense"
+SLOT="0"
+KEYWORDS="amd64"
+
+BDEPEND="${RUST_DEPEND}"
+
+QA_FLAGS_IGNORED="usr/bin/${PN}"
+
+src_prepare() {
+ rm Cargo.lock || die "Failed to remove stale Cargo.lock"
+ default
+}
+
+src_install() {
+ cargo_src_install
+ dodoc BENCHMARKS.md README.md
+}
diff --git a/sci-calculators/xsv/xsv-0.13.0.ebuild b/sci-calculators/xsv/xsv-0.13.0.ebuild
deleted file mode 100644
index 39510584561d..000000000000
--- a/sci-calculators/xsv/xsv-0.13.0.ebuild
+++ /dev/null
@@ -1,76 +0,0 @@
-# Copyright 2021-2022 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-CRATES="
-aho-corasick-0.7.18
-autocfg-1.0.1
-bstr-0.2.16
-byteorder-1.4.3
-cfg-if-0.1.10
-cfg-if-1.0.0
-chan-0.1.23
-csv-1.1.6
-csv-core-0.1.10
-csv-index-0.1.6
-docopt-1.1.1
-filetime-0.1.15
-fuchsia-cprng-0.1.1
-hermit-abi-0.1.18
-itoa-0.4.7
-lazy_static-1.4.0
-libc-0.2.97
-log-0.4.14
-memchr-2.4.0
-num-traits-0.2.14
-num_cpus-1.13.0
-proc-macro2-1.0.27
-quickcheck-0.6.2
-quote-1.0.9
-rand-0.3.23
-rand-0.4.6
-rand_core-0.3.1
-rand_core-0.4.2
-rdrand-0.4.0
-redox_syscall-0.1.57
-regex-1.5.4
-regex-automata-0.1.10
-regex-syntax-0.6.25
-ryu-1.0.5
-serde-1.0.126
-serde_derive-1.0.126
-streaming-stats-0.2.3
-strsim-0.10.0
-syn-1.0.73
-tabwriter-1.2.1
-threadpool-1.8.1
-unicode-width-0.1.8
-unicode-xid-0.2.2
-winapi-0.3.9
-winapi-i686-pc-windows-gnu-0.4.0
-winapi-x86_64-pc-windows-gnu-0.4.0
-"
-
-inherit cargo
-
-DESCRIPTION="A fast CSV command line toolkit written in Rust"
-HOMEPAGE="https://github.com/BurntSushi/xsv"
-SRC_URI="$(cargo_crate_uris ${CRATES})
- https://github.com/BurntSushi/xsv/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
-LICENSE="|| ( MIT Unlicense ) Apache-2.0 Boost-1.0 MIT Unlicense"
-SLOT="0"
-KEYWORDS="amd64"
-IUSE=""
-
-BDEPEND="${RUST_DEPEND}"
-
-src_prepare() {
- rm Cargo.lock || die "Failed to remove stale Cargo.lock"
- default
-}
-
-src_install() {
- cargo_src_install
- dodoc BENCHMARKS.md README.md
-}