actions.py 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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 shelltools
  7. from pisi.actionsapi import autotools
  8. from pisi.actionsapi import pisitools
  9. from pisi.actionsapi import get
  10. def setup():
  11. shelltools.system("sed -i 's|$(datadir)/pixmaps|$(datadir)/icons/hicolor/64x64/apps|' src/mime/Makefile.{am,in}")
  12. shelltools.system("sed -i 's|$(datarootdir)/appdata|$(datarootdir)/metainfo|' Makefile.{am,in} src/plugins/contrib/appdata/Makefile.{am,in}")
  13. shelltools.system("./bootstrap")
  14. #shelltools.system("./bootstrap")
  15. #autotools.autoreconf("-vif")
  16. #plugins = "AutoVersioning,BrowseTracker,byogames,Cccc,CppCheck,cbkoders,codesnippets,codestat,copystrings,dragscroll,envvars,headerfixup,help,hexeditor,incsearch,keybinder,MouseSap,profiler,regex,exporter,symtab,Valgrind"
  17. # suppress compiler warnings
  18. pisitools.cflags.add("-Wno-unused-result")
  19. pisitools.cxxflags.add("-Wno-unused-result -Wno-deprecated-declarations -Wno-stringop-overflow")
  20. autotools.configure("--with-wx-config=/usr/bin/wx-config-gtk3 \
  21. --with-contrib-plugins=all \
  22. --enable-unicode\
  23. ")
  24. # disable rpath
  25. pisitools.dosed("libtool", "^hardcode_libdir_flag_spec=.*", "hardcode_libdir_flag_spec=\"\"")
  26. pisitools.dosed("libtool", "^runpath_var=LD_RUN_PATH", "runpath_var=DIE_RPATH_DIE")
  27. # fix unused direct dependency analysis
  28. pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
  29. def build():
  30. autotools.make()
  31. def install():
  32. autotools.install()
  33. pisitools.dodoc("COPYING", "README")