actions.py 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  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 autotools
  7. from pisi.actionsapi import pisitools
  8. from pisi.actionsapi import shelltools
  9. from pisi.actionsapi import get
  10. def setup():
  11. # pisitools.dosed("configure.ac", "rst2man", "rst2man_3")
  12. #shelltools.system("sed -i -e '/SystemdService/d' obexd/src/org.bluez.obex.service.in")
  13. pisitools.dosed("obexd/src/org.bluez.obex.service.in", "SystemdService", deleteLine=True)
  14. autotools.autoreconf("-fiv")
  15. autotools.configure("--localstatedir=/var \
  16. --enable-sixaxis \
  17. --enable-experimental \
  18. --enable-cups \
  19. --enable-datafiles \
  20. --enable-optimization \
  21. --enable-pie \
  22. --enable-threads \
  23. --enable-library \
  24. --enable-tools \
  25. --enable-manpages \
  26. --enable-monitor \
  27. --enable-btpclient \
  28. --enable-midi \
  29. --enable-udev \
  30. --enable-mesh \
  31. --enable-hid2hci \
  32. --enable-nfc \
  33. --enable-test \
  34. --enable-testing \
  35. --enable-deprecated \
  36. --disable-systemd")
  37. pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
  38. def build():
  39. autotools.make()
  40. def install():
  41. autotools.rawInstall("install-libLTLIBRARIES install-binPROGRAMS install-cupsPROGRAMS install-exec install-pkglibexecPROGRAMS install-pkgincludeHEADERS install-pluginLTLIBRARIES install-udevPROGRAMS install-dbussessionbusDATA install-dbussystembusDATA install-dbusDATA install-man8 DESTDIR=%s" % get.installDIR())
  42. pisitools.dobin("tools/btpclient")
  43. # Install conf files
  44. for i in ["profiles/input", "profiles/network" ,"src"]:
  45. pisitools.insinto("/etc/bluetooth", "%s/*.conf" % (i))
  46. # Simple test tools
  47. for i in ["bluezutils.py",
  48. "dbusdef.py",
  49. "example-advertisement",
  50. "example-gatt-client",
  51. "example-gatt-server",
  52. "ftp-client",
  53. "list-devices",
  54. "map-client",
  55. "monitor-bluetooth",
  56. "opp-client",
  57. "pbap-client",
  58. "sap_client.py",
  59. "simple-agent",
  60. "simple-endpoint",
  61. "simple-player",
  62. "test-adapter",
  63. "test-device",
  64. "test-discovery",
  65. "test-gatt-profile",
  66. "test-health",
  67. "test-health-sink",
  68. "test-hfp",
  69. "test-manager",
  70. "test-nap",
  71. "test-network",
  72. "test-profile",
  73. "test-sap-server"]:
  74. pisitools.dobin("test/%s" % i)
  75. # for i in
  76. # pisitools.dodoc("doc/%s" % i)
  77. # Install documents
  78. pisitools.dodoc("AUTHORS", "ChangeLog", "README")