actions.py 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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 get
  7. from pisi.actionsapi import autotools
  8. from pisi.actionsapi import pisitools
  9. from pisi.actionsapi import shelltools
  10. from pisi.actionsapi import pythonmodules
  11. pisitools.flags.sub("-O[\ds]+", "-O3")
  12. def setup():
  13. shelltools.system("mv ffmpeg-4.4.1 ffmpeg")
  14. autotools.rawConfigure('\
  15. --prefix=/usr \
  16. --confdir=/usr/share/mplayer \
  17. --enable-dynamic-plugins \
  18. --disable-ossaudio \
  19. --enable-menu \
  20. --datadir=/usr/share/mplayer \
  21. --charset=UTF-8 \
  22. --language=en \
  23. --enable-gui')
  24. def build():
  25. autotools.make()
  26. def install():
  27. autotools.install("prefix=%(D)s/usr \
  28. BINDIR=%(D)s/usr/bin \
  29. LIBDIR=%(D)s/usr/lib \
  30. CONFDIR=%(D)s/usr/share/mplayer \
  31. DATADIR=%(D)s/usr/share/mplayer \
  32. MANDIR=%(D)s/usr/share/man" % {"D": get.installDIR()})
  33. # set the default skin for gui
  34. #shelltools.copytree("mplayer-1.2_pre37124/Blue-multilingual", "%s/usr/share/mplayer/skins/default" % get.installDIR())
  35. shelltools.copytree("../Clearlooks-multilingual", "%s/usr/share/mplayer/skins/default" % get.installDIR())
  36. # codecs conf, not something user will interact with
  37. pisitools.insinto("/etc/mplayer", "etc/*.conf")
  38. # example dvb conf
  39. #pisitools.insinto("/usr/share/mplayer", "etc/dvb-menu.conf")
  40. # just for fast access to conf
  41. #pisitools.dosym("/etc/mplayer.conf", "/usr/share/mplayer/mplayer.conf")
  42. #pisitools.dosym("/etc/mencoder.conf", "/usr/share/mplayer/mencoder.conf")
  43. # install docs, tools, examples
  44. pisitools.dodoc("AUTHORS", "Changelog", "README", "LICENSE")
  45. pisitools.insinto("/%s/%s/" % (get.docDIR(), get.srcNAME()), "TOOLS")
  46. pisitools.insinto("/%s/%s/" % (get.docDIR(), get.srcNAME()), "DOCS/tech")
  47. pythonmodules.fixCompiledPy("/usr/share/doc")