From 2494a67df0c916d1fde61c32d33bd848139fc314 Mon Sep 17 00:00:00 2001 From: skmpz Date: Mon, 16 Aug 2021 22:06:22 +0400 Subject: [PATCH 1/2] python3-apsw: update and build with --enable=load_extention --- srcpkgs/python3-apsw/template | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/srcpkgs/python3-apsw/template b/srcpkgs/python3-apsw/template index f646420cde57..bb3d9815d5d8 100644 --- a/srcpkgs/python3-apsw/template +++ b/srcpkgs/python3-apsw/template @@ -1,21 +1,27 @@ # Template file for 'python3-apsw' pkgname=python3-apsw -version=3.32.2r1 -revision=3 +version=3.36.0r1 +revision=1 wrksrc="apsw-${version/r/-r}" build_style=python3-module +make_build_args="--enable=load_extension" hostmakedepends="python3-devel" makedepends="python3-devel sqlite-devel" +checkdepends="python3-pytest $makedepends" short_desc="Another Python SQLite Wrapper (Python3)" maintainer="bra1nwave " license="Zlib" homepage="https://github.com/rogerbinns/apsw" changelog="https://raw.githubusercontent.com/rogerbinns/apsw/master/doc/changes.rst" distfiles="${homepage}/archive/${version/r/-r}.tar.gz" -checksum=33f3ccfd8a7537dccef2caeb8cc06e26f300f1cf547c22c4e8ec8dcfecb72aa0 +checksum=133ee2291851e0144661eba25517c7feb026c6d5896df90ef7ea0feddf03a842 pre_check() { - export PYTHONPATH=$(cd build/lib* && pwd) + $CC $CFLAGS -fPIC -shared -o ./testextension.sqlext src/testextension.c +} + +do_check() { + PYTHONPATH="$(cd build/lib* && pwd)" python3 ./tests.py } post_install() { From f8a43fae84c721b5a55f484298be90fd9b527710 Mon Sep 17 00:00:00 2001 From: skmpz Date: Mon, 16 Aug 2021 22:07:42 +0400 Subject: [PATCH 2/2] calibre: update to 5.25.0. --- srcpkgs/calibre/template | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/srcpkgs/calibre/template b/srcpkgs/calibre/template index adcd8781dc90..ebd0161f93df 100644 --- a/srcpkgs/calibre/template +++ b/srcpkgs/calibre/template @@ -1,7 +1,7 @@ # Template file for 'calibre' pkgname=calibre -version=5.21.0 -revision=2 +version=5.25.0 +revision=1 build_style=python3-module pycompile_dirs="/usr/lib/calibre/" hostmakedepends="pkg-config python3-BeautifulSoup4 python3-Pillow python3-PyQt5-svg @@ -11,11 +11,11 @@ hostmakedepends="pkg-config python3-BeautifulSoup4 python3-Pillow python3-PyQt5- python3-zeroconf xdg-utils rapydscript-ng" makedepends="libinput-devel libmagick-devel libmtp-devel libpodofo-devel libwmf-devel libxkbcommon-devel python3-PyQt5-devel - qt5-devel sqlite-devel tslib-devel hunspell-devel hyphen-devel" + qt5-devel sqlite-devel tslib-devel hunspell-devel hyphen-devel libstemmer-devel" depends="desktop-file-utils optipng poppler-utils python3-BeautifulSoup4 python3-Markdown python3-Pillow python3-PyQt5-svg python3-zeroconf python3-PyQt5-webengine python3-PyQt5-webchannel python3-Pygments python3-apsw - python3-css-parser python3-cssselect python3-dateutil python3-dbus + python3-css-parser python3-cssselect python3-dateutil python3-jeepney python3-dnspython python3-feedparser python3-html5-parser python3-mechanize python3-msgpack python3-netifaces python3-psutil python3-regex python3-html2text python3-pychm python3-cchardet qt5-webengine speech-dispatcher" @@ -27,7 +27,7 @@ license="GPL-3.0-only" homepage="https://calibre-ebook.com" changelog="https://raw.githubusercontent.com/kovidgoyal/calibre/master/Changelog.txt" distfiles="https://download.calibre-ebook.com/${version}/calibre-${version}.tar.xz" -checksum=458b6b2dcc6bcf63676c327277192e88333cf9545d89806855d31b4c17e20257 +checksum=5a6213a14368a863d4f753f7d3c11fc5b0529f614fe9e0a6e7c790aa789544f6 lib32disabled=yes nocross=yes