python3-efl: fix dependencies and reduce memory on 32-bit

[ci skip]
This commit is contained in:
q66 2019-10-20 22:06:35 +02:00 committed by Piraty
parent ef460bf70f
commit 3a7ea8fadd

View file

@ -1,21 +1,28 @@
# Template file for 'python3-efl' # Template file for 'python3-efl'
pkgname=python3-efl pkgname=python3-efl
version=1.23.0 version=1.23.0
revision=1 revision=2
wrksrc=python-efl-${version} wrksrc=python-efl-${version}
build_style=python3-module build_style=python3-module
pycompile_module="efl" pycompile_module="efl"
hostmakedepends="pkg-config python-devel python3-devel" hostmakedepends="pkg-config python3-devel"
makedepends="efl-devel python-dbus-devel" makedepends="efl-devel python-dbus-devel"
depends="python-dbus" depends="python3-dbus"
short_desc="Python3 bindings for Enlightenment Foundation Libraries" short_desc="Python3 bindings for Enlightenment Foundation Libraries"
maintainer="q66 <daniel@octaforge.org>" maintainer="q66 <daniel@octaforge.org>"
license="LGPL-3.0-only, LGPL-3.0-only" license="LGPL-3.0-only, GPL-3.0-only"
homepage="http://enlightenment.org" homepage="http://enlightenment.org"
distfiles="http://download.enlightenment.org/rel/bindings/python/python-efl-${version}.tar.xz" distfiles="http://download.enlightenment.org/rel/bindings/python/python-efl-${version}.tar.xz"
checksum=2bdef4153e3df2ed3edef9f1ebb4554054405425247a9fabb3c784b48232d69b checksum=2bdef4153e3df2ed3edef9f1ebb4554054405425247a9fabb3c784b48232d69b
# ETOOBIG pre_build() {
if [ "$XBPS_WORDSIZE" = "32" ]; then # any higher optimization level and gcc OOMs on i686 (even -Os)
LDFLAGS="-Wl,--no-keep-memory" case "$XBPS_TARGET_MACHINE" in
i686*) export CFLAGS+=" -O1";;
esac
# the build likes to add -g without asking
if [ -z "$XBPS_DEBUG_PKGS" ]; then
export CFLAGS+=" -g0"
fi fi
}