actions.py 763 B

12345678910111213141516171819202122232425262728293031
  1. #!/usr/bin/python
  2. # -*- coding: utf-8 -*-
  3. #
  4. # Licensed under the GNU General Public License, version 3.
  5. # See the file https://www.gnu.org/licenses/gpl-3.0.txt
  6. from pisi.actionsapi import autotools, pisitools, get
  7. i = ''.join([
  8. ' --prefix=/usr',
  9. ' --bindir=/usr/bin',
  10. ' --includedir=/usr/include/iconv',
  11. ' --enable-extra-encodings',
  12. ' --disable-static '
  13. ])
  14. def setup():
  15. autotools.configure(i)
  16. def build():
  17. autotools.make()
  18. def install():
  19. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  20. pisitools.rename("/usr/bin/iconv", "libiconv")
  21. pisitools.remove("/usr/share/doc/*.html")
  22. pisitools.removeDir("/usr/share/man/man3")
  23. pisitools.removeDir("/usr/share/man/man1")
  24. pisitools.dodoc("AUTHORS", "ChangeLog", "NEWS", "THANKS")