From c839e238791f6c254315d4fc58efc09880b11529 Mon Sep 17 00:00:00 2001 From: Jeffery To Date: Thu, 12 Nov 2015 13:45:55 +0800 Subject: [PATCH 1/2] python-pyasn1: new package From the README: This is an implementation of ASN.1 types and codecs in Python programming language. It has been first written to support particular protocol (SNMP) but then generalized to be suitable for a wide range of protocols based on ASN.1 specification. Signed-off-by: Jeffery To --- lang/python-pyasn1/Makefile | 46 +++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 lang/python-pyasn1/Makefile diff --git a/lang/python-pyasn1/Makefile b/lang/python-pyasn1/Makefile new file mode 100644 index 000000000..f82d9190d --- /dev/null +++ b/lang/python-pyasn1/Makefile @@ -0,0 +1,46 @@ +# +# 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:=pyasn1 +PKG_VERSION:=0.1.9 +PKG_RELEASE:=1 + +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz +PKG_SOURCE_URL:=https://pypi.python.org/packages/source/p/pyasn1 +PKG_MD5SUM:=f00a02a631d4016818659d1cc38d229a + +PKG_LICENSE:=BSD-2-Clause +PKG_LICENSE_FILES:=LICENSE.txt +PKG_MAINTAINER:=Jeffery To + +include $(INCLUDE_DIR)/package.mk +$(call include_mk, python-package.mk) + +define Package/python-pyasn1 + SECTION:=lang + CATEGORY:=Languages + SUBMENU:=Python + TITLE:=python-pyasn1 + URL:=http://pyasn1.sourceforge.net/ + DEPENDS:=+python-light +endef + +define Package/python-pyasn1/description +This is an implementation of ASN.1 types and codecs in Python programming +language. It has been first written to support particular protocol (SNMP) +but then generalized to be suitable for a wide range of protocols +based on ASN.1 specification. +endef + +define Build/Compile + $(call Build/Compile/PyMod,,install --prefix=/usr --root=$(PKG_INSTALL_DIR)) +endef + +$(eval $(call PyPackage,python-pyasn1)) +$(eval $(call BuildPackage,python-pyasn1)) From 24782a872aa52b98b352d5ac3e2f270d931c0c0b Mon Sep 17 00:00:00 2001 From: Jeffery To Date: Fri, 13 Nov 2015 16:26:56 +0800 Subject: [PATCH 2/2] python-pyasn1: use setuptools Signed-off-by: Jeffery To --- lang/python-pyasn1/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lang/python-pyasn1/Makefile b/lang/python-pyasn1/Makefile index f82d9190d..07549db98 100644 --- a/lang/python-pyasn1/Makefile +++ b/lang/python-pyasn1/Makefile @@ -15,6 +15,8 @@ PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=https://pypi.python.org/packages/source/p/pyasn1 PKG_MD5SUM:=f00a02a631d4016818659d1cc38d229a +PKG_BUILD_DEPENDS:=python python-setuptools + PKG_LICENSE:=BSD-2-Clause PKG_LICENSE_FILES:=LICENSE.txt PKG_MAINTAINER:=Jeffery To