actions.py 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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. def setup():
  11. autotools.autoreconf("-fiv")
  12. autotools.configure("\
  13. --with-html-dir=/usr/share/doc/%s/html \
  14. --with-temp-mount-dir=/run/libgpod \
  15. --without-hal \
  16. --with-python \
  17. --without-mono \
  18. --disable-gtk-doc \
  19. --disable-static \
  20. --enable-udev \
  21. " % get.srcNAME())
  22. pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
  23. def build():
  24. autotools.make()
  25. def install():
  26. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  27. # For temporary mounts
  28. pisitools.dodir("/run/libgpod")
  29. # rm "/usr/lib/pkgconfig/libgpod-sharp.pc"
  30. pisitools.remove("/usr/lib/pkgconfig/libgpod-sharp.pc")
  31. pisitools.dodoc("AUTHORS", "ChangeLog", "COPYING", "NEWS", "README*")