Files
main/programming/language/python/python-pygobject/actions.py
T
2021-07-04 13:30:49 +03:00

33 lines
1.0 KiB
Python

#!/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
WorkDir = "pygobject-%s" % get.srcVERSION()
def setup():
# suppress compiler warnings
pisitools.cflags.add("-Wno-deprecated-declarations -Wno-unused-variable \
-Wno-unused-but-set-variable -Wno-discarded-qualifiers \
-Wno-misleading-indentation")
# autoreconf is for under linking problem
autotools.autoreconf("-fi")
autotools.configure("--enable-introspection=no")
# fix unused dependency analysis
pisitools.dosed("libtool"," -shared ", " -Wl,--as-needed -shared ")
def build():
autotools.make()
def install():
autotools.install()
#shelltools.chmod("%s/usr/share/pygobject/xsl/fixxref.py" % get.installDIR(), 0755)
pisitools.dodoc("COPYING", "README")