actions.py 1.0 KB

123456789101112131415161718192021222324252627282930313233
  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/copyleft/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 setup():
  11. shelltools.system("sed -i -e 's/wx-config/wx-config-2.8/' configure")
  12. shelltools.system("sed -i 's/wxrc/wxrc-2.8/g' stringextract pgadmin/ui/embed-xrc")
  13. shelltools.export("WX_CONFIG", "/usr/bin/wx-config-2.8 ")
  14. shelltools.export("WXDIR", "/usr ")
  15. autotools.configure("--disable-static \
  16. --disable-debug \
  17. --with-wx=/usr \
  18. --disable-dependency-tracking \
  19. --with-wx-config=/usr/bin/wx-config-2.8 \
  20. --with-wx-version=2.8")
  21. def build():
  22. autotools.make()
  23. def install():
  24. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  25. pisitools.insinto("/usr/share/pixmaps", "pkg/debian/pgadmin3.xpm")