actions.py 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. #!/usr/bin/python
  2. # -*- coding: utf-8 -*-
  3. #
  4. # Licensed under the GNU General Public License, version 2
  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. #autotools.autoreconf("-fiv")
  12. #shelltools.system("sed -i '1s|#!/usr/bin/env python$|&2|' gsettings/gsettings-schema-convert")
  13. shelltools.system("sed -i '1s|#!/usr/bin/env python$|#!/usr/bin/python|' gsettings/gsettings-schema-convert")
  14. autotools.configure("--prefix=/usr \
  15. --libexecdir=/usr/lib/GConf \
  16. --sysconfdir=/etc \
  17. --localstatedir=/var \
  18. --disable-static \
  19. --disable-orbit \
  20. --enable-defaults-service \
  21. --with-pic \
  22. --with-gtk=3.0 \
  23. ")
  24. #pisitools.dosed("libtool", "^(hardcode_libdir_flag_spec=).*", '\\1""')
  25. #pisitools.dosed("libtool", "^(runpath_var=)LD_RUN_PATH", "\\1DIE_RPATH_DIE")
  26. pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
  27. def build():
  28. autotools.make("pkglibdir=/usr/lib/GConf")
  29. def install():
  30. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  31. pisitools.dodoc("README", "TODO", "NEWS", "ChangeLog", "AUTHORS")