From a6668dc527a8f109aff9d6a92ea52204236ee4f5 Mon Sep 17 00:00:00 2001 From: Rmys Date: Sat, 24 Feb 2018 13:54:49 +0300 Subject: [PATCH] libidn2 --- system/base/libidn2/actions.py | 36 ++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 system/base/libidn2/actions.py diff --git a/system/base/libidn2/actions.py b/system/base/libidn2/actions.py new file mode 100644 index 00000000..2b676a76 --- /dev/null +++ b/system/base/libidn2/actions.py @@ -0,0 +1,36 @@ +#!/usr/bin/python +# -*- coding: utf-8 -*- +# +# Licensed under the GNU General Public License, version 3. +# See the file http://www.gnu.org/licenses/gpl.txt + +from pisi.actionsapi import shelltools +from pisi.actionsapi import autotools +from pisi.actionsapi import pisitools +from pisi.actionsapi import get + +def setup(): + options = "--enable-nls \ + --disable-java \ + --disable-csharp \ + --disable-rpath \ + --disable-gtk-doc \ + --disable-static" + + if get.buildTYPE() == "emul32": + options += " --bindir=/emul32/bin" + + shelltools.export("CFLAGS", "%s -m32" % get.CFLAGS()) + + autotools.configure(options) + +def build(): + autotools.make() + +def check(): + autotools.make("-C tests check") + +def install(): + autotools.rawInstall("DESTDIR=%s" % get.installDIR()) + + pisitools.dodoc("AUTHORS", "ChangeLog", "NEWS", "COPYING*", "README*")