diff --git a/dev/libs/glib/ympbuild b/dev/libs/glib/ympbuild index df192b99..417eaa22 100644 --- a/dev/libs/glib/ympbuild +++ b/dev/libs/glib/ympbuild @@ -1,17 +1,17 @@ #!/usr/bin/env bash name='glib' -release='1' -version='2.75.0' +release='2' +version='2.76.3' url='https://download.gnome.org/sources/glib/' description='Low-level core library that forms the basis for projects such as GTK+ and GNOME.' email='parduscix@yandex.ru' maintainer='sulincix' license=('GPLv3') -source=("https://download.gnome.org/sources/glib/2.75/glib-${version}.tar.xz" +source=("https://download.gnome.org/sources/glib/2.76/glib-${version}.tar.xz" "glib.sysconf") depends=(libffi util-linux libpcre2 zlib) makedepends=( ) -md5sums=('6ac05ed98272c0a1927fbf1e32ebab8c' +md5sums=('9e8f5c00f0cdf71c7e47e554bfbf9dcb' 'SKIP') uses=() arch=('x86_64') diff --git a/dev/python/py3-flit/ympbuild b/dev/python/py3-flit/ympbuild new file mode 100644 index 00000000..db11766b --- /dev/null +++ b/dev/python/py3-flit/ympbuild @@ -0,0 +1,36 @@ +#!/usr/bin/env bash +name='py3-flit' +release='2' +version='3.9.0' +url='https://github.com/pypa/flit' +description='Simplified packaging of Python modules' +email='aliriza.keskin@pardus.org.tr' +maintainer='aliriza' +license=('GPLv3') +source=("https://github.com/pypa/flit/archive/refs/tags/$version.tar.gz") +depends=(python) +makedepends=() +md5sums=('f5d670fd1e89950c14e55b7cdc75dcbc') +group=(dev.python) +uses=() +arch=('x86_64') + +cd flit-$version + +build(){ + cur=$PWD + for dir in . flit_core; do + cd $dir + python -m build --wheel --skip-dependency-check --no-isolation + cd $cur + done +} + +package(){ + cur=$PWD + for dir in . flit_core; do + cd $dir + python -m installer --destdir="$DESTDIR" dist/*.whl + cd $cur + done +} diff --git a/dev/python/py3-wheel/ympbuild b/dev/python/py3-wheel/ympbuild index 5f817b55..472d7b58 100644 --- a/dev/python/py3-wheel/ympbuild +++ b/dev/python/py3-wheel/ympbuild @@ -9,7 +9,7 @@ maintainer='sulincix' license=('GPLv3') source=("https://github.com/pypa/wheel/archive/refs/tags/${version}.tar.gz") depends=(python) -makedepends=() +makedepends=(py3-installer py3-flit) md5sums=('508c46d10686536a647a13937d53259f') group=(dev.python) uses=() @@ -17,9 +17,16 @@ arch=('x86_64') cd wheel-$version +prepare(){ + rm -r src/wheel/vendored + sed -i 's/from .vendored.packaging.requirements import Requirement/from packaging.requirements import Requirement/' src/wheel/metadata.py + sed -i 's/from .vendored.packaging import tags/from packaging import tags/' src/wheel/bdist_wheel.py + sed -i 's/from .vendored.packaging import version as _packaging_version/from packaging import version as _packaging_version/' src/wheel/bdist_wheel.py + sed -i 's/from wheel.vendored.packaging import tags/from packaging import tags/' tests/test_bdist_wheel.py +} + build(){ python3 -m build --wheel --no-isolation - } package(){