浏览代码

python-ipaddress: new package

From the README:

Python 3.3+'s ipaddress for Python 2.6, 2.7, 3.2.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
Jeffery To 9 年前
父节点
当前提交
08b2b6f93b
共有 1 个文件被更改,包括 42 次插入0 次删除
  1. 42
    0
      lang/python-ipaddress/Makefile

+ 42
- 0
lang/python-ipaddress/Makefile 查看文件

@@ -0,0 +1,42 @@
1
+#
2
+# Copyright (C) 2015 OpenWrt.org
3
+#
4
+# This is free software, licensed under the GNU General Public License v2.
5
+# See /LICENSE for more information.
6
+#
7
+
8
+include $(TOPDIR)/rules.mk
9
+
10
+PKG_NAME:=ipaddress
11
+PKG_VERSION:=1.0.15
12
+PKG_RELEASE:=1
13
+
14
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15
+PKG_SOURCE_URL:=https://pypi.python.org/packages/source/i/ipaddress
16
+PKG_MD5SUM:=12915e923b738107e47827478d553ba1
17
+
18
+PKG_LICENSE:=Python-2.0
19
+PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>
20
+
21
+include $(INCLUDE_DIR)/package.mk
22
+$(call include_mk, python-package.mk)
23
+
24
+define Package/python-ipaddress
25
+	SECTION:=lang
26
+	CATEGORY:=Languages
27
+	SUBMENU:=Python
28
+	TITLE:=python-ipaddress
29
+	URL:=https://github.com/phihag/ipaddress
30
+	DEPENDS:=+python-light
31
+endef
32
+
33
+define Package/python-ipaddress/description
34
+Python 3.3+'s ipaddress for Python 2.6, 2.7, 3.2.
35
+endef
36
+
37
+define Build/Compile
38
+	$(call Build/Compile/PyMod,,install --prefix=/usr --root=$(PKG_INSTALL_DIR))
39
+endef
40
+
41
+$(eval $(call PyPackage,python-ipaddress))
42
+$(eval $(call BuildPackage,python-ipaddress))