actions.py 774 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. from pisi.actionsapi import autotools
  7. from pisi.actionsapi import shelltools
  8. from pisi.actionsapi import pisitools
  9. from pisi.actionsapi import get
  10. def build():
  11. #needs mandoc
  12. shelltools.system("sed -i -e 's|SUBDIRS := src docs|SUBDIRS := src|' Makefile")
  13. shelltools.export("CFLAGS", "-Os")
  14. #pisitools.dosed("Make.defaults","-O0","-Os")
  15. pisitools.dosed("src/test/Makefile","-rpath=$(TOPDIR)/src/","-rpath=$(libdir)|g")
  16. autotools.make("libdir=/usr/lib bindir=/usr/bin includedir=/usr/include/ V=1 -j1")
  17. def install():
  18. autotools.rawInstall("DESTDIR=%s libdir=/usr/lib/" % get.installDIR())