actions.py 612 B

1234567891011121314151617181920212223
  1. #!/usr/bin/python
  2. # -*- coding: utf-8 -*-
  3. #
  4. # Licensed under the GNU General Public License, version 3.
  5. # See the file http://www.gnu.org/licenses/gpl.txt
  6. #
  7. from pisi.actionsapi import cmaketools
  8. from pisi.actionsapi import autotools
  9. from pisi.actionsapi import pisitools
  10. from pisi.actionsapi import get
  11. def setup():
  12. cmaketools.configure("-DPYTHON_INCLUDE_DIR=/usr/include/python2.7 \
  13. -DPYTHON_LIBRARY=/usr/lib/libpython2.7.so")
  14. def build():
  15. autotools.make("VERBOSE=1")
  16. def install():
  17. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  18. pisitools.dodir("/var/db")