34 lines
1.0 KiB
Python
34 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 autotools
|
|
from pisi.actionsapi import pisitools
|
|
from pisi.actionsapi import shelltools
|
|
|
|
def setup():
|
|
# use python2.x
|
|
pisitools.dosed("configure", "(\/usr\/include\/)python\*", r"\1python2*")
|
|
# fix unused direct dependency
|
|
pisitools.dosed("Makefile.in", "(PLFLAGS=)`\$\$pyconfig --libs`", r"\1'-lpython2.7'")
|
|
pisitools.dosed("Makefile.in", "(PLDFLAGS=)`\$\$pyconfig --ldflags`", r"\1'-lpython2.7 -Xlinker -export-dynamic'")
|
|
|
|
shelltools.echo("config.h.in", "#define USE_INTERP_RESULT 1")
|
|
shelltools.export("PYTHON", "/usr/bin/python2.7")
|
|
autotools.configure("\
|
|
--with-gpm-support \
|
|
")
|
|
|
|
def build():
|
|
autotools.make()
|
|
|
|
def install():
|
|
autotools.install()
|
|
|
|
# remove static lib
|
|
pisitools.remove("/usr/lib/libnewt.a")
|
|
|
|
pisitools.dodoc("CHANGES", "COPYING")
|