123456789101112131415161718192021222324252627282930313233 |
- #!/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")
|