actions.py 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  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 get
  9. def setup():
  10. #shelltools.system("sed -i -e '/SystemdService/d' obexd/src/org.bluez.obex.service.in")
  11. pisitools.dosed("obexd/src/org.bluez.obex.service.in", "SystemdService", deleteLine=True)
  12. autotools.autoreconf("-fi")
  13. autotools.configure("--prefix=/usr \
  14. --sysconfdir=/etc \
  15. --localstatedir=/var \
  16. --libexecdir=/usr/libexec/ \
  17. --enable-sixaxis \
  18. --enable-experimental \
  19. --disable-android \
  20. --enable-datafiles \
  21. --enable-optimization \
  22. --enable-pie \
  23. --enable-threads \
  24. --enable-library \
  25. --enable-tools \
  26. --enable-manpages \
  27. --enable-monitor \
  28. --enable-udev \
  29. --enable-test \
  30. --disable-systemd")
  31. pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
  32. def build():
  33. autotools.make()
  34. def install():
  35. autotools.rawInstall("DESTDIR=%s install-libexecPROGRAMS install-dbussessionbusDATA install-dbussystembusDATA install-dbusDATA install-man8" % get.installDIR())
  36. # Install conf files
  37. for i in ["profiles/input", "profiles/network" ,"src"]:
  38. pisitools.insinto("/etc/bluetooth", "%s/*.conf" % (i))
  39. # Simple test tools
  40. for i in ["bluezutils.py",
  41. "dbusdef.py",
  42. "ftp-client",
  43. "list-devices",
  44. "map-client",
  45. "monitor-bluetooth",
  46. "opp-client",
  47. "pbap-client",
  48. "sap_client.py",
  49. "simple-agent",
  50. "simple-endpoint",
  51. "simple-player",
  52. "test-adapter",
  53. "test-alert",
  54. "test-cyclingspeed",
  55. "test-device",
  56. "test-discovery",
  57. "test-health",
  58. "test-health-sink",
  59. "test-heartrate",
  60. "test-hfp",
  61. "test-manager",
  62. "test-nap",
  63. "test-network",
  64. "test-profile",
  65. "test-proximity",
  66. "test-sap-server",
  67. "test-thermometer"]:
  68. pisitools.dobin("test/%s" % i)
  69. # for i in
  70. # pisitools.dodoc("doc/%s" % i)
  71. # Install documents
  72. pisitools.dodoc("AUTHORS", "ChangeLog", "README")