You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

71 lines
2.1 KiB

  1. #
  2. # Copyright (C) 2015-2018 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=python-pyasn1-modules
  9. PKG_VERSION:=0.2.5
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=pyasn1-modules-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/p/pyasn1-modules
  13. PKG_HASH:=ef721f68f7951fab9b0404d42590f479e30d9005daccb1699b0a51bb4177db96
  14. PKG_LICENSE:=BSD-2-Clause
  15. PKG_LICENSE_FILES:=LICENSE.txt
  16. PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>, Alexandru Ardelean <ardeleanalex@gmail.com>
  17. PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-pyasn1-modules-$(PKG_VERSION)
  18. include $(INCLUDE_DIR)/package.mk
  19. include ../python-package.mk
  20. include ../python3-package.mk
  21. PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
  22. define Package/python-pyasn1-modules/Default
  23. SECTION:=lang
  24. CATEGORY:=Languages
  25. SUBMENU:=Python
  26. TITLE:=Collection of ASN.1 modules
  27. URL:=https://github.com/etingof/pyasn1-modules
  28. endef
  29. define Package/python-pyasn1-modules
  30. $(call Package/python-pyasn1-modules/Default)
  31. DEPENDS:= \
  32. +PACKAGE_python-pyasn1-modules:python-light \
  33. +PACKAGE_python-pyasn1-modules:python-pyasn1
  34. VARIANT:=python
  35. endef
  36. define Package/python3-pyasn1-modules
  37. $(call Package/python-pyasn1-modules/Default)
  38. DEPENDS:= \
  39. +PACKAGE_python3-pyasn1-modules:python3-light \
  40. +PACKAGE_python3-pyasn1-modules:python3-pyasn1
  41. VARIANT:=python3
  42. endef
  43. define Package/python-pyasn1-modules/description
  44. This is a small but growing collection of ASN.1 data structures
  45. expressed in Python terms using pyasn1 data model.
  46. endef
  47. define Package/python3-pyasn1-modules/description
  48. $(call Package/python-pyasn1-modules/description)
  49. .
  50. (Variant for Python3).
  51. endef
  52. $(eval $(call PyPackage,python-pyasn1-modules))
  53. $(eval $(call BuildPackage,python-pyasn1-modules))
  54. $(eval $(call BuildPackage,python-pyasn1-modules-src))
  55. $(eval $(call Py3Package,python3-pyasn1-modules))
  56. $(eval $(call BuildPackage,python3-pyasn1-modules))
  57. $(eval $(call BuildPackage,python3-pyasn1-modules-src))