From 2f799fb88cf8c24fba1413caa40ae4bd37a144c1 Mon Sep 17 00:00:00 2001 From: Matheus Date: Sun, 24 May 2026 21:17:15 -0300 Subject: [PATCH] ports: python3-{psutil,xdg,yaml} --- recipes/python3-psutil | 27 +++++++++++++++++++++++++++ recipes/python3-xdg | 13 +++++++++++++ recipes/python3-yaml | 13 +++++++++++++ source-recipes/python3-psutil | 5 +++++ source-recipes/python3-xdg | 5 +++++ source-recipes/python3-yaml | 5 +++++ 6 files changed, 68 insertions(+) create mode 100644 recipes/python3-psutil create mode 100644 recipes/python3-xdg create mode 100644 recipes/python3-yaml create mode 100644 source-recipes/python3-psutil create mode 100644 source-recipes/python3-xdg create mode 100644 source-recipes/python3-yaml diff --git a/recipes/python3-psutil b/recipes/python3-psutil new file mode 100644 index 00000000..cfc158bf --- /dev/null +++ b/recipes/python3-psutil @@ -0,0 +1,27 @@ +name=python3-psutil +revision=1 +from_source=python3-psutil +imagedeps="build-essential python3" +hostdeps="xgcc xbinutils python" +deps="base python" + +build() { + cp -rp ${source_dir}/* . + _PYTHON_SYSCONFIGDATA_NAME=_sysconfigdata__astral_ \ + PYTHONPATH=${sysroot_dir}/${prefix}/lib/python3.10 \ + CC=x86_64-astral-gcc \ + CFLAGS="-I${sysroot_dir}/${prefix}/include/python3.10" \ + LDSHARED="x86_64-astral-gcc -shared" \ + PSUTIL_ASTRAL=1 \ + /usr/bin/env python3 setup.py build +} + +package() { + _PYTHON_SYSCONFIGDATA_NAME=_sysconfigdata__astral_ \ + PYTHONPATH=${sysroot_dir}/${prefix}/lib/python3.10 \ + CC=x86_64-astral-gcc \ + CFLAGS="-I${sysroot_dir}/${prefix}/include/python3.10" \ + LDSHARED="x86_64-astral-gcc -shared" \ + PSUTIL_ASTRAL=1 \ + /usr/bin/env python3 setup.py install --prefix=${prefix} --root=${dest_dir} +} diff --git a/recipes/python3-xdg b/recipes/python3-xdg new file mode 100644 index 00000000..6874a74f --- /dev/null +++ b/recipes/python3-xdg @@ -0,0 +1,13 @@ +name=python3-xdg +revision=1 +from_source=python3-xdg +hostdeps="python" +deps="base python" + +build() { + cp -rp ${source_dir}/* . +} + +package() { + /usr/bin/env python3 setup.py install --prefix=${prefix} --root=${dest_dir} +} diff --git a/recipes/python3-yaml b/recipes/python3-yaml new file mode 100644 index 00000000..26a0ba24 --- /dev/null +++ b/recipes/python3-yaml @@ -0,0 +1,13 @@ +name=python3-yaml +revision=1 +from_source=python3-yaml +hostdeps="python" +deps="base python" + +build() { + cp -rp ${source_dir}/* . +} + +package() { + /usr/bin/env python3 setup.py --without-libyaml install --prefix=${prefix} --root=${dest_dir} +} diff --git a/source-recipes/python3-psutil b/source-recipes/python3-psutil new file mode 100644 index 00000000..da91ad77 --- /dev/null +++ b/source-recipes/python3-psutil @@ -0,0 +1,5 @@ +name=python3-psutil +version=7.2.2 +source_method=tarball +tarball_url="https://files.pythonhosted.org/packages/aa/c6/d1ddf4abb55e93cebc4f2ed8b5d6dbad109ecb8d63748dd2b20ab5e57ebe/psutil-${version}.tar.gz" +tarball_sha512=2de05c69d152a8582a4d8f1f02233cae5927baaa35f8797e4b0745f33e6b3c7239b9a54b719b0582b0b6c5b4bbc86d2e1e226c3e9854e4e5be9c5e349c704961 diff --git a/source-recipes/python3-xdg b/source-recipes/python3-xdg new file mode 100644 index 00000000..20f87767 --- /dev/null +++ b/source-recipes/python3-xdg @@ -0,0 +1,5 @@ +name=python3-xdg +version=0.28 +source_method=tarball +tarball_url="https://files.pythonhosted.org/packages/b0/25/7998cd2dec731acbd438fbf91bc619603fc5188de0a9a17699a781840452/pyxdg-${version}.tar.gz" +tarball_sha512=ac9dd56d72dab370da8615db6c73502472d122ff2acb1911870aa4b2b409f45d3c00642d13970401dd1000a05f10bcd9b9a7c39cf1f861b446bdf6e4a2f8c5bb diff --git a/source-recipes/python3-yaml b/source-recipes/python3-yaml new file mode 100644 index 00000000..8bcbc874 --- /dev/null +++ b/source-recipes/python3-yaml @@ -0,0 +1,5 @@ +name=python3-yaml +version=6.0.3 +source_method=tarball +tarball_url="https://files.pythonhosted.org/packages/05/8e/961c0007c59b8dd7729d542c61a4d537767a59645b82a0b521206e1e25c2/pyyaml-${version}.tar.gz" +tarball_sha512=0df64497f51bd07ee01d7676afc4cf3eff228e1a73d4b1c7f034c7cba762f3451aa686e594af54e8e359173262cc0e47c110491bc7e29c3dd712a66c4316b2cf