From 690badcbace124d1f3705e9a62f17140ed3a2618 Mon Sep 17 00:00:00 2001 From: Matheus Date: Mon, 10 Oct 2022 17:11:27 -0300 Subject: [PATCH] jinx: gmp, mpc, mpfr, pfetch and libstdc++ ports --- host-recipes/libstdc++-v3 | 24 ++++++++++++++++++++++++ patches/gmp/gmp.patch | 12 ++++++++++++ patches/mpc/mpc.patch | 12 ++++++++++++ patches/mpfr/mpfr.patch | 12 ++++++++++++ patches/pfetch/pfetch.patch | 26 ++++++++++++++++++++++++++ recipes/gmp | 25 +++++++++++++++++++++++++ recipes/mpc | 25 +++++++++++++++++++++++++ recipes/mpfr | 25 +++++++++++++++++++++++++ recipes/pfetch | 22 ++++++++++++++++++++++ source-recipes/gmp | 8 ++++++++ source-recipes/mpc | 8 ++++++++ source-recipes/mpfr | 8 ++++++++ source-recipes/pfetch | 8 ++++++++ 13 files changed, 215 insertions(+) create mode 100644 host-recipes/libstdc++-v3 create mode 100644 patches/gmp/gmp.patch create mode 100644 patches/mpc/mpc.patch create mode 100644 patches/mpfr/mpfr.patch create mode 100644 patches/pfetch/pfetch.patch create mode 100644 recipes/gmp create mode 100644 recipes/mpc create mode 100644 recipes/mpfr create mode 100644 recipes/pfetch create mode 100644 source-recipes/gmp create mode 100644 source-recipes/mpc create mode 100644 source-recipes/mpfr create mode 100644 source-recipes/pfetch diff --git a/host-recipes/libstdc++-v3 b/host-recipes/libstdc++-v3 new file mode 100644 index 00000000..c843ffa5 --- /dev/null +++ b/host-recipes/libstdc++-v3 @@ -0,0 +1,24 @@ +name=libstdc++-v3 +revision=1 +from_source=gcc-cross +imagedeps="base-devel" +hostdeps="automake autoconf binutils-cross gcc-cross" +deps="mlibc" + +configure() { + + true + +} + +build() { + cd ${base_dir}/host-builds/gcc-cross + make all-target-libstdc++-v3 -j7 + +} + +install(){ + cd ${base_dir}/host-builds/gcc-cross + make DESTDIR="${dest_dir}" install-target-libstdc++-v3 + +} diff --git a/patches/gmp/gmp.patch b/patches/gmp/gmp.patch new file mode 100644 index 00000000..b9e8fb76 --- /dev/null +++ b/patches/gmp/gmp.patch @@ -0,0 +1,12 @@ +diff -ruN gmp-workdir/configfsf.sub gmp/configfsf.sub +--- gmp-workdir/configfsf.sub 2022-10-10 16:39:29.213128211 -0300 ++++ gmp/configfsf.sub 2022-10-10 16:41:00.269794143 -0300 +@@ -1690,7 +1690,7 @@ + # Now accept the basic system types. + # The portable systems comes first. + # Each alternative MUST end in a * to match a version number. +- gnu* | android* | bsd* | mach* | minix* | genix* | ultrix* | irix* \ ++ gnu* | android* | astral* | bsd* | mach* | minix* | genix* | ultrix* | irix* \ + | *vms* | esix* | aix* | cnk* | sunos | sunos[34]* \ + | hpux* | unos* | osf* | luna* | dgux* | auroraux* | solaris* \ + | sym* | plan9* | psp* | sim* | xray* | os68k* | v88r* \ diff --git a/patches/mpc/mpc.patch b/patches/mpc/mpc.patch new file mode 100644 index 00000000..ea4ed81a --- /dev/null +++ b/patches/mpc/mpc.patch @@ -0,0 +1,12 @@ +diff -ruN mpc-workdir/build-aux/config.sub mpc/build-aux/config.sub +--- mpc-workdir/build-aux/config.sub 2022-10-10 16:41:29.463127241 -0300 ++++ mpc/build-aux/config.sub 2022-10-10 16:42:52.139793243 -0300 +@@ -1338,7 +1338,7 @@ + # The portable systems comes first. + # Each alternative MUST end in a * to match a version number. + # sysv* is not here because it comes later, after sysvr4. +- gnu* | bsd* | mach* | minix* | genix* | ultrix* | irix* \ ++ gnu* | astral* | bsd* | mach* | minix* | genix* | ultrix* | irix* \ + | *vms* | esix* | aix* | cnk* | sunos | sunos[34]*\ + | hpux* | unos* | osf* | luna* | dgux* | auroraux* | solaris* \ + | sym* | kopensolaris* | plan9* \ diff --git a/patches/mpfr/mpfr.patch b/patches/mpfr/mpfr.patch new file mode 100644 index 00000000..6cd6f6c1 --- /dev/null +++ b/patches/mpfr/mpfr.patch @@ -0,0 +1,12 @@ +diff -ruN mpfr-workdir/config.sub mpfr/config.sub +--- mpfr-workdir/config.sub 2022-10-10 16:44:45.379792331 -0300 ++++ mpfr/config.sub 2022-10-10 16:45:13.056458775 -0300 +@@ -1363,7 +1363,7 @@ + # The portable systems comes first. + # Each alternative MUST end in a * to match a version number. + # -sysv* is not here because it comes later, after sysvr4. +- -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ ++ -gnu* | -astral* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ + | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\ + | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \ + | -sym* | -kopensolaris* | -plan9* \ diff --git a/patches/pfetch/pfetch.patch b/patches/pfetch/pfetch.patch new file mode 100644 index 00000000..f722b851 --- /dev/null +++ b/patches/pfetch/pfetch.patch @@ -0,0 +1,26 @@ +diff -ruN pfetch-workdir/pfetch pfetch/pfetch +--- pfetch-workdir/pfetch 2022-10-10 17:04:55.933115927 -0300 ++++ pfetch/pfetch 2022-10-10 17:09:10.889780542 -0300 +@@ -956,9 +956,9 @@ + # allows indentation to continue naturally despite + # the use of '<<-EOF'. + case ${1:-${PF_ASCII:-${distro:-$os}}} in +- ([Aa]stral*) ++ ([Aa]stral*) + read_ascii 2 <<-EOF +- ${c7} .::. ++ ${c7} .::. + .:' .: + * ${c4}MMM8&&${c7}.::' .:' + ${c4}MMMM${c7}.::'${c4}&&${c7} .:' +@@ -970,8 +970,8 @@ + ${c7}:' .:' + ${c7}'::' * + +- EOF +- ++EOF ++ ;; + [Aa]lpine*) + read_ascii 4 <<-EOF + ${c4} /\\ /\\ diff --git a/recipes/gmp b/recipes/gmp new file mode 100644 index 00000000..0ea9e625 --- /dev/null +++ b/recipes/gmp @@ -0,0 +1,25 @@ +name=gmp +revision=1 +from_source=gmp +imagedeps="base-devel" +hostdeps="gcc-cross binutils-cross" +deps="mlibc" + + +configure() { + + ${source_dir}/configure --host=x86_64-astral --prefix=${prefix} + +} + +build() { + + make -j${parallelism} + +} + +install() { + + make install DESTDIR="${dest_dir}" + +} diff --git a/recipes/mpc b/recipes/mpc new file mode 100644 index 00000000..6b08bad1 --- /dev/null +++ b/recipes/mpc @@ -0,0 +1,25 @@ +name=mpc +revision=1 +from_source=mpc +imagedeps="base-devel" +hostdeps="gcc-cross binutils-cross" +deps="mlibc gmp mpfr" + + +configure() { + + ${source_dir}/configure --host=x86_64-astral --prefix=${prefix} + +} + +build() { + + make -j${parallelism} + +} + +install() { + + make install DESTDIR="${dest_dir}" + +} diff --git a/recipes/mpfr b/recipes/mpfr new file mode 100644 index 00000000..0d34318f --- /dev/null +++ b/recipes/mpfr @@ -0,0 +1,25 @@ +name=mpfr +revision=1 +from_source=mpfr +imagedeps="base-devel" +hostdeps="gcc-cross binutils-cross" +deps="mlibc gmp" + + +configure() { + + ${source_dir}/configure --host=x86_64-astral --prefix=${prefix} + +} + +build() { + + make -j${parallelism} + +} + +install() { + + make install DESTDIR="${dest_dir}" + +} diff --git a/recipes/pfetch b/recipes/pfetch new file mode 100644 index 00000000..d9dfec6e --- /dev/null +++ b/recipes/pfetch @@ -0,0 +1,22 @@ +name=pfetch +revision=1 +from_source=pfetch + +configure() { + + true + +} + +build() { + + true + +} + +install() { + + mkdir -p ${dest_dir}/${prefix}/bin + cp ${source_dir}/pfetch ${dest_dir}/${prefix}/bin/pfetch + +} diff --git a/source-recipes/gmp b/source-recipes/gmp new file mode 100644 index 00000000..bd541fef --- /dev/null +++ b/source-recipes/gmp @@ -0,0 +1,8 @@ +name=gmp +version=6.2.1 +source_method=tarball +tarball_url="https://gmplib.org/download/gmp/gmp-${version}.tar.xz" +tarball_sha512=c99be0950a1d05a0297d65641dd35b75b74466f7bf03c9e8a99895a3b2f9a0856cd17887738fa51cf7499781b65c049769271cbcb77d057d2e9f1ec52e07dd84 +regenerate() { + true +} diff --git a/source-recipes/mpc b/source-recipes/mpc new file mode 100644 index 00000000..d9986a21 --- /dev/null +++ b/source-recipes/mpc @@ -0,0 +1,8 @@ +name=mpc +version=1.2.1 +source_method=tarball +tarball_url="https://ftp.gnu.org/gnu/mpc/mpc-${version}.tar.gz" +tarball_sha512=3279f813ab37f47fdcc800e4ac5f306417d07f539593ca715876e43e04896e1d5bceccfb288ef2908a3f24b760747d0dbd0392a24b9b341bc3e12082e5c836ee +regenerate() { + true +} diff --git a/source-recipes/mpfr b/source-recipes/mpfr new file mode 100644 index 00000000..f23461c0 --- /dev/null +++ b/source-recipes/mpfr @@ -0,0 +1,8 @@ +name=mpfr +version=4.1.0 +source_method=tarball +tarball_url="https://www.mpfr.org/mpfr-current/mpfr-${version}.tar.xz" +tarball_sha512=1bd1c349741a6529dfa53af4f0da8d49254b164ece8a46928cdb13a99460285622d57fe6f68cef19c6727b3f9daa25ddb3d7d65c201c8f387e421c7f7bee6273 +regenerate() { + true +} diff --git a/source-recipes/pfetch b/source-recipes/pfetch new file mode 100644 index 00000000..8b2e4208 --- /dev/null +++ b/source-recipes/pfetch @@ -0,0 +1,8 @@ +name=pfetch +version=0.6.0 +source_method=tarball +tarball_url="https://github.com/dylanaraps/pfetch/archive/refs/tags/${version}.tar.gz" +tarball_sha512=868901bec6ae8999ad40fcb94bdf804969a3dfd724dc554d62f59982daf48d359094764b2e45d4816983d4f46e38de30f0bcb646ecd95bf3263ba128b87a1ddf +regenerate() { + true +}