diff options
| author | root <root@alpha.trunkmasters.com> | 2026-06-12 19:09:37 -0500 |
|---|---|---|
| committer | root <root@alpha.trunkmasters.com> | 2026-06-12 19:09:37 -0500 |
| commit | b590c8d7572b727d565cc0b8ff660d43569845de (patch) | |
| tree | 06f7a4102ea4e845df8b66660f252920d52952f9 /sci-calculators | |
| parent | 24f9cbfc4c34fdb6a6e03311674414e881ceab47 (diff) | |
| download | baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.tar.gz baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.tar.xz baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.zip | |
Adding metadata
Diffstat (limited to 'sci-calculators')
90 files changed, 2578 insertions, 0 deletions
diff --git a/sci-calculators/bc-gh/Manifest b/sci-calculators/bc-gh/Manifest new file mode 100644 index 000000000000..06760e026684 --- /dev/null +++ b/sci-calculators/bc-gh/Manifest @@ -0,0 +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-7.0.3.tar.xz 474800 BLAKE2B 928d5d37b987887d0a300b2b03aadaa6d4378dddfcda0375274873df6ae28ef3d8c2ffc7c821911785c31bd1fe1969dbdfba36af5bf402025597f6c52da7ec2e SHA512 40bd059eda5df30fe41a4683a51727af7c9d0df48eb795c3c0afff0740cb4b4e719a6135203ebacb27617d9721a78c24f3ec3107c676aafa2808f73313084cd7 diff --git a/sci-calculators/bc-gh/bc-gh-6.5.0.ebuild b/sci-calculators/bc-gh/bc-gh-6.5.0.ebuild new file mode 100644 index 000000000000..3ab9c688d556 --- /dev/null +++ b/sci-calculators/bc-gh/bc-gh-6.5.0.ebuild @@ -0,0 +1,75 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +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 ~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" + ./configure.sh "${myconf[@]}" || die +} + +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/bc-gh/bc-gh-6.7.5.ebuild b/sci-calculators/bc-gh/bc-gh-6.7.5.ebuild new file mode 100644 index 000000000000..ad138aaac43b --- /dev/null +++ b/sci-calculators/bc-gh/bc-gh-6.7.5.ebuild @@ -0,0 +1,77 @@ +# Copyright 1999-2025 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 ~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/bc-gh/bc-gh-7.0.3.ebuild b/sci-calculators/bc-gh/bc-gh-7.0.3.ebuild new file mode 100644 index 000000000000..ad138aaac43b --- /dev/null +++ b/sci-calculators/bc-gh/bc-gh-7.0.3.ebuild @@ -0,0 +1,77 @@ +# Copyright 1999-2025 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 ~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/bc-gh/metadata.xml b/sci-calculators/bc-gh/metadata.xml new file mode 100644 index 000000000000..013ce5da61ae --- /dev/null +++ b/sci-calculators/bc-gh/metadata.xml @@ -0,0 +1,27 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person" proxied="yes"> + <name>Gavin D. Howard</name> + <email>gavin@gavinhoward.com</email> + </maintainer> + <maintainer type="project" proxied="proxy"> + <email>proxy-maint@gentoo.org</email> + <name>Proxy Maintainers</name> + </maintainer> + <upstream> + <maintainer> + <name>Gavin D. Howard</name> + <email>gavin@gavinhoward.com</email> + </maintainer> + <bugs-to>https://git.gavinhoward.com/gavin/bc</bugs-to> + <doc>https://git.gavinhoward.com/gavin/bc/src/branch/master/manuals</doc> + </upstream> + <longdescription lang="en"> + An implementation of POSIX bc and Unix dc with GNU extensions and some of + their own extensions. It also removes the dangerous '!' dc command. + This bc/dc is especially useful for programmers, with extra math and a + larger builtin library with some hardware-oriented print functions. + </longdescription> + <origin>baldeagleos-repo</origin> +</pkgmetadata> diff --git a/sci-calculators/calcoo/Manifest b/sci-calculators/calcoo/Manifest new file mode 100644 index 000000000000..7693eec64290 --- /dev/null +++ b/sci-calculators/calcoo/Manifest @@ -0,0 +1 @@ +DIST calcoo-1.3.18.tar.gz 133605 BLAKE2B 4a753143dce8311c10bf6906bd6723f6109cede03bfc89051dd4d952e90becba473046654808381d7636b35c627ebc1522b24e488a59532ea3e656508ca72334 SHA512 e03fd61abb1e5500a1e4eb91e732ced1c963770ddb85824430511cc5c14d1f5af1095e2fdc7b8b483afba94e3ac8381a001e0a42dccaa182c1a888e90afd14a7 diff --git a/sci-calculators/calcoo/calcoo-1.3.18-r2.ebuild b/sci-calculators/calcoo/calcoo-1.3.18-r2.ebuild new file mode 100644 index 000000000000..e76fc87fed83 --- /dev/null +++ b/sci-calculators/calcoo/calcoo-1.3.18-r2.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools desktop + +DESCRIPTION="Scientific calculator designed to provide maximum usability" +HOMEPAGE="http://calcoo.sourceforge.net/" +SRC_URI="https://downloads.sourceforge.net/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~sparc ~x86" + +RDEPEND="x11-libs/gtk+:2" +DEPEND="${RDEPEND}" +BDEPEND="virtual/pkgconfig" + +PATCHES=( "${FILESDIR}"/${P}-gold.patch ) + +src_prepare() { + default + eautoreconf +} + +src_configure() { + econf --disable-gtktest +} + +src_install() { + default + + newicon src/pixmaps/main.xpm ${PN}.xpm + make_desktop_entry ${PN} Calcoo ${PN} "Education;Math" +} diff --git a/sci-calculators/calcoo/files/calcoo-1.3.18-gold.patch b/sci-calculators/calcoo/files/calcoo-1.3.18-gold.patch new file mode 100644 index 000000000000..1369dd526b28 --- /dev/null +++ b/sci-calculators/calcoo/files/calcoo-1.3.18-gold.patch @@ -0,0 +1,16 @@ + src/Makefile.am | 2 +- + 1 files changed, 1 insertions(+), 1 deletions(-) + +diff --git a/src/Makefile.am b/src/Makefile.am +index b14dc1e..d713b51 100644 +--- a/src/Makefile.am ++++ b/src/Makefile.am +@@ -36,7 +36,7 @@ output.c \ + texts.h + + INCLUDES = @GTK_CFLAGS@ +-LDADD = @GTK_LIBS@ ++LDADD = @GTK_LIBS@ -lm + CLEANFILES = *~ + DISTCLEANFILES = .deps/*.P + diff --git a/sci-calculators/calcoo/metadata.xml b/sci-calculators/calcoo/metadata.xml new file mode 100644 index 000000000000..b201c2cfeade --- /dev/null +++ b/sci-calculators/calcoo/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>sci@gentoo.org</email> + <name>Gentoo Science Project</name> + </maintainer> + <origin>baldeagleos-repo</origin> +</pkgmetadata> diff --git a/sci-calculators/datamash/Manifest b/sci-calculators/datamash/Manifest new file mode 100644 index 000000000000..62666558fbcb --- /dev/null +++ b/sci-calculators/datamash/Manifest @@ -0,0 +1 @@ +DIST datamash-1.9.tar.gz 2653588 BLAKE2B a56f38b7006fe3c6fb2bda24ce3798d44c6d4cc41b6b4c5ca20c7e2fdfde046c60de9ee9a9ca559a733fe1364522a4cd260ceeb0f969de684bf267eaf3942865 SHA512 f8b081e6bc2579bdd753817aeaa09ea12e8c2bfa0a2b9a1071e10b402cf2a34f9cc76a7cadf5f1ecb9d88ea68e5aa99685496be8c4a41044e4e7e33a2105a57f diff --git a/sci-calculators/datamash/datamash-1.9.ebuild b/sci-calculators/datamash/datamash-1.9.ebuild new file mode 100644 index 000000000000..499871561426 --- /dev/null +++ b/sci-calculators/datamash/datamash-1.9.ebuild @@ -0,0 +1,30 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit branding + +DESCRIPTION="Command-line program for basic numeric, textual and statistical operations" +HOMEPAGE="https://www.gnu.org/software/datamash/" +SRC_URI="mirror://gnu/${PN}/${P}.tar.gz" + +LICENSE="GPL-3+" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="nls openssl" + +RDEPEND=" + nls? ( virtual/libintl ) + openssl? ( dev-libs/openssl:= ) +" +BDEPEND=" + nls? ( sys-devel/gettext ) + openssl? ( dev-libs/openssl:= ) +" + +src_configure() { + econf \ + $(use_enable nls) \ + $(use_with openssl) +} diff --git a/sci-calculators/datamash/metadata.xml b/sci-calculators/datamash/metadata.xml new file mode 100644 index 000000000000..45796df97bf3 --- /dev/null +++ b/sci-calculators/datamash/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <use> + <flag name="openssl">Use <pkg>dev-libs/openssl</pkg> for hash routines instead of internal gnulib</flag> + </use> + <origin>baldeagleos-repo</origin> +</pkgmetadata> diff --git a/sci-calculators/galculator/Manifest b/sci-calculators/galculator/Manifest new file mode 100644 index 000000000000..bb7f0d559941 --- /dev/null +++ b/sci-calculators/galculator/Manifest @@ -0,0 +1,2 @@ +DIST galculator-2.1.4.tar.bz2 472989 BLAKE2B 2fa40aa0d04880e46aad89c79ebb221a13fca815af3540c159205690a65dae6c5ec9e52e48c110ecadc4a18b86d5bd5d363f9d77c162717c8bfd2a60b71d0896 SHA512 ca5f373649d9bf26184e94ba6a501610efbb13e92a8723cda78b83aa495519e82e5b4fcd17f00f615eb702ed186598aecc70ae63a8238c32384b7f608cba4cfa +DIST galculator-2.1.5_pre20150928.tar.gz 482678 BLAKE2B 1895b15712e0592acc40ccf292b86c62e7a8e71fa77f8a898266a13af8fdccd90432af6b03c176a8efeb23c11f98d072de87fee8de64de30412cb6149faa07be SHA512 c5d07a5cad25a7d081e4b8b85ae391b7a628a488df9b3722d0959e41b023b5c9ada22c1ffcf7c9f26a2af6373bdd8f53e8a3795b5a0f0c0ab53eec9af32fa35a diff --git a/sci-calculators/galculator/files/galculator-2.1.4-c23.patch b/sci-calculators/galculator/files/galculator-2.1.4-c23.patch new file mode 100644 index 000000000000..d773cf9953eb --- /dev/null +++ b/sci-calculators/galculator/files/galculator-2.1.4-c23.patch @@ -0,0 +1,106 @@ +From: "Henrique F. Simoes" <henriquesimoes@riseup.net> +Date: Wed, 15 Oct 2025 21:17:51 -0300 +Subject: Declare function parameters as required by C23 + +In C23, having no parameter in a function declaration no longer means an +"unspecified" number of arguments [1]. Therefore, this code fails to +build with this standard. Declare the missing function arguments, so +that it compiles once again with the default standard from modern +compilers, such as GCC 15. + +The exception here is the set_{basic,scientific}_object_data functions, +which actually don't use their argument at all. Thus, their unique calls +are changed instead. + +Because functions registered by set_disp_ctrl_object_data don't receive +a button pointer as argument as the others, declare a new struct for +holding the entries for that. It is named after "display" as it is only +used for display control buttons. + +[1] https://gcc.gnu.org/gcc-15/porting_to.html + +Bug-Debian: https://bugs.debian.org/1096669 +--- + src/callbacks.c | 2 +- + src/galculator.h | 8 +++++++- + src/ui.c | 6 +++--- + src/ui.h | 2 +- + 4 files changed, 12 insertions(+), 6 deletions(-) + +diff --git a/src/callbacks.c b/src/callbacks.c +index 503fb13..7259afe 100644 +--- a/src/callbacks.c ++++ b/src/callbacks.c +@@ -262,7 +262,7 @@ void + on_gfunc_button_clicked (GtkToggleButton *button, + gpointer user_data) + { +- void (*func)(); ++ void (*func)(GtkToggleButton *); + char *display_string; + + if (gtk_toggle_button_get_active(button) == FALSE) return; +diff --git a/src/galculator.h b/src/galculator.h +index 22a4060..bb2ff9f 100644 +--- a/src/galculator.h ++++ b/src/galculator.h +@@ -180,9 +180,15 @@ typedef struct { + typedef struct { + char *button_name; + char *display_string; +- void (*func)(); ++ void (*func)(GtkToggleButton *button); + } s_gfunc_map; + ++typedef struct { ++ char *button_name; ++ char *display_string; ++ void (*func)(); ++} s_disp_func_map; ++ + typedef struct { + char *button_name; + /* display_string: what to display in history or formula entry. hasn't +diff --git a/src/ui.c b/src/ui.c +index 6eaac7d..3ed50a5 100644 +--- a/src/ui.c ++++ b/src/ui.c +@@ -244,7 +244,7 @@ static void set_disp_ctrl_object_data () + { + int counter=0; + +- s_gfunc_map map[] = {\ ++ s_disp_func_map map[] = {\ + {"button_clr", NULL, clear},\ + {"button_backspace", NULL, backspace},\ + {"button_allclr", NULL, all_clear},\ +@@ -433,14 +433,14 @@ void ui_main_window_buttons_create (int mode) + button_box_xml = gtk_builder_file_open (BASIC_GLADE_FILE, TRUE); + box = GTK_WIDGET(gtk_builder_get_object (view_xml, "classic_view_vbox")); + ui_pack_from_xml (box, 2, button_box_xml, "button_box", TRUE, TRUE); +- set_basic_object_data (button_box_xml); ++ set_basic_object_data (); + break; + case SCIENTIFIC_MODE: + if (button_box_xml) g_object_unref (G_OBJECT(button_box_xml)); + button_box_xml = gtk_builder_file_open (SCIENTIFIC_GLADE_FILE, TRUE); + box = GTK_WIDGET(gtk_builder_get_object (view_xml, "classic_view_vbox")); + ui_pack_from_xml (box, 2, button_box_xml, "button_box", TRUE, TRUE); +- set_scientific_object_data (button_box_xml); ++ set_scientific_object_data (); + break; + case PAPER_MODE: + return; +diff --git a/src/ui.h b/src/ui.h +index 90992a2..a20ac3c 100644 +--- a/src/ui.h ++++ b/src/ui.h +@@ -74,7 +74,7 @@ void ui_formula_entry_activate (); + void ui_formula_entry_set (G_CONST_RETURN gchar *text); + void ui_formula_entry_insert (G_CONST_RETURN gchar *text); + void ui_formula_entry_backspace (); +-void ui_formula_entry_state (); ++void ui_formula_entry_state (gboolean error); + void ui_button_set_pan (); + void ui_button_set_rpn (); + void ui_relax_fmod_buttons (); diff --git a/sci-calculators/galculator/files/galculator-2.1.4-fno-common.patch b/sci-calculators/galculator/files/galculator-2.1.4-fno-common.patch new file mode 100644 index 000000000000..32fa609d19c9 --- /dev/null +++ b/sci-calculators/galculator/files/galculator-2.1.4-fno-common.patch @@ -0,0 +1,27 @@ +From 501a9e3feeb2e56889c0ff98ab6d0ab20348ccd6 Mon Sep 17 00:00:00 2001 +From: Kentaro Hayashi <kenhys@gmail.com> +Date: Sat, 1 Aug 2020 22:25:37 +0900 +Subject: [PATCH] Fix multiple definition of `prefs` compile error with GCC-10 + +This commit fixes the following error: + + libtool: link: gcc -pthread -I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/gtk-3.0 -I/usr/include/gio-unix-2.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/fribidi -I/usr/include/harfbuzz -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -g -O2 -fdebug-prefix-map=/workspace/galculator-2.1.4=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wl,-z -Wl,relro -o galculator galculator-main.o galculator-math_functions.o galculator-display.o galculator-general_functions.o galculator-calc_basic.o galculator-config_file.o galculator-callbacks.o galculator-ui.o galculator-flex_parser.o -Wl,--export-dynamic -Wl,--as-needed -lgtk-3 -lgdk-3 -lpangocairo-1.0 -lpango-1.0 -lharfbuzz -latk-1.0 -lcairo-gobject -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lm -lquadmath -pthread +/usr/bin/ld: galculator-config_file.o:./src/config_file.c:42: multiple definition of `prefs'; galculator-main.o:./src/main.c:52: first defined here + collect2: error: ld returned 1 exit status +--- + src/main.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/main.c b/src/main.c +index 10d0868..d22fea0 100644 +--- a/src/main.c ++++ b/src/main.c +@@ -49,7 +49,7 @@ + + #define MASK_NUMLOCK GDK_MOD2_MASK + +-s_preferences prefs; ++extern s_preferences prefs; + s_current_status current_status = {0, 0, 0, 0, FALSE, FALSE, TRUE}; + s_array memory; + s_constant *constant; diff --git a/sci-calculators/galculator/galculator-2.1.4-r2.ebuild b/sci-calculators/galculator/galculator-2.1.4-r2.ebuild new file mode 100644 index 000000000000..0ccd29d83bd4 --- /dev/null +++ b/sci-calculators/galculator/galculator-2.1.4-r2.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit xdg + +DESCRIPTION="GTK+ based algebraic and RPN calculator" +HOMEPAGE="https://github.com/galculator/galculator" +SRC_URI="http://galculator.mnim.org/downloads/${P}.tar.bz2" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~alpha amd64 ~arm ~arm64 ~ppc ~x86" + +RDEPEND=" + dev-libs/glib:2 + x11-libs/gtk+:3 + x11-libs/pango" +DEPEND="${RDEPEND}" +BDEPEND=" + dev-util/intltool + app-alternatives/lex + sys-devel/gettext + virtual/pkgconfig" + +PATCHES=( "${FILESDIR}"/${P}-fno-common.patch ) + +src_prepare() { + default + + # bug 566290 + echo "src/flex_parser.c" >> po/POTFILES.skip || die +} + +src_install() { + default + dodoc doc/shortcuts + + mv "${ED}"/usr/share/{appdata,metainfo} || die +} diff --git a/sci-calculators/galculator/galculator-2.1.5_pre20150928.ebuild b/sci-calculators/galculator/galculator-2.1.5_pre20150928.ebuild new file mode 100644 index 000000000000..e1e56799a74a --- /dev/null +++ b/sci-calculators/galculator/galculator-2.1.5_pre20150928.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools xdg + +DESCRIPTION="GTK+ based algebraic and RPN calculator" +HOMEPAGE="https://github.com/galculator/galculator" +COMMIT="ccf6f06602a5cf9d9fc95d767b545b03af6a7f71" +SRC_URI="https://github.com/galculator/galculator/archive/${COMMIT}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/${PN}-${COMMIT}" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ppc ~x86" + +RDEPEND=" + dev-libs/glib:2 + x11-libs/gtk+:3 + x11-libs/pango +" +DEPEND="${RDEPEND}" +BDEPEND=" + dev-util/intltool + app-alternatives/lex + sys-devel/gettext + virtual/pkgconfig +" + +PATCHES=( + "${FILESDIR}"/${PN}-2.1.4-fno-common.patch + "${FILESDIR}"/${PN}-2.1.4-c23.patch +) + +src_prepare() { + default + eautoreconf +} + +src_install() { + default + dodoc doc/shortcuts + + mv "${ED}"/usr/share/{appdata,metainfo} || die +} diff --git a/sci-calculators/galculator/metadata.xml b/sci-calculators/galculator/metadata.xml new file mode 100644 index 000000000000..f6b6cde5f785 --- /dev/null +++ b/sci-calculators/galculator/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>gnome@gentoo.org</email> + <name>Gentoo GNOME Desktop</name> + </maintainer> + <origin>baldeagleos-repo</origin> +</pkgmetadata> diff --git a/sci-calculators/hcalc/Manifest b/sci-calculators/hcalc/Manifest new file mode 100644 index 000000000000..77ca3f66e093 --- /dev/null +++ b/sci-calculators/hcalc/Manifest @@ -0,0 +1 @@ +DIST hcalc-1.2.gh.tar.gz 18601 BLAKE2B 72ac8e60fa4bacb106314a9b2712b296ab42684f2b7d3c05bfa5baf0541a679c542ea1cb98071479fb009c0a6b6a05a817f743ca45dffa9fa93ed1a4a68c4fa5 SHA512 3e341095aa099cd3c592a727ede3202cdf72a7843b51d57605c42aa7c28bf23d23baa3859152dbea107f247acb4b851fce9d5f5d671233f12f4396d02f5a4bc8 diff --git a/sci-calculators/hcalc/files/hcalc-1.2-clang16.patch b/sci-calculators/hcalc/files/hcalc-1.2-clang16.patch new file mode 100644 index 000000000000..19b08726b18e --- /dev/null +++ b/sci-calculators/hcalc/files/hcalc-1.2-clang16.patch @@ -0,0 +1,26 @@ +https://bugs.gentoo.org/870514 +--- a/draw.c ++++ b/draw.c +@@ -63,2 +63,3 @@ + ++void + set_bits(int b) +@@ -70,2 +71,3 @@ + ++void + set_string(char *s) +--- a/hcalc.h ++++ b/hcalc.h +@@ -37 +37,12 @@ + #define HEIGHT 294 ++ ++void button(int b, int x, int y); ++void complete_paste(char *s, int n); ++void key(char c); ++void load_pixmaps(void); ++void process_input(void); ++void redraw(void); ++void send_current_display(void); ++void set_bits(int b); ++void set_string(char *s); ++void setup_x(int argc, char **argv); diff --git a/sci-calculators/hcalc/files/hcalc-1.2-cmake4.patch b/sci-calculators/hcalc/files/hcalc-1.2-cmake4.patch new file mode 100644 index 000000000000..7f8e47adf5a5 --- /dev/null +++ b/sci-calculators/hcalc/files/hcalc-1.2-cmake4.patch @@ -0,0 +1,8 @@ +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -1,4 +1,4 @@ +-cmake_minimum_required (VERSION 2.6) ++cmake_minimum_required (VERSION 3.10) + project (hcalc C) + + find_package(X11) diff --git a/sci-calculators/hcalc/files/hcalc-1.2-fno-common.patch b/sci-calculators/hcalc/files/hcalc-1.2-fno-common.patch new file mode 100644 index 000000000000..b8bdcc73e305 --- /dev/null +++ b/sci-calculators/hcalc/files/hcalc-1.2-fno-common.patch @@ -0,0 +1,13 @@ +--- a/hcalc.h ++++ b/hcalc.h +@@ -25,8 +25,8 @@ + extern Pixmap face; + extern Pixmap chars; + +-int bit_on; +-int bit_off; ++extern int bit_on; ++extern int bit_off; + + extern int char_to_x[256]; + extern char charmap[]; diff --git a/sci-calculators/hcalc/hcalc-1.2-r1.ebuild b/sci-calculators/hcalc/hcalc-1.2-r1.ebuild new file mode 100644 index 000000000000..30a93b7aafcf --- /dev/null +++ b/sci-calculators/hcalc/hcalc-1.2-r1.ebuild @@ -0,0 +1,29 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake + +DESCRIPTION="DJ's Hex Calculator" +HOMEPAGE="https://www.delorie.com/store/hcalc/ https://github.com/jlec/hcalc" +SRC_URI="https://github.com/jlec/hcalc/archive/refs/tags/${PV}.tar.gz -> ${P}.gh.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ~ppc ~x86" + +RDEPEND=" + x11-libs/libX11 + x11-libs/libXpm" +DEPEND="${RDEPEND}" + +PATCHES=( + "${FILESDIR}"/${P}-fno-common.patch + "${FILESDIR}"/${P}-clang16.patch + "${FILESDIR}"/${P}-cmake4.patch # bug 952071, downstream patch +) + +pkg_postinst() { + einfo "Enter hcalc to run and use kill or ctrl-c to exit." +} diff --git a/sci-calculators/hcalc/metadata.xml b/sci-calculators/hcalc/metadata.xml new file mode 100644 index 000000000000..b201c2cfeade --- /dev/null +++ b/sci-calculators/hcalc/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>sci@gentoo.org</email> + <name>Gentoo Science Project</name> + </maintainer> + <origin>baldeagleos-repo</origin> +</pkgmetadata> diff --git a/sci-calculators/hexcalc/Manifest b/sci-calculators/hexcalc/Manifest new file mode 100644 index 000000000000..84dcd88cc81a --- /dev/null +++ b/sci-calculators/hexcalc/Manifest @@ -0,0 +1 @@ +DIST hexcalc-1.11.tar.Z 18033 BLAKE2B 6f6c8102cd1a2ffdb325bc0805bea02d8e186bc3da7cda3dd4830882f384cfaecc7dc1d0fc8873718bc850f80010a875653864be92edd6519ae4fd5033e53498 SHA512 f684d6d6bd6df3f7f0dd626345d8ef166b12513bb378e74f8c59c2b92970f99c665ca32585217e75d55bf0fd93b5fc5c6a5b73e8b438f4821c13219f8ac74766 diff --git a/sci-calculators/hexcalc/files/hexcalc-keypad.diff b/sci-calculators/hexcalc/files/hexcalc-keypad.diff new file mode 100644 index 000000000000..c24bc07f7a20 --- /dev/null +++ b/sci-calculators/hexcalc/files/hexcalc-keypad.diff @@ -0,0 +1,116 @@ +--- a/hexcalc.c ++++ b/hexcalc.c +@@ -208,46 +208,73 @@ + }; + + static String defaultTranslations = +- ":<Key>(: DoKey(\"(\")\n\ +- :<Key>&: DoKey(&)\n\ +- :<Key>^: DoKey(^)\n\ +- :<Key>): DoKey(\")\")\n\ +- Ctrl<Key>c: DoKey(off)\n\ +- :<Key>H: DoKey(hex)\n\ +- :<Key>O: DoKey(oct)\n\ +- :<Key>D: DoKey(dec)\n\ +- :<Key>B: DoKey(bin)\n\ +- :<Key>R: DoKey(Rcl)\n\ +- :<Key>S: DoKey(Sto)\n\ +- :<Key>s: DoKey(16)\n\ +- :<Key>l: DoKey(32)\n\ +- :<Key>+: DoKey(+)\n\ +- :<Key>-: DoKey(-)\n\ +- :<Key>*: DoKey(*)\n\ +- :<Key>/: DoKey(/)\n\ +- :<Key>%: DoKey(%)\n\ +- :<Key>>: DoKey(>>)\n\ +- :<Key><: DoKey(<<)\n\ +- :<Key>0: DoKey(0)\n\ +- :<Key>1: DoKey(1)\n\ +- :<Key>2: DoKey(2)\n\ +- :<Key>3: DoKey(3)\n\ +- :<Key>4: DoKey(4)\n\ +- :<Key>5: DoKey(5)\n\ +- :<Key>6: DoKey(6)\n\ +- :<Key>7: DoKey(7)\n\ +- :<Key>8: DoKey(8)\n\ +- :<Key>9: DoKey(9)\n\ +- :<Key>a: DoKey(a)\n\ +- :<Key>b: DoKey(b)\n\ +- :<Key>c: DoKey(c)\n\ +- :<Key>d: DoKey(d)\n\ +- :<Key>e: DoKey(e)\n\ +- :<Key>f: DoKey(f)\n\ +- Ctrl<Key>h: Delete()\n\ +- <Key>Delete: Delete()\n\ +- :<Key>=: DoKey(=)\n\ +- :<Key>Return: DoKey(=)" ++ ":<Key>(: DoKey(\"(\")\n\ ++ :<Key>&: DoKey(&)\n\ ++ :<Key>^: DoKey(^)\n\ ++ :<Key>): DoKey(\")\")\n\ ++ Ctrl<Key>c: DoKey(off)\n\ ++ :<Key>H: DoKey(hex)\n\ ++ :<Key>O: DoKey(oct)\n\ ++ :<Key>D: DoKey(dec)\n\ ++ :<Key>B: DoKey(bin)\n\ ++ :<Key>R: DoKey(Rcl)\n\ ++ :<Key>S: DoKey(Sto)\n\ ++ :<Key>s: DoKey(16)\n\ ++ :<Key>l: DoKey(32)\n\ ++ :<Key>+: DoKey(+)\n\ ++ :<Key>KP_Add: DoKey(+)\n\ ++ :<Key>-: DoKey(-)\n\ ++ :<Key>KP_Subtract: DoKey(-)\n\ ++ :<Key>*: DoKey(*)\n\ ++ :<Key>KP_Multiply: DoKey(*)\n\ ++ :<Key>/: DoKey(/)\n\ ++ :<Key>KP_Divide: DoKey(/)\n\ ++ :<Key>%: DoKey(%)\n\ ++ :<Key>>: DoKey(>>)\n\ ++ :<Key><: DoKey(<<)\n\ ++ :<Key>0: DoKey(0)\n\ ++ :<Key>KP_0: DoKey(0)\n\ ++ :<Key>KP_Insert: DoKey(0)\n\ ++ :<Key>1: DoKey(1)\n\ ++ :<Key>KP_1: DoKey(1)\n\ ++ :<Key>KP_End: DoKey(1)\n\ ++ :<Key>2: DoKey(2)\n\ ++ :<Key>KP_2: DoKey(2)\n\ ++ :<Key>KP_Down: DoKey(2)\n\ ++ :<Key>3: DoKey(3)\n\ ++ :<Key>KP_3: DoKey(3)\n\ ++ :<Key>KP_Next: DoKey(3)\n\ ++ :<Key>4: DoKey(4)\n\ ++ :<Key>KP_4: DoKey(4)\n\ ++ :<Key>KP_Left: DoKey(4)\n\ ++ :<Key>5: DoKey(5)\n\ ++ :<Key>KP_5: DoKey(5)\n\ ++ :<Key>KP_Begin: DoKey(5)\n\ ++ :<Key>6: DoKey(6)\n\ ++ :<Key>KP_6: DoKey(6)\n\ ++ :<Key>KP_Right: DoKey(6)\n\ ++ :<Key>7: DoKey(7)\n\ ++ :<Key>KP_7: DoKey(7)\n\ ++ :<Key>KP_Home: DoKey(7)\n\ ++ :<Key>8: DoKey(8)\n\ ++ :<Key>KP_8: DoKey(8)\n\ ++ :<Key>KP_Up: DoKey(8)\n\ ++ :<Key>9: DoKey(9)\n\ ++ :<Key>KP_9: DoKey(9)\n\ ++ :<Key>KP_Prior: DoKey(9)\n\ ++ :<Key>a: DoKey(a)\n\ ++ :<Key>b: DoKey(b)\n\ ++ :<Key>c: DoKey(c)\n\ ++ :<Key>d: DoKey(d)\n\ ++ :<Key>e: DoKey(e)\n\ ++ :<Key>f: DoKey(f)\n\ ++ Ctrl<Key>h: Delete()\n\ ++ <Key>Delete: Delete()\n\ ++ <Key>KP_Delete: Delete()\n\ ++ <Key>KP_Decimal: Delete()\n\ ++ :<Key>=: DoKey(=)\n\ ++ :<Key>KP_Enter: DoKey(=)\n\ ++ :<Key>Return: DoKey(=)" + ; + + diff --git a/sci-calculators/hexcalc/files/hexcalc-order.diff b/sci-calculators/hexcalc/files/hexcalc-order.diff new file mode 100644 index 000000000000..cdc4a93fedce --- /dev/null +++ b/sci-calculators/hexcalc/files/hexcalc-order.diff @@ -0,0 +1,51 @@ +--- a/hexcalc.c 1989-11-22 16:29:06.000000000 -0500 ++++ b/hexcalc.c 2006-07-18 17:36:40.000000000 -0400 +@@ -37,6 +37,7 @@ + #endif + + #include <stdio.h> ++#include <stdlib.h> + #include <ctype.h> + #include <X11/IntrinsicP.h> + #include <X11/StringDefs.h> +@@ -509,14 +508,16 @@ + + switch(topOp) { + case '+' : +- ac = PopArg() + PopArg(); ++ temp = PopArg(); ++ ac = PopArg() + temp; + break; + case '-' : + temp = PopArg(); + ac = PopArg() - temp; + break; + case '*' : +- ac = PopArg() * PopArg(); ++ temp = PopArg(); ++ ac = temp * PopArg(); + break; + case '/' : + temp = PopArg(); +@@ -528,15 +529,18 @@ + break; + + case '|' : +- ac = PopArg() | PopArg(); ++ temp = PopArg(); ++ ac = temp | PopArg(); + break; + + case '&' : +- ac = PopArg() & PopArg(); ++ temp = PopArg(); ++ ac = temp & PopArg(); + break; + + case '^' : +- ac = PopArg() ^ PopArg(); ++ temp = PopArg(); ++ ac = temp ^ PopArg(); + break; + + case '<' : diff --git a/sci-calculators/hexcalc/hexcalc-1.11-r4.ebuild b/sci-calculators/hexcalc/hexcalc-1.11-r4.ebuild new file mode 100644 index 000000000000..8e01d5a4d20b --- /dev/null +++ b/sci-calculators/hexcalc/hexcalc-1.11-r4.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit flag-o-matic toolchain-funcs + +DESCRIPTION="Simple hex calculator for X" +HOMEPAGE="https://wiki.gentoo.org/wiki/No_homepage" +SRC_URI="mirror://gentoo/${P}.tar.Z" +S="${WORKDIR}/${PN}" + +LICENSE="HPND" +SLOT="0" +KEYWORDS="amd64 ~ppc ~x86" + +RDEPEND=" + x11-libs/libX11 + x11-libs/libXaw + x11-libs/libXt" +DEPEND=" + ${RDEPEND} + x11-base/xorg-proto" +BDEPEND=" + app-text/rman + sys-devel/gcc + >=x11-misc/imake-1.0.8-r1" + +PATCHES=( + "${FILESDIR}"/${PN}-keypad.diff + "${FILESDIR}"/${PN}-order.diff +) + +src_configure() { + append-cflags -std=gnu89 # old codebase, incompatible with c2x + + CC="$(tc-getBUILD_CC)" LD="$(tc-getLD)" \ + IMAKECPP="${IMAKECPP:-${CHOST}-gcc -E}" xmkmf || die +} + +src_compile() { + emake \ + CC="$(tc-getCC)" \ + CFLAGS="${CFLAGS}" \ + CCLINK="$(tc-getCC)" \ + LDOPTIONS="${LDFLAGS}" +} + +src_install() { + dobin ${PN} + newman ${PN}.{man,1} +} diff --git a/sci-calculators/hexcalc/metadata.xml b/sci-calculators/hexcalc/metadata.xml new file mode 100644 index 000000000000..b201c2cfeade --- /dev/null +++ b/sci-calculators/hexcalc/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>sci@gentoo.org</email> + <name>Gentoo Science Project</name> + </maintainer> + <origin>baldeagleos-repo</origin> +</pkgmetadata> diff --git a/sci-calculators/keurocalc/Manifest b/sci-calculators/keurocalc/Manifest new file mode 100644 index 000000000000..4ffcf823d8e3 --- /dev/null +++ b/sci-calculators/keurocalc/Manifest @@ -0,0 +1 @@ +DIST keurocalc-1.3.0_p20241225-5efddc38.tar.gz 1501856 BLAKE2B fea869a8ebda0ca9e72abbbb64128a20bf04b2aa391a9b4a94fd176c8e746531de19cb7d3e31297bdbab1ca5703a6bf5c510bb9f11744371d852ace35a80131e SHA512 2659ac20a641c0fb02b12917a7338dcfb4cac9496facdb7ffaf1452f77f5212ea10feb0c917eb68ba8f299db31dbaa54f5215fb20e589a0b2b65ab69229073dc diff --git a/sci-calculators/keurocalc/keurocalc-1.3.0_p20241225.ebuild b/sci-calculators/keurocalc/keurocalc-1.3.0_p20241225.ebuild new file mode 100644 index 000000000000..382127667106 --- /dev/null +++ b/sci-calculators/keurocalc/keurocalc-1.3.0_p20241225.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +KDE_ORG_COMMIT=5efddc3842545faad8e36609da1a43bacfd87f7d +ECM_HANDBOOK="forceoptional" +KFMIN=6.3.0 +QTMIN=6.6.2 +inherit ecm kde.org + +DESCRIPTION="Universal currency converter and calculator" +HOMEPAGE="https://apps.kde.org/keurocalc/ https://userbase.kde.org/KEuroCalc" +SRC_URI="https://dev.gentoo.org/~asturm/distfiles/kde/${KDE_ORG_NAME}-${PV}-${KDE_ORG_COMMIT:0:8}.tar.gz" + +LICENSE="GPL-2+ FDL-1.2" +SLOT="0" +KEYWORDS="" +IUSE="" + +DEPEND=" + >=dev-qt/qtbase-${QTMIN}:6[dbus,gui,widgets,xml] + >=kde-frameworks/kconfig-${KFMIN}:6 + >=kde-frameworks/kconfigwidgets-${KFMIN}:6 + >=kde-frameworks/kcoreaddons-${KFMIN}:6 + >=kde-frameworks/ki18n-${KFMIN}:6 + >=kde-frameworks/kio-${KFMIN}:6 + >=kde-frameworks/kwidgetsaddons-${KFMIN}:6 + >=kde-frameworks/kxmlgui-${KFMIN}:6 +" +RDEPEND="${DEPEND} + !${CATEGORY}/${PN}:5 +" diff --git a/sci-calculators/keurocalc/metadata.xml b/sci-calculators/keurocalc/metadata.xml new file mode 100644 index 000000000000..f2915ab8ac4d --- /dev/null +++ b/sci-calculators/keurocalc/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>kde@gentoo.org</email> + <name>Gentoo KDE Project</name> + </maintainer> + <upstream> + <bugs-to>https://bugs.kde.org/</bugs-to> + </upstream> + <origin>baldeagleos-repo</origin> +</pkgmetadata> diff --git a/sci-calculators/metadata.xml b/sci-calculators/metadata.xml new file mode 100644 index 000000000000..bd9e347108ae --- /dev/null +++ b/sci-calculators/metadata.xml @@ -0,0 +1,28 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE catmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<catmetadata> + <longdescription lang="en"> + The sci-calculators category contains scientific calculator packages. + </longdescription> + <longdescription lang="de"> + Die Kategorie sci-calculators enthält wissenschaftliche Rechenprogramme. + </longdescription> + <longdescription lang="es"> + La categoría sci-calculators contiene calculadoras científicas. + </longdescription> + <longdescription lang="ja"> + sci-calculatorsカテゴリーには科学計算機のパッケージが含まれています。 + </longdescription> + <longdescription lang="nl"> + De sci-calculators categorie bevat wetenschappelijke calculators. + </longdescription> + <longdescription lang="vi"> + Nhóm sci-calculators chứa các phần mềm tính toán khoa học. + </longdescription> + <longdescription lang="it"> + La categoria sci-calculators contiene calcolatori scientifici. + </longdescription> + <longdescription lang="pl"> + Kategoria sci-calculators zawiera kalkulatory naukowe. + </longdescription> +</catmetadata> diff --git a/sci-calculators/orpie/Manifest b/sci-calculators/orpie/Manifest new file mode 100644 index 000000000000..cf44ad13b857 --- /dev/null +++ b/sci-calculators/orpie/Manifest @@ -0,0 +1 @@ +DIST release-1.6.1.tar.gz 277420 BLAKE2B 9b29155a62d183ea83e6bddcae62440063bb0befeff72be28be6e0e76444c830047d81c3b8eab090c8eacc81c777b347c06b01af4b5337538d046f90dadf4a23 SHA512 df998e96cef53ef595178dfb9b51a17d5b22a8ccd894a543fa3130e5ab2204ea367706a79b1f53307f97c22ec7ce866be2097a4588ffeb0479d804f56706f248 diff --git a/sci-calculators/orpie/files/orpie-1.6.1-ocaml5.patch b/sci-calculators/orpie/files/orpie-1.6.1-ocaml5.patch new file mode 100644 index 000000000000..a83e35973dd4 --- /dev/null +++ b/sci-calculators/orpie/files/orpie-1.6.1-ocaml5.patch @@ -0,0 +1,11 @@ +--- a/src/orpie/dune 2025-03-25 18:41:09.216073326 +0100 ++++ b/src/orpie/dune 2025-03-25 18:41:31.391799451 +0100 +@@ -5,7 +5,7 @@ + (action + (system "camlp5o %{input-file}"))) + (flags (:standard -w -27-35-52 -thread)) +- (libraries curses gsl num str threads)) ++ (libraries curses gsl num str threads camlp-streams)) + + + ; Use orpie.opam as the authoritative source of version number diff --git a/sci-calculators/orpie/files/orpie-1.6.1-orpierc.patch b/sci-calculators/orpie/files/orpie-1.6.1-orpierc.patch new file mode 100644 index 000000000000..6679d645e86d --- /dev/null +++ b/sci-calculators/orpie/files/orpie-1.6.1-orpierc.patch @@ -0,0 +1,11 @@ +--- a/etc/orpierc ++++ b/etc/orpierc +@@ -4,7 +4,7 @@ + # directory for storing Orpie data + set datadir="~/.orpie/" + # editor used for fullscreen viewing of stack elements +-set editor="vi" ++set editor="${EDITOR}" + # whether or not to hide the help panel + set hide_help="false" + # whether or not to conserve memory in favor of faster rendering diff --git a/sci-calculators/orpie/files/orpie-1.6.1-rcfile.patch b/sci-calculators/orpie/files/orpie-1.6.1-rcfile.patch new file mode 100644 index 000000000000..19e861fd078e --- /dev/null +++ b/sci-calculators/orpie/files/orpie-1.6.1-rcfile.patch @@ -0,0 +1,14 @@ +--- a/src/orpie/rcfile.ml 2022-03-21 11:25:42.405186025 +0100 ++++ b/src/orpie/rcfile.ml 2022-03-21 11:24:44.477121172 +0100 +@@ -916,10 +916,7 @@ + let rcfile_fullpath = + (* expand out any occurrences of ${prefix} that autoconf + * decides to insert *) +- let prefix_regex = Str.regexp "\\${prefix}" in +- let expanded_sysconfdir = Str.global_replace prefix_regex +- Install.prefix Install.sysconfdir in +- Utility.join_path expanded_sysconfdir "orpierc" ++ "/etc/orpie/orpierc" + in + begin try (open_in home_rcfile, home_rcfile) + with Sys_error error_str -> diff --git a/sci-calculators/orpie/metadata.xml b/sci-calculators/orpie/metadata.xml new file mode 100644 index 000000000000..5516d4cf78a1 --- /dev/null +++ b/sci-calculators/orpie/metadata.xml @@ -0,0 +1,18 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>sci@gentoo.org</email> + <name>Gentoo Science Project</name> + </maintainer> + <maintainer type="project"> + <email>ml@gentoo.org</email> + <name>ML</name> + </maintainer> + <longdescription lang="en"> + Orpie is a fullscreen RPN calculator for the console. Its operation is + similar to that of modern HP calculators, but data entry has been + optimized for efficiency on a PC keyboard. + </longdescription> + <origin>baldeagleos-repo</origin> +</pkgmetadata> diff --git a/sci-calculators/orpie/orpie-1.6.1.ebuild b/sci-calculators/orpie/orpie-1.6.1.ebuild new file mode 100644 index 000000000000..2e385da6b298 --- /dev/null +++ b/sci-calculators/orpie/orpie-1.6.1.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit dune + +DESCRIPTION="A fullscreen RPN calculator for the console" +HOMEPAGE="http://pessimization.com/software/orpie/" +SRC_URI="https://github.com/pelzlpj/${PN}/archive/release-${PV}.tar.gz" + +S="${WORKDIR}"/${PN}-release-${PV} + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="+ocamlopt" + +DEPEND="dev-ml/gsl-ocaml:= + dev-ml/curses:= + dev-ml/num:= + dev-ml/camlp5":= +RDEPEND="${DEPEND}" + +PATCHES=( + "${FILESDIR}"/${P}-orpierc.patch + "${FILESDIR}"/${P}-rcfile.patch + "${FILESDIR}"/${P}-ocaml5.patch +) + +src_compile() { + PREFIX=/usr dune_src_compile +} + +src_install() { + dune_src_install + mv "${D}"/{/usr,}/etc || die +} diff --git a/sci-calculators/pcalc/Manifest b/sci-calculators/pcalc/Manifest new file mode 100644 index 000000000000..3d856c63a39f --- /dev/null +++ b/sci-calculators/pcalc/Manifest @@ -0,0 +1,2 @@ +DIST pcalc-4.tar.xz 68948 BLAKE2B f7d17e3ebf76aeccd9b7c74fe6ecfa7de94d8450d302e3b094b57f4050e0be2448887ea131496ab00ee140d0a44b0dd8d5b5564feb8fdc47d2fbbe5010af73d9 SHA512 6492ca89c5f60549f9388d8b7edad21c1c912feea0ee1a1271d730a63832c3b562b1a6bc9f69a0bd3118407906646c8d8fbed6c6d9a62db6a6bbde22579c1fd0 +DIST pcalc-5.tar.xz 72148 BLAKE2B 8095e9f17ebb8a6271460e8aa8d35d8ae588f4e046e3ff60c0a8ee4fbcb05a8afa96095baf2656be47a45dda5966e89a71e25c651839837d366d307e9ac532ac SHA512 13a33ae5c3fb40632c89f7c0dc7b5a2fa497f090393022ab57ab15f866b1bf122558085cdd2b7ab42aae9018b7031fe0e85df4c9d31fc359b87ffd930e2f16e7 diff --git a/sci-calculators/pcalc/metadata.xml b/sci-calculators/pcalc/metadata.xml new file mode 100644 index 000000000000..b201c2cfeade --- /dev/null +++ b/sci-calculators/pcalc/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>sci@gentoo.org</email> + <name>Gentoo Science Project</name> + </maintainer> + <origin>baldeagleos-repo</origin> +</pkgmetadata> diff --git a/sci-calculators/pcalc/pcalc-4.ebuild b/sci-calculators/pcalc/pcalc-4.ebuild new file mode 100644 index 000000000000..fb0d698e59d7 --- /dev/null +++ b/sci-calculators/pcalc/pcalc-4.ebuild @@ -0,0 +1,25 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit toolchain-funcs + +DESCRIPTION="the programmers calculator" +HOMEPAGE="https://github.com/vapier/pcalc" +SRC_URI="https://downloads.sourceforge.net/pcalc/${P}.tar.xz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha amd64 arm arm64 ~hppa ~m68k ~mips ~ppc ppc64 ~s390 ~sparc ~x86" + +BDEPEND="app-alternatives/lex" + +src_prepare() { + default + sed -i -e "s:/usr:${EPREFIX}/usr:g" Makefile || die +} + +src_configure() { + tc-export CC +} diff --git a/sci-calculators/pcalc/pcalc-5.ebuild b/sci-calculators/pcalc/pcalc-5.ebuild new file mode 100644 index 000000000000..db26b2766c67 --- /dev/null +++ b/sci-calculators/pcalc/pcalc-5.ebuild @@ -0,0 +1,25 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" + +inherit toolchain-funcs + +DESCRIPTION="the programmers calculator" +HOMEPAGE="https://github.com/vapier/pcalc" +SRC_URI="https://downloads.sourceforge.net/pcalc/${P}.tar.xz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha amd64 ~arm arm64 ~hppa ~m68k ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86" + +BDEPEND="app-alternatives/lex" + +src_prepare() { + default + sed -i -e "s:/usr:${EPREFIX}/usr:g" Makefile || die +} + +src_configure() { + tc-export CC +} diff --git a/sci-calculators/qalculate-gtk/Manifest b/sci-calculators/qalculate-gtk/Manifest new file mode 100644 index 000000000000..d50de01f1fa8 --- /dev/null +++ b/sci-calculators/qalculate-gtk/Manifest @@ -0,0 +1,3 @@ +DIST qalculate-gtk-5.10.0.tar.gz 3784042 BLAKE2B fabcdb841990a549957e9617f4cab58402f6c27729cffa706a4f56168de5e05ab2dba409fae1791876a5e447f639357b014170853c43522351854662ab557eae SHA512 150bac0613c0053750b45f429c730c7a13e57900bcf417fab258b3532d76da0bbbe1f8d8738b7208dd1d1243af44d936847e786ccd452cec78778aefd29158b2 +DIST qalculate-gtk-5.8.2.tar.gz 3095670 BLAKE2B 644dd1347defbc619623bc0e39b259601a7fe91b40573b61757596022bcc234b085d3277337e0dab6a45b6e0d102b8435ea735e0e0f7ef72645489d06a7a3145 SHA512 00cb454e68b251d8efc770dfaa0026e0e893c8dbb6301c0efe857c1308f7d31dd3fc14689ccbe0ef9bb329d3220e33b85744e330e48d16fc2104b099e94a00c4 +DIST qalculate-gtk-5.9.0.tar.gz 3619981 BLAKE2B e30a14221d1374f77981b413858f8819143226f99cfdfa80962d6ad715aeb282d885b3af9c7c5f81c9e7fed1a2c1ca74c762c7c2a2919a3b7ef8040cbc18d42c SHA512 f3ed5aca18cd197e3d43f9af6013d22cc68a0fcf6f902d4d6540ab930b95899d3fad90c581bd62258e956e89d4f1e50b0d73c93ae7a82a88ceb082aa6662c678 diff --git a/sci-calculators/qalculate-gtk/metadata.xml b/sci-calculators/qalculate-gtk/metadata.xml new file mode 100644 index 000000000000..110fc6793c2b --- /dev/null +++ b/sci-calculators/qalculate-gtk/metadata.xml @@ -0,0 +1,18 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>sci@gentoo.org</email> + <name>Gentoo Science Project</name> + </maintainer> + <maintainer type="person" proxied="yes"> + <email>csfore@gentoo.org</email> + <name>Christopher Fore</name> + </maintainer> + <longdescription lang="en"> + Qalculate! is a multi-purpose desktop calculator for GNU/Linux. It is + small and simple to use but with much power and versatility + underneath. + </longdescription> + <origin>baldeagleos-repo</origin> +</pkgmetadata> diff --git a/sci-calculators/qalculate-gtk/qalculate-gtk-5.10.0.ebuild b/sci-calculators/qalculate-gtk/qalculate-gtk-5.10.0.ebuild new file mode 100644 index 000000000000..c9e53e0404e0 --- /dev/null +++ b/sci-calculators/qalculate-gtk/qalculate-gtk-5.10.0.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +# Note: bump with sci-libs/libqalculate and sci-calculators/qalculate-qt! + +inherit optfeature xdg + +DESCRIPTION="Modern multi-purpose calculator" +HOMEPAGE="https://qalculate.github.io/" +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" + +RDEPEND="dev-libs/glib:2 + >=sci-libs/libqalculate-${PV}:= + x11-libs/cairo + x11-libs/gdk-pixbuf + x11-libs/gtk+:3 + x11-libs/pango" +DEPEND="${RDEPEND}" +BDEPEND=">=dev-util/gdbus-codegen-2.80.5-r1 + dev-util/intltool + sys-devel/gettext + virtual/pkgconfig" + +src_prepare() { + # Required by src_test() and `make check` + cat >po/POTFILES.skip <<-EOF || die + # Required by make check + data/calendarconversion.ui + data/periodictable.ui + EOF + + default +} + +pkg_postinst() { + xdg_pkg_postinst + + optfeature "gnuplot support" sci-libs/libqalculate[gnuplot] +} diff --git a/sci-calculators/qalculate-gtk/qalculate-gtk-5.8.2.ebuild b/sci-calculators/qalculate-gtk/qalculate-gtk-5.8.2.ebuild new file mode 100644 index 000000000000..6f1eadfb6715 --- /dev/null +++ b/sci-calculators/qalculate-gtk/qalculate-gtk-5.8.2.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +# Note: bump with sci-libs/libqalculate and sci-calculators/qalculate-qt! + +inherit optfeature xdg + +DESCRIPTION="Modern multi-purpose calculator" +HOMEPAGE="https://qalculate.github.io/" +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" + +RDEPEND="dev-libs/glib:2 + >=sci-libs/libqalculate-${PV}:= + x11-libs/cairo + x11-libs/gdk-pixbuf + x11-libs/gtk+:3 + x11-libs/pango" +DEPEND="${RDEPEND}" +BDEPEND=">=dev-util/gdbus-codegen-2.80.5-r1 + dev-util/intltool + sys-devel/gettext + virtual/pkgconfig" + +src_prepare() { + # Required by src_test() and `make check` + cat >po/POTFILES.skip <<-EOF || die + # Required by make check + data/calendarconversion.ui + data/periodictable.ui + EOF + + default +} + +pkg_postinst() { + xdg_pkg_postinst + + optfeature "gnuplot support" sci-libs/libqalculate[gnuplot] +} diff --git a/sci-calculators/qalculate-gtk/qalculate-gtk-5.9.0.ebuild b/sci-calculators/qalculate-gtk/qalculate-gtk-5.9.0.ebuild new file mode 100644 index 000000000000..c9e53e0404e0 --- /dev/null +++ b/sci-calculators/qalculate-gtk/qalculate-gtk-5.9.0.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +# Note: bump with sci-libs/libqalculate and sci-calculators/qalculate-qt! + +inherit optfeature xdg + +DESCRIPTION="Modern multi-purpose calculator" +HOMEPAGE="https://qalculate.github.io/" +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" + +RDEPEND="dev-libs/glib:2 + >=sci-libs/libqalculate-${PV}:= + x11-libs/cairo + x11-libs/gdk-pixbuf + x11-libs/gtk+:3 + x11-libs/pango" +DEPEND="${RDEPEND}" +BDEPEND=">=dev-util/gdbus-codegen-2.80.5-r1 + dev-util/intltool + sys-devel/gettext + virtual/pkgconfig" + +src_prepare() { + # Required by src_test() and `make check` + cat >po/POTFILES.skip <<-EOF || die + # Required by make check + data/calendarconversion.ui + data/periodictable.ui + EOF + + default +} + +pkg_postinst() { + xdg_pkg_postinst + + optfeature "gnuplot support" sci-libs/libqalculate[gnuplot] +} diff --git a/sci-calculators/qalculate-qt/Manifest b/sci-calculators/qalculate-qt/Manifest new file mode 100644 index 000000000000..39d3500946d9 --- /dev/null +++ b/sci-calculators/qalculate-qt/Manifest @@ -0,0 +1,3 @@ +DIST qalculate-qt-5.10.0.tar.gz 2040825 BLAKE2B 729a76dada619938878ae0d773d116cb58101d9196a860b54dfa311410fa6b7b14e00cd7dca177d5f74e3489b2903b3548e54934b5b64540abdde0d50716def6 SHA512 83af45f2b84c349aad1f5cd48264fc8131e139e462baf77ab74818808add66437e1fcde6a55ac78589e20247787c273111c88897591f5e3a3a56204d12ba51f3 +DIST qalculate-qt-5.8.2.tar.gz 2027585 BLAKE2B d0adf9bb019fb49068b1ad693f4fb2ae32b0ae3b677e1e1d0efb4a4b3a6ab74e11d355bdc70a3fe9a59e601c3f422461d7c6a8c514c62520c8dd938f94b516df SHA512 b01a009829073fc1198443973a665e7fad3be9f4b7b070ca606b1355b88aeac467fe75eb729ced054d619d91881c6b26ba01e4c62ab2e30279f37b65e063dc68 +DIST qalculate-qt-5.9.0.tar.gz 2043503 BLAKE2B 668b7e9c6630e41f40328c414affc625930335062ced51287ff0ddefd119356ec2e9c30e00843f1395abb58f1536b55a72f7f4ef94539f7ff0437c68c78e013a SHA512 943746116215b893a6c552592af76b2be163b62153c55f9916df7e8468c15d52f1dc7982db722c9b57e08e6d4bb7b8362edb21415b7ea20fe28f93c3f381c341 diff --git a/sci-calculators/qalculate-qt/metadata.xml b/sci-calculators/qalculate-qt/metadata.xml new file mode 100644 index 000000000000..bee63c532f38 --- /dev/null +++ b/sci-calculators/qalculate-qt/metadata.xml @@ -0,0 +1,21 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person" proxied="yes"> + <email>audvare@gmail.com</email> + <name>Andrew Udvare</name> + </maintainer> + <maintainer type="person" proxied="yes"> + <email>csfore@gentoo.org</email> + <name>Christopher Fore</name> + </maintainer> + <maintainer type="project" proxied="proxy"> + <email>proxy-maint@gentoo.org</email> + <name>Proxy Maintainers</name> + </maintainer> + <maintainer type="project"> + <email>sci@gentoo.org</email> + <name>Gentoo Science Project</name> + </maintainer> + <origin>baldeagleos-repo</origin> +</pkgmetadata> diff --git a/sci-calculators/qalculate-qt/qalculate-qt-5.10.0.ebuild b/sci-calculators/qalculate-qt/qalculate-qt-5.10.0.ebuild new file mode 100644 index 000000000000..68071b42f5d8 --- /dev/null +++ b/sci-calculators/qalculate-qt/qalculate-qt-5.10.0.ebuild @@ -0,0 +1,37 @@ +# Copyright 2022-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +# Bump with sci-libs/libqalculate and sci-calculators/qalculate-gtk! + +inherit optfeature qmake-utils xdg + +DESCRIPTION="Qt-based UI for libqalculate" +HOMEPAGE="https://github.com/Qalculate/qalculate-qt" +SRC_URI="https://github.com/Qalculate/${PN}/releases/download/v${PV}/${P}.tar.gz" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~arm64" + +DEPEND=" + dev-qt/qtbase:6[gui,network,widgets] + >=sci-libs/libqalculate-${PV}:= +" +RDEPEND="${DEPEND}" +BDEPEND="dev-qt/qttools:6[linguist]" + +src_configure() { + eqmake6 PREFIX="${EPREFIX}/usr" +} + +src_install() { + emake INSTALL_ROOT="${ED}" install +} + +pkg_postinst() { + xdg_pkg_postinst + + optfeature "gnuplot support" sci-libs/libqalculate[gnuplot] +} diff --git a/sci-calculators/qalculate-qt/qalculate-qt-5.8.2.ebuild b/sci-calculators/qalculate-qt/qalculate-qt-5.8.2.ebuild new file mode 100644 index 000000000000..781f5b96726d --- /dev/null +++ b/sci-calculators/qalculate-qt/qalculate-qt-5.8.2.ebuild @@ -0,0 +1,37 @@ +# Copyright 2022-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +# Bump with sci-libs/libqalculate and sci-calculators/qalculate-gtk! + +inherit optfeature qmake-utils xdg + +DESCRIPTION="Qt-based UI for libqalculate" +HOMEPAGE="https://github.com/Qalculate/qalculate-qt" +SRC_URI="https://github.com/Qalculate/${PN}/releases/download/v${PV}/${P}.tar.gz" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="amd64 arm64" + +DEPEND=" + dev-qt/qtbase:6[gui,network,widgets] + >=sci-libs/libqalculate-${PV}:= +" +RDEPEND="${DEPEND}" +BDEPEND="dev-qt/qttools:6[linguist]" + +src_configure() { + eqmake6 PREFIX="${EPREFIX}/usr" +} + +src_install() { + emake INSTALL_ROOT="${ED}" install +} + +pkg_postinst() { + xdg_pkg_postinst + + optfeature "gnuplot support" sci-libs/libqalculate[gnuplot] +} diff --git a/sci-calculators/qalculate-qt/qalculate-qt-5.9.0.ebuild b/sci-calculators/qalculate-qt/qalculate-qt-5.9.0.ebuild new file mode 100644 index 000000000000..68071b42f5d8 --- /dev/null +++ b/sci-calculators/qalculate-qt/qalculate-qt-5.9.0.ebuild @@ -0,0 +1,37 @@ +# Copyright 2022-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +# Bump with sci-libs/libqalculate and sci-calculators/qalculate-gtk! + +inherit optfeature qmake-utils xdg + +DESCRIPTION="Qt-based UI for libqalculate" +HOMEPAGE="https://github.com/Qalculate/qalculate-qt" +SRC_URI="https://github.com/Qalculate/${PN}/releases/download/v${PV}/${P}.tar.gz" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~arm64" + +DEPEND=" + dev-qt/qtbase:6[gui,network,widgets] + >=sci-libs/libqalculate-${PV}:= +" +RDEPEND="${DEPEND}" +BDEPEND="dev-qt/qttools:6[linguist]" + +src_configure() { + eqmake6 PREFIX="${EPREFIX}/usr" +} + +src_install() { + emake INSTALL_ROOT="${ED}" install +} + +pkg_postinst() { + xdg_pkg_postinst + + optfeature "gnuplot support" sci-libs/libqalculate[gnuplot] +} diff --git a/sci-calculators/speedcrunch/Manifest b/sci-calculators/speedcrunch/Manifest new file mode 100644 index 000000000000..9cf7548606a5 --- /dev/null +++ b/sci-calculators/speedcrunch/Manifest @@ -0,0 +1 @@ +DIST speedcrunch-0.12.0_p20241202-3c1b4c18ccb2.tar.bz2 3206297 BLAKE2B 7364d154644a567696ec382a7245ab558272626e528ebcc16ba7dc29bbdeb3dfb5e78849100575615fd34d6982a14c44eb9f9fae37675a30a3ed127ddc5c67ff SHA512 e3691bfabbdc5d913353281db307a38d18a6d49cdee26f46b95de2e70daf638974b2654de4faedfe64c0b92977390784d235f2b888afbbbf30de062b1864efb3 diff --git a/sci-calculators/speedcrunch/files/speedcrunch-0.12.0_p20241202-qhash.patch b/sci-calculators/speedcrunch/files/speedcrunch-0.12.0_p20241202-qhash.patch new file mode 100644 index 000000000000..3eba5557417e --- /dev/null +++ b/sci-calculators/speedcrunch/files/speedcrunch-0.12.0_p20241202-qhash.patch @@ -0,0 +1,37 @@ +Source: https://bitbucket.org/heldercorreia/speedcrunch/pull-requests/140 + +From a52be1f46d86d2af8cf44633f06137d976556fe8 Mon Sep 17 00:00:00 2001 +From: Ronald Wright <logiconcepts819@gmail.com> +Date: Sat, 7 Jun 2025 18:33:09 -0500 +Subject: [PATCH] Fix additional Qt6 build errors + +--- + src/math/rational.h | 6 ++++++ + 1 file changed, 6 insertions(+) + +diff --git a/src/math/rational.h b/src/math/rational.h +index dfda4438..bbef00a3 100644 +--- a/src/math/rational.h ++++ b/src/math/rational.h +@@ -19,6 +19,8 @@ + #ifndef RATIONAL_H + #define RATIONAL_H + ++#include <QHash> ++ + class HNumber; + class QString; + +@@ -64,6 +66,10 @@ public: + QString toString() const; + HNumber toHNumber( )const; + double toDouble() const; ++ ++ friend size_t qHash(const Rational &r, size_t seed = 0) { ++ return qHashMulti(seed, r.m_num, r.m_denom, r.m_valid); ++ } + }; + + #endif // RATIONAL_H +-- +2.51.0 diff --git a/sci-calculators/speedcrunch/files/speedcrunch-0.12.0_p20241202-qsignalmapper.patch b/sci-calculators/speedcrunch/files/speedcrunch-0.12.0_p20241202-qsignalmapper.patch new file mode 100644 index 000000000000..aba91b85928d --- /dev/null +++ b/sci-calculators/speedcrunch/files/speedcrunch-0.12.0_p20241202-qsignalmapper.patch @@ -0,0 +1,30 @@ +Source: https://bitbucket.org/heldercorreia/speedcrunch/pull-requests/127 + +From 579fe071c6229f2d26571b4cbc88afc46ad20943 Mon Sep 17 00:00:00 2001 +From: Oktay Imanzade <imanov.computer@gmail.com> +Date: Mon, 18 Mar 2024 17:08:15 +0000 +Subject: [PATCH] Fix keypad for Qt6 + +--- + src/gui/keypad.cpp | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/src/gui/keypad.cpp b/src/gui/keypad.cpp +index d206c76c..b252c85d 100644 +--- a/src/gui/keypad.cpp ++++ b/src/gui/keypad.cpp +@@ -82,7 +82,11 @@ Keypad::Keypad(QWidget* parent) + setButtonTooltips(); + disableButtonFocus(); + setLayoutDirection(Qt::LeftToRight); ++#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0) ++ connect(&mapper, SIGNAL(mappedInt(int)), SLOT(emitButtonPressed(int))); ++#else + connect(&mapper, SIGNAL(mapped(int)), SLOT(emitButtonPressed(int))); ++#endif + } + + void Keypad::handleRadixCharacterChange() +-- +2.51.0 + diff --git a/sci-calculators/speedcrunch/metadata.xml b/sci-calculators/speedcrunch/metadata.xml new file mode 100644 index 000000000000..b201c2cfeade --- /dev/null +++ b/sci-calculators/speedcrunch/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>sci@gentoo.org</email> + <name>Gentoo Science Project</name> + </maintainer> + <origin>baldeagleos-repo</origin> +</pkgmetadata> diff --git a/sci-calculators/speedcrunch/speedcrunch-0.12.0_p20241202.ebuild b/sci-calculators/speedcrunch/speedcrunch-0.12.0_p20241202.ebuild new file mode 100644 index 000000000000..35fbab257ced --- /dev/null +++ b/sci-calculators/speedcrunch/speedcrunch-0.12.0_p20241202.ebuild @@ -0,0 +1,34 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +COMMIT=3c1b4c18ccb275eb2891f9d8ff36a9205c0f566b +inherit cmake desktop xdg + +DESCRIPTION="Fast and usable calculator for power users" +HOMEPAGE="https://heldercorreia.bitbucket.io/speedcrunch/" +SRC_URI="https://bitbucket.org/heldercorreia/speedcrunch/get/${COMMIT}.tar.bz2 -> ${P}-${COMMIT:0:12}.tar.bz2" +S="${WORKDIR}/heldercorreia-${PN}-${COMMIT:0:12}" +CMAKE_USE_DIR="${S}/src" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86" + +DEPEND=" + dev-qt/qtbase:6[gui,widgets] + dev-qt/qttools:6[assistant] +" +RDEPEND="${DEPEND}" + +PATCHES=( + "${FILESDIR}/${P}-qhash.patch" + "${FILESDIR}/${P}-qsignalmapper.patch" +) + +src_install() { + local HTML_DOCS=( "${S}"/doc/build_html_embedded/. ) + cmake_src_install + doicon -s scalable gfx/speedcrunch.svg +} diff --git a/sci-calculators/tiemu/Manifest b/sci-calculators/tiemu/Manifest new file mode 100644 index 000000000000..39f274644657 --- /dev/null +++ b/sci-calculators/tiemu/Manifest @@ -0,0 +1 @@ +DIST tiemu_3.03.orig.tar.gz 27343892 BLAKE2B 3fd5a14deb47ad0753f97f7707e1c3fa78477a6afa9a7afa99953fa77cb4d79d5ff8160dce87d24622e0fd2a95b3f35789ba1711e0eb94ce664ac329ce9fb16c SHA512 417f57b14ff603bc35ec1dcd7e6a884c28dc9decddcf775318cac1db383907a59d24dcef3c96324703a896672bd54caa51220126edd9e6c1642d87c4e75e127a diff --git a/sci-calculators/tiemu/files/tiemu-3.03-clang16-build-fix.patch b/sci-calculators/tiemu/files/tiemu-3.03-clang16-build-fix.patch new file mode 100644 index 000000000000..bb3803269320 --- /dev/null +++ b/sci-calculators/tiemu/files/tiemu-3.03-clang16-build-fix.patch @@ -0,0 +1,23 @@ +Bug: https://bugs.gentoo.org/886067 +--- a/src/core/uae/newcpu.c ++++ b/src/core/uae/newcpu.c +@@ -19,6 +19,8 @@ + #include "options.h" + #include "memory.h" + #include "newcpu.h" ++#include "romcalls.h" ++#include "handles.h" + + // tiemu begin + #include "tilibs.h" +--- a/src/gui/logger/log_link.c ++++ b/src/gui/logger/log_link.c +@@ -36,7 +36,7 @@ + #include "filesel.h"
+
+ static GtkTextBuffer *txtbuf;
+-static logger_enabled = 0;
++static int logger_enabled = 0;
+
+ static void udpate_widgets(GtkWidget *button, GtkWidget *spin)
+ {
diff --git a/sci-calculators/tiemu/files/tiemu-3.03-fix-ftbfs-with-customized-abort-function.patch b/sci-calculators/tiemu/files/tiemu-3.03-fix-ftbfs-with-customized-abort-function.patch new file mode 100644 index 000000000000..effcbc12aea7 --- /dev/null +++ b/sci-calculators/tiemu/files/tiemu-3.03-fix-ftbfs-with-customized-abort-function.patch @@ -0,0 +1,14 @@ +Description: Fix FTBFS error: '"abort" passed 1 arguments, but takes just 0' +Author: Andreas B. Mundt <andi@debian.org> with help from #debian-science (jokva). +Last-Update: 2018-05-19 + +--- a/src/core/uae/sysdeps.h ++++ b/src/core/uae/sysdeps.h +@@ -33,6 +33,7 @@ + #define _GNU_SOURCE + #endif + #include <limits.h> ++#include <stdlib.h> + + // Make sure that the character types take exactly 1 byte. + #if UCHAR_MAX != 0xFF diff --git a/sci-calculators/tiemu/files/tiemu-3.03-implicit-int.patch b/sci-calculators/tiemu/files/tiemu-3.03-implicit-int.patch new file mode 100644 index 000000000000..c3f91a61be1d --- /dev/null +++ b/sci-calculators/tiemu/files/tiemu-3.03-implicit-int.patch @@ -0,0 +1,16 @@ +https://bugs.gentoo.org/915615 + +Patch contributed by Matt Whitlock <gentoo@mattwhitlock.name> + +--- a/src/core/uae/gencpu.c ++++ b/src/core/uae/gencpu.c +@@ -304,7 +304,7 @@ + insn_n_cycles += 4; + } + +-static void fill_prefetch_next_1 (needcycles) ++static void fill_prefetch_next_1 (int needcycles) + { + if (needcycles && using_ce) { + printf ("\tint lostcycles;\n"); + diff --git a/sci-calculators/tiemu/files/tiemu-3.03-r2820.patch b/sci-calculators/tiemu/files/tiemu-3.03-r2820.patch new file mode 100644 index 000000000000..1d4ac6ef28af --- /dev/null +++ b/sci-calculators/tiemu/files/tiemu-3.03-r2820.patch @@ -0,0 +1,28 @@ +Removed obsolete virtual link cable. + +http://svn.tilp.info/cgi-bin/viewvc.cgi?view=rev&root=tiemu&revision=2820 +https://bugs.gentoo.org/show_bug.cgi?id=363383 + +--- a/src/gui/device.c ++++ b/src/gui/device.c +@@ -102,10 +102,6 @@ + gtk_option_menu_set_history(GTK_OPTION_MENU(data), 7);
+ break;
+
+- case CABLE_VTL:
+- gtk_option_menu_set_history(GTK_OPTION_MENU(data), 8);
+- break;
+-
+ case CABLE_ILP:
+ gtk_option_menu_set_history(GTK_OPTION_MENU(data), 9);
+ break;
+@@ -194,8 +190,7 @@ + case 5: tmp.cable_model = CABLE_USB; break;
+ case 6: tmp.cable_model = CABLE_VTI; break;
+ case 7: tmp.cable_model = CABLE_TIE; break;
+- case 8: tmp.cable_model = CABLE_VTL; break;
+- case 9: tmp.cable_model = CABLE_ILP; break;
++ case 8: tmp.cable_model = CABLE_ILP; break;
+ }
+ }
+
diff --git a/sci-calculators/tiemu/files/tiemu-3.03-remove_depreciated_gtk_calls.patch b/sci-calculators/tiemu/files/tiemu-3.03-remove_depreciated_gtk_calls.patch new file mode 100644 index 000000000000..aad56a70ca33 --- /dev/null +++ b/sci-calculators/tiemu/files/tiemu-3.03-remove_depreciated_gtk_calls.patch @@ -0,0 +1,232 @@ +--- a/src/gui/debugger/dbg_bkpts.c ++++ b/src/gui/debugger/dbg_bkpts.c +@@ -29,10 +29,15 @@ + # include <config.h> + #endif + ++#include <string.h> + #include <gtk/gtk.h> + #include <glade/glade.h> +-#include <string.h> + ++#if GTK_CHECK_VERSION(2,18,0) ++#undef GTK_WIDGET_VISIBLE ++#define GTK_WIDGET_VISIBLE(wid) (gtk_widget_get_visible(wid)) ++#endif ++ + #include "intl.h" + #include "paths.h" + #include "support.h" +--- a/src/gui/debugger/dbg_regs.c ++++ b/src/gui/debugger/dbg_regs.c +@@ -28,14 +28,19 @@ + # include <config.h> + #endif + +-#include <gtk/gtk.h> +-#include <glade/glade.h> + #include <stdio.h> + #include <stdint.h> + #include <string.h> + #include <ctype.h> ++#include <gtk/gtk.h> ++#include <glade/glade.h> + #include <gdk/gdkkeysyms.h> + ++#if GTK_CHECK_VERSION(2,18,0) ++#undef GTK_WIDGET_VISIBLE ++#define GTK_WIDGET_VISIBLE(wid) (gtk_widget_get_visible(wid)) ++#endif ++ + #include "intl.h" + #include "paths.h" + #include "support.h" +--- a/src/gui/debugger/dbg_pclog.c ++++ b/src/gui/debugger/dbg_pclog.c +@@ -31,6 +31,11 @@ + #include <gtk/gtk.h> + #include <glade/glade.h> + ++#if GTK_CHECK_VERSION(2,18,0) ++#undef GTK_WIDGET_VISIBLE ++#define GTK_WIDGET_VISIBLE(wid) (gtk_widget_get_visible(wid)) ++#endif ++ + #include "intl.h" + #include "paths.h" + #include "support.h" +--- a/src/gui/debugger/dbg_wnds.c ++++ b/src/gui/debugger/dbg_wnds.c +@@ -38,6 +38,11 @@ + #include <windows.h>
+ #endif
+
++#if GTK_CHECK_VERSION(2,18,0)
++#undef GTK_WIDGET_VISIBLE
++#define GTK_WIDGET_VISIBLE(wid) (gtk_widget_get_visible(wid))
++#endif
++
+ #include "intl.h"
+ #include "ti68k_int.h"
+ #include "struct.h"
+--- a/src/gui/debugger/dbg_mem.c ++++ b/src/gui/debugger/dbg_mem.c +@@ -33,6 +33,11 @@ + #include <glade/glade.h> + #include <gdk/gdkkeysyms.h> + ++#if GTK_CHECK_VERSION(2,18,0) ++#undef GTK_WIDGET_VISIBLE ++#define GTK_WIDGET_VISIBLE(wid) (gtk_widget_get_visible(wid)) ++#endif ++ + #include <stdio.h> + #include <stdint.h> + #include <string.h> +--- a/src/gui/debugger/dbg_iop.c ++++ b/src/gui/debugger/dbg_iop.c +@@ -28,13 +28,18 @@ + # include <config.h> + #endif + +-#include <gtk/gtk.h> +-#include <glade/glade.h> + #include <stdio.h> + #include <stdint.h> + #include <string.h> + #include <ctype.h> ++#include <gtk/gtk.h> ++#include <glade/glade.h> + ++#if GTK_CHECK_VERSION(2,18,0) ++#undef GTK_WIDGET_VISIBLE ++#define GTK_WIDGET_VISIBLE(wid) (gtk_widget_get_visible(wid)) ++#endif ++ + #include "intl.h" + #include "paths.h" + #include "support.h" +--- a/src/gui/debugger/dbg_stack.c ++++ b/src/gui/debugger/dbg_stack.c +@@ -28,11 +28,16 @@ + # include <config.h> + #endif + ++#include <stdlib.h> + #include <gtk/gtk.h> + #include <glade/glade.h> + #include <gdk/gdkkeysyms.h> +-#include <stdlib.h> + ++#if GTK_CHECK_VERSION(2,18,0) ++#undef GTK_WIDGET_VISIBLE ++#define GTK_WIDGET_VISIBLE(wid) (gtk_widget_get_visible(wid)) ++#endif ++ + #include "intl.h" + #include "paths.h" + #include "support.h" +--- a/src/gui/debugger/dbg_all.c ++++ b/src/gui/debugger/dbg_all.c +@@ -38,6 +38,13 @@ + #include <windows.h> + #endif + ++#if GTK_CHECK_VERSION(2,18,0) ++#undef GTK_WIDGET_SENSITIVE ++#define GTK_WIDGET_SENSITIVE(wid) (gtk_widget_get_sensitive(wid)) ++#undef GTK_WIDGET_VISIBLE ++#define GTK_WIDGET_VISIBLE(wid) (gtk_widget_get_visible(wid)) ++#endif ++ + #include "ti68k_int.h" + #include "struct.h" + #include "dbg_all.h" +--- a/src/gui/debugger/dbg_code.c ++++ b/src/gui/debugger/dbg_code.c +@@ -28,11 +28,16 @@ + # include <config.h> + #endif + ++#include <string.h> + #include <gtk/gtk.h> + #include <glade/glade.h> + #include <gdk/gdkkeysyms.h> +-#include <string.h> + ++#if GTK_CHECK_VERSION(2,18,0) ++#undef GTK_WIDGET_SENSITIVE ++#define GTK_WIDGET_SENSITIVE(wid) (gtk_widget_get_sensitive(wid)) ++#endif ++ + #include "intl.h" + #include "paths.h" + #include "support.h" +--- a/src/gui/debugger/dbg_heap.c ++++ b/src/gui/debugger/dbg_heap.c +@@ -31,6 +31,11 @@ + #include <gtk/gtk.h> + #include <glade/glade.h> + ++#if GTK_CHECK_VERSION(2,18,0) ++#undef GTK_WIDGET_VISIBLE ++#define GTK_WIDGET_VISIBLE(wid) (gtk_widget_get_visible(wid)) ++#endif ++ + #include "intl.h" + #include "paths.h" + #include "support.h" +--- a/src/gui/debugger/dbg_dock.c ++++ b/src/gui/debugger/dbg_dock.c +@@ -37,11 +37,16 @@ + # include <config.h>
+ #endif
+
++#include <string.h>
+ #include <gtk/gtk.h>
+ #include <glade/glade.h>
+ #include <gdk/gdkkeysyms.h>
+-#include <string.h>
+
++#if GTK_CHECK_VERSION(2,18,0)
++#undef GTK_WIDGET_VISIBLE
++#define GTK_WIDGET_VISIBLE(wid) (gtk_widget_get_visible(wid))
++#endif
++
+ #include "intl.h"
+ #include "paths.h"
+ #include "support.h"
+--- a/src/gui/calc/calc.c ++++ b/src/gui/calc/calc.c +@@ -39,6 +39,11 @@ + #include <glade/glade.h> + #include <gdk-pixbuf/gdk-pixbuf.h> + ++#if GTK_CHECK_VERSION(2,18,0) ++#undef GTK_WIDGET_STATE ++#define GTK_WIDGET_STATE(wid) (gtk_widget_get_state(wid)) ++#endif ++ + #include "intl.h" + #include "paths.h" + #include "skinops.h" +--- a/src/gui/calc/screen.c ++++ b/src/gui/calc/screen.c +@@ -29,11 +29,16 @@ + # include <config.h> + #endif /* */ + ++#include <string.h> + #include <gtk/gtk.h> + #include <glade/glade.h> + #include <gdk-pixbuf/gdk-pixbuf.h> +-#include <string.h> + ++#if GTK_CHECK_VERSION(2,18,0) ++#undef GTK_WIDGET_STATE ++#define GTK_WIDGET_STATE(wid) (gtk_widget_get_state(wid)) ++#endif ++ + #include "intl.h" + #include "paths.h" + #include "skinops.h" diff --git a/sci-calculators/tiemu/metadata.xml b/sci-calculators/tiemu/metadata.xml new file mode 100644 index 000000000000..81063b52013b --- /dev/null +++ b/sci-calculators/tiemu/metadata.xml @@ -0,0 +1,16 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>sci@gentoo.org</email> + <name>Gentoo Science Project</name> + </maintainer> + <longdescription lang="en"> + This project aims to develop a fast emulator for the + TI89(titanium), 92(+), and V200PLT calculators. This emulator + started on the Jonas Minnberg's (X)Tiger emulator which is + based on UAE (the Universal Amiga Emulator). It was deeply + reworked and improved thus it's very different now. + </longdescription> + <origin>baldeagleos-repo</origin> +</pkgmetadata> diff --git a/sci-calculators/tiemu/tiemu-3.03-r2.ebuild b/sci-calculators/tiemu/tiemu-3.03-r2.ebuild new file mode 100644 index 000000000000..7218f5588f61 --- /dev/null +++ b/sci-calculators/tiemu/tiemu-3.03-r2.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit desktop flag-o-matic + +DESCRIPTION="Texas Instruments hand-helds emulator" +HOMEPAGE="http://lpg.ticalc.org/prj_tiemu/" +SRC_URI="http://repo.calcforge.org/debian/source/${PN}_${PV}.orig.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="dbus nls sdl threads xinerama" + +RDEPEND=" + gnome-base/libglade:2.0 + sci-libs/libticables2 + sci-libs/libticalcs2 + sci-libs/libtifiles2 + sci-libs/libticonv + x11-libs/gtk+:2 + dbus? ( >=dev-libs/dbus-glib-0.60 ) + nls? ( virtual/libintl ) + sdl? ( media-libs/libsdl ) + xinerama? ( x11-libs/libXinerama )" +DEPEND="${RDEPEND} + xinerama? ( x11-base/xorg-proto )" +BDEPEND=" + virtual/pkgconfig + nls? ( sys-devel/gettext )" + +PATCHES=( + "${FILESDIR}"/${P}-remove_depreciated_gtk_calls.patch + "${FILESDIR}"/${P}-r2820.patch + "${FILESDIR}"/${P}-fix-ftbfs-with-customized-abort-function.patch + "${FILESDIR}"/${P}-clang16-build-fix.patch + "${FILESDIR}"/${P}-implicit-int.patch +) + +src_prepare() { + default + # Don't use GTK_DISABLE_DEPRECATED flags + sed 's:-DGTK_DISABLE_DEPRECATED::g' -i configure.ac configure || die +} + +src_configure() { + # -Werror=lto-type-mismatch + # https://bugs.gentoo.org/862381 + filter-lto + + econf \ + --disable-rpath \ + --disable-debugger \ + --disable-gdb \ + $(use_enable nls) \ + $(use_enable sdl sound) \ + $(use_enable threads) \ + $(use_enable threads threading) \ + $(use_with dbus) \ + --without-kde \ + $(use_with xinerama) +} + +src_install() { + default + + rm -f "${ED}"/usr/share/tiemu/{Manpage.txt,COPYING,RELEASE,AUTHORS,LICENSES} || die + make_desktop_entry tiemu "TiEmu Calculator" \ + "${EPREFIX}"/usr/share/tiemu/pixmaps/icon.xpm +} diff --git a/sci-calculators/tilp2/Manifest b/sci-calculators/tilp2/Manifest new file mode 100644 index 000000000000..8cfb491e1d63 --- /dev/null +++ b/sci-calculators/tilp2/Manifest @@ -0,0 +1 @@ +DIST tilp2-1.18.tar.bz2 536744 BLAKE2B 819e34954a917b2fb100a6b74cf3c95ba32dd0d2824f4fc27960b275ad48d9a32393671f134b87296723a9f0b67c8d40b835355a2648be8fe81a89a4bc82e17d SHA512 8e46337e1ac7de85d88d4cb677910a099cdb6d3f473cdf8ca751a45dd66410b11751cd4555116c9249aa53bd23105957b4b2af2247968ec840da68aeed105f5f diff --git a/sci-calculators/tilp2/files/tilp2-1.18-nonbash.patch b/sci-calculators/tilp2/files/tilp2-1.18-nonbash.patch new file mode 100644 index 000000000000..542248b9e763 --- /dev/null +++ b/sci-calculators/tilp2/files/tilp2-1.18-nonbash.patch @@ -0,0 +1,12 @@ +https://bugs.gentoo.org/723314 +--- a/configure.ac ++++ b/configure.ac +@@ -208,7 +208,7 @@ + AC_ARG_VAR([CC_FOR_BUILD], [C compiler for programs to be run on the build system]) + AC_ARG_VAR([CFLAGS_FOR_BUILD], [C compiler flags for CC_FOR_BUILD]) + AC_MSG_CHECKING([for the host compiler]) +-if test "x$build" == "x$host" ; then ++if test "x$build" = "x$host" ; then + # Not cross-compiling. + CC_FOR_BUILD=$CC + CFLAGS_FOR_BUILD=$CFLAGS diff --git a/sci-calculators/tilp2/metadata.xml b/sci-calculators/tilp2/metadata.xml new file mode 100644 index 000000000000..2db9af93fd22 --- /dev/null +++ b/sci-calculators/tilp2/metadata.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>sci@gentoo.org</email> + <name>Gentoo Science Project</name> + </maintainer> + <longdescription lang="en"> + TiLP is a linking program for Texas Instruments' graphing + calculators. It can handle any TI calculator (from TI73 to V200) with + any link cable. TiLP has all the functions of a linking program and + more. + </longdescription> + <origin>baldeagleos-repo</origin> +</pkgmetadata> diff --git a/sci-calculators/tilp2/tilp2-1.18-r1.ebuild b/sci-calculators/tilp2/tilp2-1.18-r1.ebuild new file mode 100644 index 000000000000..f56e01058e75 --- /dev/null +++ b/sci-calculators/tilp2/tilp2-1.18-r1.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools xdg + +DESCRIPTION="Communication program for Texas Instruments calculators" +HOMEPAGE="http://lpg.ticalc.org/prj_tilp" +SRC_URI="https://downloads.sourceforge.net/tilp/tilp2-linux/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="nls" + +RDEPEND=" + dev-libs/glib:2 + gnome-base/libglade:2.0 + >=sci-libs/libticalcs2-1.1.9 + >=sci-libs/libticables2-1.3.5 + >=sci-libs/libtifiles2-1.1.7 + >=sci-libs/libticonv-1.1.5 + x11-libs/gtk+:2 + nls? ( virtual/libintl )" +DEPEND="${RDEPEND}" +BDEPEND=" + virtual/pkgconfig + nls? ( sys-devel/gettext )" + +PATCHES=( "${FILESDIR}"/${PN}-1.18-nonbash.patch ) + +src_prepare() { + default + # The ac macro AC_PATH_KDE was provided by "acinclude.m4" in 1.17. + # This file is missing in the current version which will cause an autoconf error. + # But since we don't build with kde support, we may safely remove all its reverse dependencies. + sed -i -e '/AC_PATH_KDE/d' configure.ac || die + sed -i \ + -e 's/@[^@]*\(KDE\|QT\|KIO\)[^@]*@//g' \ + -e 's/@X_LDFLAGS@//g' \ + src/Makefile.am || die + eautoreconf +} + +src_configure() { + # kde seems to be kde3 only + econf \ + --without-kde \ + $(use_enable nls) +} diff --git a/sci-calculators/transcalc/Manifest b/sci-calculators/transcalc/Manifest new file mode 100644 index 000000000000..bcbf259af515 --- /dev/null +++ b/sci-calculators/transcalc/Manifest @@ -0,0 +1,2 @@ +DIST transcalc-0.14.1.tar.bz2 87044 BLAKE2B af679829bd4ad122c662d7c9aa1b75ddc92d02e6afde47dd7b670c7d381090f25dc4f9018b18e86951e59fa1beb01dde4d9eaaf257fd6cd5bd2a028e07de0bd3 SHA512 32221c21cfa395db1ca6f39d87f7ab41997001c859b3ef61e161ea310da5466981057d0740d25b37c8188c866aa1b0a9d4d052bcd2a5b226006c4baa7ec4aafb +DIST transcalc-0.14.tar.gz 186434 BLAKE2B 7c2a031f34ab4b64af5be6203fca350356b75502ebdd94cce0f8338c266ff09a2cd68de80960f477228ddc4ffdd1acff84d6124506f52fd282ae0b28c949706e SHA512 b8c2cfbe3ea9787a2c694732baaf0e7c734f9a58c825f3791f21527f54398fcc79e24570d4f5f5c942b138b164cc6dc39744e0a66bafd888122608b641dcfa05 diff --git a/sci-calculators/transcalc/files/transcalc-0.14-fd-perm.patch b/sci-calculators/transcalc/files/transcalc-0.14-fd-perm.patch new file mode 100644 index 000000000000..534f3a92d8ac --- /dev/null +++ b/sci-calculators/transcalc/files/transcalc-0.14-fd-perm.patch @@ -0,0 +1,13 @@ +Index: transcalc-0.14/src/transcalc.c +=================================================================== +--- transcalc-0.14.orig/src/transcalc.c 2009-05-19 22:00:01.000000000 -0400 ++++ transcalc-0.14/src/transcalc.c 2009-05-19 22:01:22.000000000 -0400 +@@ -146,7 +146,7 @@ + /* see if config file exists */ + if (stat (config_filename, config_file_stat) != 0) { + /* config file missing, so touch it */ +- config_file_fd = open (config_filename, O_CREAT); ++ config_file_fd = open (config_filename, O_CREAT, 0644); + if (config_file_fd == -1) + { + perror ("open[config_file]"); diff --git a/sci-calculators/transcalc/files/transcalc-0.14-fno-common.patch b/sci-calculators/transcalc/files/transcalc-0.14-fno-common.patch new file mode 100644 index 000000000000..1e9288c74b93 --- /dev/null +++ b/sci-calculators/transcalc/files/transcalc-0.14-fno-common.patch @@ -0,0 +1,70 @@ +--- a/src/transcalc.c ++++ b/src/transcalc.c +@@ -37,6 +37,15 @@ + extern gint trc_file_load (FILE *, short); + + char version[] = "transcalc " VERSION; ++GtkWidget *main_body_window; ++GtkWidget *transtype_combo; ++ ++short current_transtype; ++trans_win *twin; ++short statusint; ++trans_gui *tgui; ++gboolean statusexists; ++int main_window_width, main_window_height; + + + /* +--- a/src/transcalc.h ++++ b/src/transcalc.h +@@ -53,8 +53,8 @@ + #endif /* HAVE_STRCPY */ + + +-GtkWidget *main_body_window; +-GtkWidget *transtype_combo; ++extern GtkWidget *main_body_window; ++extern GtkWidget *transtype_combo; + /*GtkWidget *status;*/ + + #define MICROSTRIP 0 +@@ -163,12 +163,12 @@ + gfloat electrical_params_value[NUMELECPARS]; + } trans_value; + +-short current_transtype; +-trans_win *twin; +-short statusint; +-trans_gui *tgui; +-gboolean statusexists; +-int main_window_width, main_window_height; ++extern short current_transtype; ++extern trans_win *twin; ++extern short statusint; ++extern trans_gui *tgui; ++extern gboolean statusexists; ++extern int main_window_width, main_window_height; + + void error_mes(gchar * text); + +--- a/src/unitscombo.c ++++ b/src/unitscombo.c +@@ -33,6 +33,7 @@ + #include "transcalc.h" + #include "body.h" + ++short length_unit, freq_unit, res_unit, ang_unit; + + gchar *length_unit_name[] = { "mil", + "cm", +--- a/src/units.h ++++ b/src/units.h +@@ -77,6 +77,6 @@ + #define ohm_to_kohm(a) (a/1000.0) + */ + +-short length_unit, freq_unit, res_unit, ang_unit; ++extern short length_unit, freq_unit, res_unit, ang_unit; + + #endif diff --git a/sci-calculators/transcalc/files/transcalc-0.14-gcc14-build-fix.patch b/sci-calculators/transcalc/files/transcalc-0.14-gcc14-build-fix.patch new file mode 100644 index 000000000000..2da5c78df8ad --- /dev/null +++ b/sci-calculators/transcalc/files/transcalc-0.14-gcc14-build-fix.patch @@ -0,0 +1,15 @@ +Bug: https://bugs.gentoo.org/927899 +--- a/src/print_trans.c ++++ b/src/print_trans.c +@@ -61,8 +61,9 @@ get_trans_text () + gchar *retval = NULL; + trans_label *tlabel; + int i; +- const gchar *newch1=NULL, *newch2 = NULL; +- const gchar *tmpstr=NULL; ++ gchar *newch1=NULL; ++ const gchar *newch2 = NULL; ++ gchar *tmpstr=NULL; + GString *s = g_string_new (NULL); + + diff --git a/sci-calculators/transcalc/metadata.xml b/sci-calculators/transcalc/metadata.xml new file mode 100644 index 000000000000..03203ad6dd0f --- /dev/null +++ b/sci-calculators/transcalc/metadata.xml @@ -0,0 +1,25 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>sci@gentoo.org</email> + <name>Gentoo Science Project</name> + </maintainer> + <longdescription> + Transcalc is an analysis and synthesis tool for calculating the + electrical and physical properties of different kinds of RF and + microwave transmission lines. Transcalc was somewhat inspired by the + functionality of Agilent Technologies' commercial program linecalc. + Transcalc aspires to be more functional in the long run and + well-documented with appropriate references to formulas that are used. + Transcalc is built using the GIMP toolkit (GTK) for its GUI interface. + For each type of transmission line, using dialog boxes, you can enter + values for the various parameters, and either calculate its electrical + properties (analyze), or use the given electrical requirements to + sythesize physical parameters of the required transmission line. + Available transmission lines (this list will expand with subsequent + releases): microstrip, rectangular waveguide, coaxial line, coupled + microstrip. + </longdescription> + <origin>baldeagleos-repo</origin> +</pkgmetadata> diff --git a/sci-calculators/transcalc/transcalc-0.14-r3.ebuild b/sci-calculators/transcalc/transcalc-0.14-r3.ebuild new file mode 100644 index 000000000000..ef1faf80e923 --- /dev/null +++ b/sci-calculators/transcalc/transcalc-0.14-r3.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DESCRIPTION="Microwave and RF transmission line calculator" +HOMEPAGE="http://transcalc.sourceforge.net" +SRC_URI="http://transcalc.sourceforge.net/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND="x11-libs/gtk+:2" +DEPEND="${RDEPEND}" + +# patch from debian +PATCHES=( + "${FILESDIR}"/${P}-fd-perm.patch + "${FILESDIR}"/${P}-fno-common.patch + "${FILESDIR}"/${P}-gcc14-build-fix.patch +) + +src_prepare() { + default + + # respect flags + sed -i -e 's|^CFLAGS=|#CFLAGS=|g' configure || die + # syntax errors + sed -i \ + -e 's/ythesize/ynthesize/g' \ + src/{setup_menu.c,help.h} docs/transcalc.sgml README || die +} diff --git a/sci-calculators/transcalc/transcalc-0.14.1.ebuild b/sci-calculators/transcalc/transcalc-0.14.1.ebuild new file mode 100644 index 000000000000..2b250d46ef83 --- /dev/null +++ b/sci-calculators/transcalc/transcalc-0.14.1.ebuild @@ -0,0 +1,17 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit meson + +DESCRIPTION="Microwave and RF transmission line calculator" +HOMEPAGE="https://transcalc.sourceforge.net" +SRC_URI="https://gitlab.com/oss-abandonware/sci-calculators/transcalc/-/archive/${PV}/transcalc-${PV}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND="x11-libs/gtk+:2" +DEPEND="${RDEPEND}" diff --git a/sci-calculators/units/Manifest b/sci-calculators/units/Manifest new file mode 100644 index 000000000000..a7f436cc60a0 --- /dev/null +++ b/sci-calculators/units/Manifest @@ -0,0 +1,2 @@ +DIST units-2.25.tar.gz 1735230 BLAKE2B 97862ed7345e48b3b25a58c0e764242e5c9453be54d50f16e75d0f98ee73854bde261ea3749764a55fd3ca7cbfe9aac20a05532120f599b1f68c4564a8c0ecfe SHA512 0483e149936d56378b384bf399e5083ea9824c8bbf177426509a7ca90127774ebb509d9ec497acfdbebb785d85ddee15215276d53bc955ff7a196401e12c7578 +DIST units-2.27.tar.gz 1738250 BLAKE2B 1d98f54ee348654b8eaf8881f78c4792a29eeb9c0abdaef485206510df7497753007f41979e085275f05ac08560a4807a9e276efd0b9e5e073f8e68ca6e1feee SHA512 432633abb10c68910d658e7ce50b23c26100566c2e9fc377e963f0d86d60b5366e12519c33b947805d447b7cbbb891578a8e1f7f2120aa8f95c3e9fbab60e881 diff --git a/sci-calculators/units/files/units-2.20-readerror.patch b/sci-calculators/units/files/units-2.20-readerror.patch new file mode 100644 index 000000000000..ccb12c681539 --- /dev/null +++ b/sci-calculators/units/files/units-2.20-readerror.patch @@ -0,0 +1,11 @@ +--- a/units.c ++++ b/units.c +@@ -761,7 +761,7 @@ + } + + +-#define readerror (goterr=1) && errfile && fprintf ++#define readerror(...) do { goterr=1; if (errfile) fprintf(__VA_ARGS__); } while (0) + + #define VAGUE_ERR "%s: error in units file '%s' line %d\n", \ + progname, file, linenum diff --git a/sci-calculators/units/metadata.xml b/sci-calculators/units/metadata.xml new file mode 100644 index 000000000000..409c33f94570 --- /dev/null +++ b/sci-calculators/units/metadata.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <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> + <bugs-to>mailto:adrianm@gnu.org</bugs-to> + </upstream> + <origin>baldeagleos-repo</origin> +</pkgmetadata> diff --git a/sci-calculators/units/units-2.25.ebuild b/sci-calculators/units/units-2.25.ebuild new file mode 100644 index 000000000000..2ba223dc7d69 --- /dev/null +++ b/sci-calculators/units/units-2.25.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{13..14} ) +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" +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 's|^#!|&/usr/bin/python|g' \ + units_cur_inst > units_cur || die + python_foreach_impl python_doscript units_cur + fi +} diff --git a/sci-calculators/units/units-2.27.ebuild b/sci-calculators/units/units-2.27.ebuild new file mode 100644 index 000000000000..2ba223dc7d69 --- /dev/null +++ b/sci-calculators/units/units-2.27.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{13..14} ) +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" +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 's|^#!|&/usr/bin/python|g' \ + units_cur_inst > units_cur || die + python_foreach_impl python_doscript units_cur + fi +} diff --git a/sci-calculators/wcalc/Manifest b/sci-calculators/wcalc/Manifest new file mode 100644 index 000000000000..66ff81c6595f --- /dev/null +++ b/sci-calculators/wcalc/Manifest @@ -0,0 +1 @@ +DIST wcalc-2.5.tar.bz2 413637 BLAKE2B 6093d73249548c90ba544b7445846bf6021cfc567fd6a7a269412b48ce8e4208ec19193dce878a5799f78f84e64fad59622cccae303d433ed58aa7d0ee0ffce1 SHA512 3eedcf8c93bd33ca0a4bb35867e3157adbde2999d9fc1826ad55281fd927546614f6b1a28900b4cae87a0d15888cd62a04fa2adca316d7cf309af7a2fefea704 diff --git a/sci-calculators/wcalc/files/0001-fix-bashism-in-configure-script.patch b/sci-calculators/wcalc/files/0001-fix-bashism-in-configure-script.patch new file mode 100644 index 000000000000..97cd3772309b --- /dev/null +++ b/sci-calculators/wcalc/files/0001-fix-bashism-in-configure-script.patch @@ -0,0 +1,28 @@ +From b533584038a4ab8709fb8c88d7c4441f22b5de78 Mon Sep 17 00:00:00 2001 +From: Eli Schwartz <eschwartz93@gmail.com> +Date: Wed, 13 Mar 2024 18:15:00 -0400 +Subject: [PATCH] fix bashism in configure script + +double equals is horrid and banned. Do not ever use it, but definitely +don't use it in POSIX sh, where it doesn't exist *even* as an alias for +single equals. +--- + configure.ac | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/configure.ac b/configure.ac +index 1db142d..af541af 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -48,7 +48,7 @@ AC_PROG_RANLIB + AC_PROG_YACC + AM_PROG_AR + AM_PROG_LEX +-AS_IF([test "x$LEX" == x], ++AS_IF([test "x$LEX" = x], + [AC_MSG_ERROR([A Lex/Flex program is required in order to compile wcalc.])], + [AS_IF([test "x$LEX" != xflex], + [LEX="$SHELL $missing_dir/missing flex" +-- +2.43.2 + diff --git a/sci-calculators/wcalc/files/wcalc-2.5-AR.patch b/sci-calculators/wcalc/files/wcalc-2.5-AR.patch new file mode 100644 index 000000000000..03291019d29e --- /dev/null +++ b/sci-calculators/wcalc/files/wcalc-2.5-AR.patch @@ -0,0 +1,10 @@ +--- a/configure.ac ++++ b/configure.ac +@@ -46,6 +46,7 @@ AC_PROG_CC + AC_PROG_CC_C99 + AC_PROG_RANLIB + AC_PROG_YACC ++AM_PROG_AR + AM_PROG_LEX + AS_IF([test "x$LEX" == x], + [AC_MSG_ERROR([A Lex/Flex program is required in order to compile wcalc.])], diff --git a/sci-calculators/wcalc/metadata.xml b/sci-calculators/wcalc/metadata.xml new file mode 100644 index 000000000000..e7154b1a0d4c --- /dev/null +++ b/sci-calculators/wcalc/metadata.xml @@ -0,0 +1,18 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>sci@gentoo.org</email> + <name>Gentoo Science Project</name> + </maintainer> + <longdescription lang="en"> + Wcalc is a very capable calculator. It has standard functions (sin, + asin, and sinh for example, in either radians or degrees), many + pre-defined constants (pi, e, c, etc.), support for using variables, + "active" variables, a command history, hex/octal/binary input and + output, unit conversions, embedded comments, and an expandable + expression entry field. It evaluates expressions using the standard + order of operations. + </longdescription> + <origin>baldeagleos-repo</origin> +</pkgmetadata> diff --git a/sci-calculators/wcalc/wcalc-2.5.ebuild b/sci-calculators/wcalc/wcalc-2.5.ebuild new file mode 100644 index 000000000000..68c455a3859c --- /dev/null +++ b/sci-calculators/wcalc/wcalc-2.5.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit autotools desktop flag-o-matic + +DESCRIPTION="A flexible command-line scientific calculator" +HOMEPAGE="http://w-calc.sourceforge.net/" +SRC_URI="https://downloads.sourceforge.net/w-calc/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ~arm ~arm64 ~ppc ppc64 ~x86" +IUSE="readline" + +RDEPEND=" + dev-libs/gmp:0= + dev-libs/mpfr:0= + readline? ( sys-libs/readline:0= )" +DEPEND="${RDEPEND}" + +PATCHES=( + "${FILESDIR}"/${P}-AR.patch + "${FILESDIR}"/0001-fix-bashism-in-configure-script.patch +) + +src_prepare() { + default + eautoreconf +} + +src_configure() { + # -Werror=lto-type-mismatch + # https://bugs.gentoo.org/862384 + # + # Upstream is sourceforge. Last release in 2015, last activity 2021. Not + # submitting a bug report for now. -- Eli + filter-lto + + econf $(use_with readline) +} + +src_install() { + default + + # Wcalc icons + newicon graphics/w.png wcalc.png + newicon graphics/Wred.png wcalc-red.png +} diff --git a/sci-calculators/xsv/Manifest b/sci-calculators/xsv/Manifest new file mode 100644 index 000000000000..0a7016096d3b --- /dev/null +++ b/sci-calculators/xsv/Manifest @@ -0,0 +1,47 @@ +DIST aho-corasick-0.7.18.crate 112923 BLAKE2B 4f6947d1aacf89ccfab0592cdc55fa61ef09cea38231d3f758765dbce328a810c0b588be4ba96e81d64955379ee005722d22a7aec39caea6e72342245d7ca34f SHA512 7a23b16231a90d23ee60ad4c81bc225410599a4560d33d3a203138fc540c39cf1000100fed3aed40dcc371c3635656a3792545dca5dd1aefbde00d8774eebd00 +DIST autocfg-1.0.1.crate 12908 BLAKE2B 40c53cab298e4f26634c3acff3ece6a3371188d91dbf377ed664eabedcde20536edaa93daf406618f37edde019f049a6e7b9a47f627344587dbd126bee2b5e3a SHA512 630b348acb98b012e97804e6325d03c89abc22f2157762c59144c04e6c733daf550bdc7f0fe0b9f3b50e15dae8c1c3c4bdfce3d805b02f0fc987311f5332419b +DIST bstr-0.2.16.crate 330346 BLAKE2B 75a345f3a5d428ec7278cd10fa676f5bb72685c65c4fe68163943cf3142b43ac45d458bce9323447b201ffcc91aa82cd8c762cb1954c055e34b1a5cebc686ee8 SHA512 33e82e5637efdc2f404ab9405331ae135df12586785491c3e61e70ea8406c67e2109e550cc70a4ab8e95d054e8519c48257fd3b55ef0b67b2530914a9a0b0fac +DIST byteorder-1.4.3.crate 22512 BLAKE2B d39c546ba7346df315297fc53da4bfc77ecb1f38567ddb788549ee31cae2719a8bc0b7d1f1705abb3cff033aa57af004987d90748f5a31765273b3223a011c0d SHA512 8c8000eb8ecf40351c9ce36a3a8acd7a02f81786d1b11aab85adfeffa0f2267ed74df29b2ca5d1d38128484d1d3cad2b673aa0d0441dcd0620dfd3934bb888fa +DIST cfg-if-0.1.10.crate 7933 BLAKE2B 063a96ed176f34f788666b40adc483d147fc011dee941ab60569ddd0e57502b5dd06ed71090f4e14ce005d06e240500a286f74652615e9d068fba649610d8cf8 SHA512 9d22616bfb4a75770a828a0a3cddac6787297a5fdc53eb17e25811cc94de717f2de8bd66d53c5d65ba1c83d8892aefee5ae758cf56a1ef0a0c3120f70b244339 +DIST cfg-if-1.0.0.crate 7934 BLAKE2B e99a5589c11d79d77a4537b34ce0a45d37b981c123b79b807cea836c89fc3926d693458893baca2882448d3d44e3f64e06141f6d916b748daa10b8cc1ae16d1b SHA512 0fb16a8882fd30e86b62c5143b1cb18ab564e84e75bd1f28fd12f24ffdc4a42e0d2e012a99abb606c12efe3c11061ff5bf8e24ab053e550ae083f7d90f6576ff +DIST chan-0.1.23.crate 26856 BLAKE2B b326b25b28ff8080e85c6c17dac1b4b1bf38024fa97f8aa7efe1a2a94ebfe7f09ef9f3c984ec3f08ab916cfd4a6fcf4ca6d79693579437e7d32d207439dfb8df SHA512 87c669ad5e5216c03bec9c32136af45e8dc5e1d43fa6fc06374d2ea7dea9b13f87458ca41c4bf2f615686a128664f3360b911c8f74c9091b70431b4d3adc31bc +DIST csv-1.1.6.crate 886999 BLAKE2B b178d0419af671df570f37a4d054391bc883085b0cd3949de5e967aa4ca323fdadfd8c5d91eef1e8882ec112a1111cf255756eace3c7421e455ea2b6e01cb600 SHA512 81dd826f0ee85e7d335d844e9f9b4d2b66f7076c517d8050ee2e35721bfa4ecb8a906dcd9671b1c5381a968dcce0949202f1afe8eea535b6d215363d4f5be6fc +DIST csv-core-0.1.10.crate 25668 BLAKE2B 8e9a56c26e75f4c4c9e90a21cc30c60cc3fff17515ac93bc858e8ec45e130df2ecabafa7c513b2d2815269fbbd98c418269dfb1bf1425d2fd32fe46823cee6c8 SHA512 2a269d050fbe5d9e0f5dcda2de1e84bfeb69538dde86040ad1ec7307a214eed813a1482acb5029a51f18126d384d5238355e021964e47811db971a0821bcc328 +DIST csv-index-0.1.6.crate 6056 BLAKE2B f9e6eb91ea1909c8c9a06a972fd7ce491d9f83b2e635d48d395f94afed46eccfd8eb9068cfaa99a73662a62303440eb7cd545e4ee43f54ea54657aa2fd2e5db3 SHA512 51915807bcd03f2fb474c4f8227ae22ec2b5c6453c40151bcc3e24cf96b81938ee4f1a74aa5e15f6ef8b38a14dad9baaea45d48cfd1ef68cf9f8d248693ef6ec +DIST docopt-1.1.1.crate 39845 BLAKE2B 82fada189c5843668525c3f5b8e4206357be3518a296043680dfd064c3e639a09b66bc6db3b4956193cd777224513d521df355b6731bfa61bb0a5963fddb443d SHA512 a845e5018ab99cd97cdaf903a77fe0f6b891a451ff87f242f7b0e129bb72800037513b5f78ed644d7a8e624d38cee22cadfd0f81263e5983c289aa8e9fdb1bc8 +DIST filetime-0.1.15.crate 11211 BLAKE2B ee1661d356f7b6d7cf20cc0dbc822e04ea7e558118b41c29f060f02df4987ed7bdf69be5dcf66106c1573ed586b03dc0b0196be7716227d97c7fc857f81fbac5 SHA512 81d6e80f3da3ce12295ce8d85bf174eac3ee3dcc7d57e5a65f2ae91ab4f3dcf294582788af24db9ce2f18cb0e43080fb1baac76929dacec32d5ba4d09928b962 +DIST fuchsia-cprng-0.1.1.crate 2950 BLAKE2B 8519407ab5d1f04d03cc946a07050db4dd7bc70e03894e35b9e66910a3be11224084a86ba45103fdec845e94b7ba4defbd7c5217b035a0796c0c4a94b9562cd7 SHA512 ea9f5beb0dfcb023c22cfc2b37ce52dfcf3a2cbbed0f79ffffc332878858386805c65dce8469a431002367562d857a6c064e075688540c27fcb4056a110059d2 +DIST hermit-abi-0.1.18.crate 9936 BLAKE2B a5a1d1c9bdf83fdca8edc392f8fa7d9b9b248ac8d716e009300220befa5d8d80601643e768037be89bbbe6e21adbe6349c94c595cee3837c4b92b5f98ba838ad SHA512 54f060c6c1c80d41f40cec7102345147efb535aff9fa5cc0ed4ccd7f010bfdb6daaf40626fd5069af60ceb42058452803b59d4bbcfbed4c5546c79b57ae0f914 +DIST itoa-0.4.7.crate 12099 BLAKE2B 0e4ffbaad504565056f74c3ef560a87eff321a0da6d7a2c8fa35813c207713c22d77080c3b830fefbb21370dd29cfbc6a2807044485b38ac1e0c9c1de3ccebc5 SHA512 c61eb50aa00591af28698b45c528c36bd92088f7cd2f453cf686a1824f4656292638bebc468cf67f903473a5045f22777af623cc0515ef3bf25146b89a7c454f +DIST lazy_static-1.4.0.crate 10443 BLAKE2B 25b2e61bbac48f0dcbc79c81d7bf01f2403d8269ecb6be3ea6147bd00f7a588df15a91f44dfc18ada19b21faa71de4637c7d493a8628cbecd0e547d74e616a23 SHA512 e124c0521ec7c950f3c4a066821918da7a9c6e711115d98009ae7c351928fdddead852e7596fea5937a9c30e4e4ce8eee7099b20248b5d6e3b2494b6a6d88cb8 +DIST libc-0.2.97.crate 517712 BLAKE2B ad769579a8e89e9e0ea6a08b8fd82b69a3a299721d63b63efcb436b333021c097933565e86f4b66ffcce6a589718bed2aacb36b80a936dd3dda763b9c0c240d7 SHA512 9b94a43d7da1e419900f7a016d5eb958bc42a006e1bb621ab8e2be2167e91f05cee81144c25e81a85c1b1ea2a26ff88980a4cc292fd42db8b09c5c49bf5531ed +DIST log-0.4.14.crate 34582 BLAKE2B ddfba35947ae1f5905cd9ecb9eb862a78af6f00ee8b8fe6258b369b140928fe677a02b1b3ca5bdec36ff2b16abd85a9f49688fd5f3d1ba2b2905e7f96b8a84c1 SHA512 796100167663d85a7bc4244cd305e9b3f0a1b1520764b63464698eb136318d0928c40c16f5d19d9f602a5bf769851275bbd48d66b088b0c37be7a6fb62def7cc +DIST memchr-2.4.0.crate 63392 BLAKE2B a3f30546c3b58ff4eba534bd7046446e96ad793718edfd3379bd125c47eb270728c4aed4aed1c6afa27032f74078b2b2ddddd5cc6044e117e2b956bb13f902a6 SHA512 b142e308a5aef8e45910411789031e194349ee540c4ced0e2384d864dc1913299fb63a161ceb5228256e97d0949661b7f83a169ef9d4b78afbd9004cb7b8a2fb +DIST num-traits-0.2.14.crate 45476 BLAKE2B ae310d9d5640acc3e45e1e5d1d2f519539795922c0058ee940c94c94b6654b39358b7c18dd23a276f2c1b16a30dd4de4cbc8575bcda6a5c11e70665d670e6439 SHA512 c3028eca9f7b718de0db3a36cf3e462bdba43562d52c9b809ed4cc0aa6af403aea542d6d4da743cd1dd541397815a3c5a84cef4d6e40122994e4be6a62319b2e +DIST num_cpus-1.13.0.crate 14704 BLAKE2B e7a26e597ad5e45309393a9500b031ba64a77831320cbb96d7861139a2f7a453b7ba06a3255439b43ac1e2e36269b0a350d514020d3cd82c2513b57934b3ebbc SHA512 e75ec298fa682be84bf4efb6cf40126da9233ef25f07e887c2fa7421ee78790204564e6406c8219466651f47421e27f69eca690bb9cdfc982b644d78cc10de3f +DIST proc-macro2-1.0.27.crate 38625 BLAKE2B a55e2404e3c7444c6da8aca6c0e7702b865ec56cfd2c20fec319e737fc83b00bbf505c15dadaa8740d5a6d07c089ed4854a173049b1be9872bba132ae7cbc8db SHA512 3227bcaa726e88bfdb1b4d1243a4eb216ad2394a7a3b4b258de342ac76a1ab1a39a07f28f3490e42e2c2034176bf0d84b1c1fcadba2444c0abcc5878b02f93a4 +DIST quickcheck-0.6.2.crate 24634 BLAKE2B f7765bb6e624227594ec1bc5714e1fb1912a7b3e61ca8df070731ad90bf8e845d779e02a639e1e356fae8856460436a26df02da80ff0eaaff712e28ca041de7e SHA512 18483a244f83d64f298bcf6f71c137043dd1c28e22da6baf13760b2a39d77f84d2b7b651facb378b8559eb3d3a4cb53c16671128358e4a86e90e55e66d7ee41f +DIST quote-1.0.9.crate 25042 BLAKE2B 26ef31e89fd2f0cc21ff65f8072f30c7977ac634d2536cf9845a0894d6659f62a96cd0a6ee48f7706036c2c1b898ef8c9167bd62714ad0c9cba4fb02f30922af SHA512 dd6cdaea183b85400531ef01e56657edbec0d8f7c27898c1e591b72dff755fa5875b33ca320bd65be0e9aecfc6a61ec119a4bd1291e9f2057fca642ab5b198c8 +DIST rand-0.3.23.crate 11318 BLAKE2B 5ad9b187fcdfc515c606a73bd1e9aa3215e367659c35a013c9d4d0f80f9832331dfb971ca370a627c0a2afe2b8860514740e00b1d7572e221a557b5570cff6ff SHA512 a4f46fb7dfe39677dfc112eeb56fb3c28cec4cdaaf95f336f2a494f0b2b30fdf22ceb9ea956f90e13c7ffe711a68aef9fc1a80d9a911d93221ae263c243fb2c3 +DIST rand-0.4.6.crate 76401 BLAKE2B 5593ad2d7fb8214d917e2eb734f5eee548f48fd699c9fccc0de9c0c6ee49803a426492a25fda2ffcf844169e2bca00709d4dcd9ceede72a4667ec431f5502fda SHA512 a91c6da7188b426bf9cb832892ee2af87c4cd65fad505c34e9c63343da71efe8c0c67b75c405dca5345317b7940d1d0fc0b20be85afd6b3089203e5698d86f0a +DIST rand_core-0.3.1.crate 15483 BLAKE2B 2e09b3b3306514c29bd7588498e79be7353de656d8cdeeb4dfc6a1ad092f15a861c2ac20591ff71f7f60d986de9a09c860de4a9f06799f04e736b31bc70a5fbe SHA512 5a7ae601124502bede760fd3179c2b28059ebc3b5983bfcb6b8fa62fb58df95cedc1aeb2734e792d894dfa4620801c13c29702f9cbee64243121575d4b6b9114 +DIST rand_core-0.4.2.crate 20243 BLAKE2B 22fee5e44127eee047ad8abcd9dd828befd0feee77ee9a0bcd4dd42174b1e650f2a19f1f3b39fde937e58c17afaabf7231e2aabf214c2eb22edf3f85b73f6eec SHA512 f7ae3b690e2cc1fbf2707ee04b752bc5472433f737ab581f9872f7c5660966bc6be45f0c5d2cd8771105df6d4a9d206c55f5cc6ffc1693b46e1ae03a2883b028 +DIST rdrand-0.4.0.crate 6456 BLAKE2B 330ee64d998a0358f95a3dce50b3e1bbda531a3b613db7e5ba4038a1cf7191b60be3a0f33416e05380c41040704ce52727928915e9d2f4565d39984d1c86fcd6 SHA512 6476275d124bee28747191471e8d8f321a3b1c148c1f2a7ece4175f5244a7de90afe5f99d2eba5244d886b92e38232398864bf90e6d434b09494533942c8d894 +DIST redox_syscall-0.1.57.crate 17087 BLAKE2B 88e3ffcfd752e757f8fadfd4edca367f9185f09e609c329bb36f179183cf103dc182aae701c14afb717d2b4c3d72ba307b49fc671cc97aa7c9d03df1a7a1835f SHA512 c6e187087060084b7173ed0d9d0e982e4259d4f76522112268c02ff20751382e3bc8e119da6153170f5c54bd5b9cb028910f2f85c1c842099205dccd44659184 +DIST regex-1.5.4.crate 236581 BLAKE2B 6efaf69d1a99dc3a2e04b2d1a96b036f631e9a0ad0d3aa57263febd47f7ec12765526f06f9c52a5497bf0d9b455f1d1b39e011adc4c28530c44b65c8a453efc0 SHA512 1a9208358c4ab87c19ec91bcf5c1e35dede46f3a0c0097061b7b53fa77a1e5ad38090d243aab274956f09c491e5fbe3b3b35a91db079b82a2dde2fd9fbad4c19 +DIST regex-automata-0.1.10.crate 114533 BLAKE2B 0e357229f6825f14339b1d7c40730b83e62bba12115d01ed20313320766e769a653a2fcd2c9d19af51a82c38e9e42c1a31d005e1f44f5b6fbb3ead7c9c74027f SHA512 56d64da361afce82c6cb49e70b99ce1fca3e1969c54bba5f9971db135f8544c65f49feb8827789947b3d1dcefc9c49a7a434a7ffe0d09c5900345a1733723c5f +DIST regex-syntax-0.6.25.crate 293293 BLAKE2B d5ca0dbc26b03c6a1818026f9a69cd226ec934e7c64094d0ebe843052b648617ffae7aa3a074f8da46d03c46996d8b547d8916576342000bd9711089b3e57d73 SHA512 a3d31f82aadc6be1796f76c03152ff24f37fe42d6ce27fb98e2f55ab102f86502bc37ccd563f6e0eba61aab20d002184c618517b678b3b93cb8f0497cc046ca5 +DIST ryu-1.0.5.crate 49570 BLAKE2B 3bfba4a5f290a429de7ac3b86823b2a973f40eb6f48c15329173d95964d31ada36f2618be4b36774a03f97f2ce61364900c6a3ad5465a294e2df311a1f4104ed SHA512 d1708ffa3112a684edf2956b6730ead040401d38f1457cde074eaaa59c249007dc8b925629e7f6df89f7ea757e9d0826649d685cc8ede0a04d50296048bf476c +DIST serde-1.0.126.crate 75138 BLAKE2B 51f37473483da8a05670a213f02e119173e4c97a49313cf855ff3e547bb0969fcd84ccb7d1554e7c1761b388ac5cd917cd7e680e3ac23d2504412f75401c0937 SHA512 f22ec92b2eaed0819610ae2c4471eb12aa3a4209f5fbfe829c2329010813837d11ffc02d7809335df6a978cf7944095fae79c7593324dfd49becc7633dd626ed +DIST serde_derive-1.0.126.crate 54189 BLAKE2B fa3ca8ef2e7d9bd29e682ac7df066bab05301c2b92dc8f12d254a7e8b29e8d8a83d5405def3050db00f7e396fdd14f18cfac7918a5218d4b6822463c7c0f5c5d SHA512 e3c430b82def037d2f1dcc96ff7dc075636c81ab8f12e07ba09d232bc8224204c7b0cddc994c1ec98400e50340e03d6bad0dfa624b4d869e5f29d72b293d30bf +DIST streaming-stats-0.2.3.crate 9383 BLAKE2B 1aaf9535563ed28eb243ce757fdf23eaf98bfd4ab69eae4bd5c1c6277f852e0eb8d25e400140d9c609bd362a068d75434eaacee41d5cb179308af1dc1d1c76e2 SHA512 e0c9b645b4ab1e88de049882dfc33995da863eed05550d3a8885d2c2cd630938b524be10770784d82d31480c17ebe44d9168f56aacb857e742b60b9f8e54490d +DIST strsim-0.10.0.crate 11355 BLAKE2B bcb25ad0a7284e24e4f17ebe0ccb621bdc4118e499b50b094d98aa7e8fcc0b96716c9953c3516ce7ea78309d41d424892ded595259696a5bbffdcb07802b5c2f SHA512 78b318532addfcf5c1ccc1e14539e258aab9d3cd893cc45d82342549bde838c177d90f13c560671f8f32929af47d0b467db35e6876bd7697d8b3f9e055aeeac1 +DIST syn-1.0.73.crate 232706 BLAKE2B c580f9ab914c54e731c8503c9b9d577d05032edb6bd12d7a183a3c0e3532fcf24196479a9ee40d09cb7e09ba6d94add36e338331affc2625058ce54419621ee4 SHA512 b37beb1b6d483cfdbc44d806af9955cdf52c4b0d5f918782019b089d06e107c7e23ced343a3bece20235a24752783795ebba8e603b61a6302e82ee7027843d8b +DIST tabwriter-1.2.1.crate 9320 BLAKE2B ecf75809a461748a73c54edba3a87c8f3a7498e207b19bd54e36b4aac06efe35edc4d6f37fdb5b35a7d1f2c09afa12dc9c0b05ccf00a63abaf5037ff3ccbe606 SHA512 f5b909440aff00e09e2ddddc7b34556a38ad93b24ed249aa2e9405a9d02ff4d00324b353099ef17394ffa6c20b2c43131ecedf52079ab9dc0559db4d13ac68a5 +DIST threadpool-1.8.1.crate 14408 BLAKE2B 8bd64ede19184e18460f6b2ad5bc888d6facd5fcaa5b43c35269e35909c9c68a884203f5c4b92619c097ad48c19ec29f73085755ee348cc637233ff3b5b50ccc SHA512 adaa5aecdeec25848af15b160e5b39833978454d834974211bd586d81837f2ce89e5590f08b7e0d4868346cf57056913a5d41bc8bf92b89109ed769cce4a8be0 +DIST unicode-width-0.1.8.crate 16732 BLAKE2B 5aa7b87eef1322e4151a3fcf981ade311b8fa030527d7561815950e58d3f15156163dfe34da6a708c37dccc3f7652bf7fc2cd899fe8bb0118b67c4113ff3a2d2 SHA512 0abba6da6981a2451e01d93bbd47652c46eb6fb07cc0214f33259fb29945bfd5ee2b302e883ddca8f68e921635f222701b7310e7da2a5e225f854980d1e474b0 +DIST unicode-xid-0.2.2.crate 14955 BLAKE2B 6c6da49ac08dbd8b3248272224d6bff96b9cd1f36029b1937a58a0b929c3a48326053305ed49e73edd70f572f5abbc4817cedc899c69e3457805ad056669f6af SHA512 92ffd0dd34e3ca235ecf110b38c447d3ec1faa23d76c112457f28d432f92fa6b5f428bc5e1bfd278f361f55426dd96e19ecb0d3eff6cf250892f069c52bd89a8 +DIST winapi-0.3.9.crate 1200382 BLAKE2B cb5799749ccd935ea2d7068d953cecf19f543d9db7dc16ad4584bb7005373ada34937a3ced7225544d8bc765da599911c7a3190efefb3a25b7c1bb7123b4f673 SHA512 ff8b7b78065f3d8999ec03c725a0460ebc059771bf071c7a3df3f0ecd733edf3b0a2450024d4e24e1aedddaecd9038ce1376c0d8bbf45132068cf45cf4a53a97 +DIST winapi-i686-pc-windows-gnu-0.4.0.crate 2918815 BLAKE2B 4d357e4d30f9552972170d65b9a5358b69c46a3e772fe05efc22f3d4ffc1caeeaad7aacdc7abd503a7ad0545f8bd7d22bf351dcb6df76f812fa4d45c34d65df0 SHA512 a672ccefd0730a8166fef1d4e39f9034d9ae426a3f5e28d1f4169fa5c5790767693f281d890e7804773b34acdb0ae1febac33cde8c50c0044a5a6152c7209ec2 +DIST winapi-x86_64-pc-windows-gnu-0.4.0.crate 2947998 BLAKE2B 2ad1ea8b5fa07d544e910ccba043ae925269b76b26c9da356305b34b86741dd8b9aff0b9ffe3d562db4fcd7d7c46a11ce9e3168b782b1d89ae6881742b7ede82 SHA512 4a654af6a5d649dc87e00497245096b35a2894ae66f155cb62389902c3b93ddcc5cf7d0d8b9dd97b291d2d80bc686af2298e80abef6ac69883f4a54e79712513 +DIST xsv-0.13.0.tar.gz 60527 BLAKE2B b770209e64d9780c78aa25f938604f2f38b6ad3584a50c43023a1ae6fb6de1ed5ac5ca27fc9553c46f6f3d0953dbcfabffe03d61fe119639e5afa1f10574a4f7 SHA512 a0c9b914071514f6dd1fc19759ff88b7d457979385dd169350d27b0ee464fd21e7165bd81e769487d12ac63c46f78e1af684e690a7126ab9a2c336cee4aa6095 diff --git a/sci-calculators/xsv/metadata.xml b/sci-calculators/xsv/metadata.xml new file mode 100644 index 000000000000..60ce0155b3ab --- /dev/null +++ b/sci-calculators/xsv/metadata.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>zmedico@gentoo.org</email> + <name>Zac Medico</name> + </maintainer> + <upstream> + <bugs-to>https://github.com/BurntSushi/xsv/issues</bugs-to> + <changelog>https://github.com/BurntSushi/xsv/commits/master</changelog> + </upstream> + <origin>baldeagleos-repo</origin> +</pkgmetadata> 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..727f733f5d23 --- /dev/null +++ b/sci-calculators/xsv/xsv-0.13.0-r1.ebuild @@ -0,0 +1,75 @@ +# 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" + +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 +} |
