actions.py 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637
  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 pisitools
  8. from pisi.actionsapi import get
  9. from pisi.actionsapi import shelltools
  10. def build():
  11. shelltools.system('sed -i "/MANDIR =/s#)/#)/share/#" unix/Makefile')
  12. opt='-DACORN_FTYPE_NFS \
  13. -DWILD_STOP_AT_DIR \
  14. -DLARGE_FILE_SUPPORT \
  15. -DUNICODE_SUPPORT \
  16. -DUNICODE_WCHAR \
  17. -DUTF8_MAYBE_NATIVE \
  18. -DNO_LCHMOD \
  19. -DDATE_FORMAT=DF_YMD \
  20. -DUSE_BZIP2 -DNOMEMCPY \
  21. -DNO_WORKING_ISPRINT'
  22. autotools.make('-f unix/Makefile prefix=/usr D_USE_BZ2=-DUSE_BZIP2 L_BZ2=-lbz2 LF2="%s" CF="%s -I. %s" unzips'% (get.LDFLAGS(),get.CFLAGS(),opt))
  23. def install():
  24. autotools.make("-f unix/Makefile prefix=%s/usr install" % get.installDIR())
  25. pisitools.doman("man/*.1")
  26. pisitools.dodoc("BUGS", "History*", "README", "ToDo", "WHERE" , "LICENSE")