Update actions.py
This commit is contained in:
@@ -1,26 +1,21 @@
|
||||
#!/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
|
||||
# Licensed under the GNU General Public License, version 2
|
||||
# See the file http://www.gnu.org/copyleft/gpl.txt
|
||||
|
||||
from pisi.actionsapi import get
|
||||
from pisi.actionsapi import autotools
|
||||
from pisi.actionsapi import pisitools
|
||||
from pisi.actionsapi import shelltools
|
||||
from pisi.actionsapi import get
|
||||
from pisi.actionsapi import mesontools
|
||||
|
||||
def setup():
|
||||
shelltools.makedirs("build")
|
||||
shelltools.cd("build")
|
||||
shelltools.system("meson .. --prefix=/usr")
|
||||
|
||||
mesontools.configure()
|
||||
|
||||
def build():
|
||||
shelltools.cd("build")
|
||||
shelltools.system("ninja")
|
||||
|
||||
mesontools.build
|
||||
|
||||
def install():
|
||||
shelltools.cd("build")
|
||||
shelltools.system("DESTDIR=%s ninja install" % get.installDIR())
|
||||
|
||||
shelltools.cd("..")
|
||||
pisitools.dodoc("COPYING", "NEWS", "README")
|
||||
mesontools.install()
|
||||
pisitools.dodoc("AUTHORS", "ChangeLog", "COPYING", "NEWS", "README", "MAINTAINERS")
|
||||
|
||||
Reference in New Issue
Block a user