actions.py 773 B

123456789101112131415161718192021222324252627282930
  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. shelltools.export("MONO_SHARED_DIR", ".")
  11. def setup():
  12. pisitools.dosed("extras/boo.pc.in", "/lib", "/lib/mono")
  13. autotools.rawConfigure("--prefix=/usr \
  14. --libdir=/usr/lib")
  15. def build():
  16. autotools.make()
  17. def install():
  18. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  19. # Remove unused directory
  20. pisitools.removeDir("/share")
  21. # Empty files: NEWS, README, ChangeLog
  22. pisitools.dodoc("AUTHORS", "COPYING")