Browse Source

python-pyasn1: bump to version 0.2.3 and add python3 variant

And add myself as 2nd maintainer.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
lilik-openwrt-22.03
Alexandru Ardelean 7 years ago
parent
commit
990ddfffe2
1 changed files with 35 additions and 16 deletions
  1. +35
    -16
      lang/python/python-pyasn1/Makefile

+ 35
- 16
lang/python/python-pyasn1/Makefile View File

@ -7,30 +7,45 @@
include $(TOPDIR)/rules.mk include $(TOPDIR)/rules.mk
PKG_NAME:=pyasn1
PKG_VERSION:=0.1.9
PKG_NAME:=python-pyasn1
PKG_VERSION:=0.2.3
PKG_RELEASE:=1 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_BUILD_DEPENDS:=python python-setuptools
PKG_SOURCE:=pyasn1-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://pypi.python.org/packages/69/17/eec927b7604d2663fef82204578a0056e11e0fc08d485fdb3b6199d9b590
PKG_HASH:=738c4ebd88a718e700ee35c8d129acce2286542daa80a82823a7073644f706ad
PKG_LICENSE:=BSD-2-Clause PKG_LICENSE:=BSD-2-Clause
PKG_LICENSE_FILES:=LICENSE.txt PKG_LICENSE_FILES:=LICENSE.txt
PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>
PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>, Alexandru Ardelean <ardeleanalex@gmail.com>
PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-pyasn1-$(PKG_VERSION)
include $(INCLUDE_DIR)/package.mk include $(INCLUDE_DIR)/package.mk
$(call include_mk, python-package.mk) $(call include_mk, python-package.mk)
$(call include_mk, python3-package.mk)
PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
define Package/python-pyasn1/Default
SECTION:=lang
CATEGORY:=Languages
SUBMENU:=Python
URL:=http://pyasn1.sourceforge.net/
endef
define Package/python-pyasn1 define Package/python-pyasn1
SECTION:=lang
CATEGORY:=Languages
SUBMENU:=Python
TITLE:=python-pyasn1
URL:=http://pyasn1.sourceforge.net/
DEPENDS:=+python-light
$(call Package/python-pyasn1/Default)
TITLE:=python-pyasn1
DEPENDS:=+PACKAGE_python-pyasn1:python-light
VARIANT:=python
endef
define Package/python3-pyasn1
$(call Package/python-pyasn1/Default)
TITLE:=python3-pyasn1
DEPENDS:=+PACKAGE_python3-pyasn1:python3-light
VARIANT:=python3
endef endef
define Package/python-pyasn1/description define Package/python-pyasn1/description
@ -40,9 +55,13 @@ but then generalized to be suitable for a wide range of protocols
based on ASN.1 specification. based on ASN.1 specification.
endef endef
define Build/Compile
$(call Build/Compile/PyMod,,install --prefix=/usr --root=$(PKG_INSTALL_DIR))
define Package/python3-pyasn1/description
$(call Package/python-pyasn1/description)
.
(Variant for Python3)
endef endef
$(eval $(call PyPackage,python-pyasn1)) $(eval $(call PyPackage,python-pyasn1))
$(eval $(call BuildPackage,python-pyasn1)) $(eval $(call BuildPackage,python-pyasn1))
$(eval $(call Py3Package,python3-pyasn1))
$(eval $(call BuildPackage,python3-pyasn1))

Loading…
Cancel
Save