actions.py 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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 pisitools
  8. from pisi.actionsapi import get
  9. from pisi.actionsapi import shelltools
  10. def setup():
  11. shelltools.export("PYTHON", "/usr/bin/python3")
  12. shelltools.export("AUTOPOINT", "true")
  13. autotools.autoreconf("-fiv")
  14. autotools.configure("--disable-static \
  15. --prefix=/usr \
  16. --with-x \
  17. --enable-nls \
  18. --sysconfdir=/etc \
  19. --libexecdir=/usr/lib/openbox \
  20. --enable-startup-notification \
  21. --docdir=/%s/%s" % (get.docDIR(), get.srcNAME()))
  22. pisitools.dosed("libtool", "^(hardcode_libdir_flag_spec=).*", '\\1""')
  23. pisitools.dosed("libtool", "^(runpath_var=)LD_RUN_PATH", "\\1DIE_RPATH_DIE")
  24. pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
  25. def build():
  26. autotools.make()
  27. def install():
  28. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  29. # GNOME Panel is no longer available in the official repositories
  30. pisitools.remove("/usr/bin/gdm-control")
  31. pisitools.remove("/usr/bin/gnome-panel-control")
  32. pisitools.remove("/usr/bin/openbox-gnome-session")
  33. pisitools.remove("/usr/share/man/man1/openbox-gnome-session.1")
  34. pisitools.remove("/usr/share/xsessions/openbox-gnome.desktop")
  35. pisitools.removeDir("/usr/share/gnome-session")
  36. pisitools.dodoc("AUTHORS", "CHANGELOG", "COPYING", "README")