summaryrefslogtreecommitdiffstats
path: root/master/endstop
blob: ab633d8f65446f847b991c1be96901e04cb9bfa7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
diff --git a/.config b/.config
index c316295..330d64e 100644
--- a/.config
+++ b/.config
@@ -2746,8 +2746,10 @@ CONFIG_PACKAGE_python-pydoc=m
 # CONFIG_PACKAGE_python-pyopenssl-src is not set
 # CONFIG_PACKAGE_python-pyptlib is not set
 # CONFIG_PACKAGE_python-pyptlib-src is not set
-# CONFIG_PACKAGE_python-pyserial is not set
+CONFIG_PACKAGE_python-pyserial=m
 # CONFIG_PACKAGE_python-pyserial-src is not set
+CONFIG_PACKAGE_python-pyusb=m
+# CONFIG_PACKAGE_python-pyusb-src is not set
 # CONFIG_PACKAGE_python-qrcode is not set
 # CONFIG_PACKAGE_python-requests is not set
 # CONFIG_PACKAGE_python-requests-oauthlib is not set
@@ -2863,6 +2865,8 @@ CONFIG_PACKAGE_python3-pydoc=m
 # CONFIG_PACKAGE_python3-pyopenssl-src is not set
 # CONFIG_PACKAGE_python3-pyserial is not set
 # CONFIG_PACKAGE_python3-pyserial-src is not set
+CONFIG_PACKAGE_python3-pyusb=m
+# CONFIG_PACKAGE_python3-pyusb-src is not set
 # CONFIG_PACKAGE_python3-service-identity is not set
 # CONFIG_PACKAGE_python3-service-identity-src is not set
 # CONFIG_PACKAGE_python3-setuptools is not set
@@ -5130,7 +5134,7 @@ CONFIG_PACKAGE_coreutils-sha512sum=m
 CONFIG_PACKAGE_dbus=m
 # CONFIG_PACKAGE_dbus-utils is not set
 # CONFIG_PACKAGE_device-observatory is not set
-# CONFIG_PACKAGE_dfu-util is not set
+CONFIG_PACKAGE_dfu-util=m
 CONFIG_PACKAGE_digitemp=m
 CONFIG_PACKAGE_digitemp-usb=m
 # CONFIG_PACKAGE_dmesg is not set
diff --git a/package/jmm/python-pyusb/Makefile b/package/jmm/python-pyusb/Makefile
new file mode 100644
index 0000000..9e68910
--- /dev/null
+++ b/package/jmm/python-pyusb/Makefile
@@ -0,0 +1,66 @@
+#
+# Copyright (C) 2015 OpenWrt.org
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=python-pyusb
+PKG_VERSION:=1.1.1
+PKG_RELEASE:=1
+
+PKG_SOURCE:=pyusb-$(PKG_VERSION).tar.gz
+PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/b9/8d/25c4e446a07e918eb39b5af25c4a83a89db95ae44e4ed5a46c3c53b0a4d6/
+PKG_HASH:=7d449ad916ce58aff60b89aae0b65ac130f289c24d6a5b7b317742eccffafc38
+
+PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-pyusb-$(PKG_VERSION)
+
+PKG_LICENSE:=BSD
+PKG_MAINTAINER:=Micke Prag <micke.prag@telldus.se>
+
+include $(INCLUDE_DIR)/package.mk
+include ../../feeds/packages/python/../python-package.mk
+include ../../feeds/packages/python3/../python3-package.mk
+
+PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
+
+define Package/python-pyusb/Default
+  SECTION:=lang-python
+  CATEGORY:=Languages
+  SUBMENU:=Python
+  URL:=https://pyusb.github.io/pyusb/
+endef
+
+define Package/python-pyusb
+$(call Package/python-pyusb/Default)
+  TITLE:=python-pyusb
+  DEPENDS:=+python-light +libusb-1.0 
+  VARIANT:=python
+endef
+
+define Package/python3-pyusb
+$(call Package/python-pyusb/Default)
+  TITLE:=python3-pyusb
+  DEPENDS:=+python3-light +libusb-1.0 
+  VARIANT:=python3
+endef
+
+define Package/python-pyusb/description
+meh
+endef
+
+define Package/python3-pyusb/description
+$(call Package/python-pyusb/description)
+.
+(Variant for Python3)
+endef
+
+$(eval $(call PyPackage,python-pyusb))
+$(eval $(call BuildPackage,python-pyusb))
+$(eval $(call BuildPackage,python-pyusb-src))
+
+$(eval $(call Py3Package,python3-pyusb))
+$(eval $(call BuildPackage,python3-pyusb))
+$(eval $(call BuildPackage,python3-pyusb-src))