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.

72 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.4
  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:=a52090e8c5841ebbf08ae455146792d9ef3e8445b21055d3a3b7ed9c712b7c7c
  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. URL:=http://sourceforge.net/projects/pyasn1/
  27. endef
  28. define Package/python-pyasn1-modules
  29. $(call Package/python-pyasn1-modules/Default)
  30. TITLE:=python-pyasn1-modules
  31. VARIANT:=python
  32. DEPENDS:= \
  33. +PACKAGE_python-pyasn1-modules:python-light \
  34. +PACKAGE_python-pyasn1-modules:python-pyasn1
  35. endef
  36. define Package/python3-pyasn1-modules
  37. $(call Package/python-pyasn1-modules/Default)
  38. TITLE:=python3-pyasn1-modules
  39. VARIANT:=python3
  40. DEPENDS:= \
  41. +PACKAGE_python3-pyasn1-modules:python3-light \
  42. +PACKAGE_python3-pyasn1-modules:python3-pyasn1
  43. endef
  44. define Package/python-pyasn1-modules/description
  45. This is a small but growing collection of ASN.1 data structures
  46. expressed in Python terms using pyasn1 data model.
  47. endef
  48. define Package/python3-pyasn1-modules/description
  49. $(call Package/python-pyasn1-modules/description)
  50. .
  51. (Variant for Python3).
  52. endef
  53. $(eval $(call PyPackage,python-pyasn1-modules))
  54. $(eval $(call BuildPackage,python-pyasn1-modules))
  55. $(eval $(call BuildPackage,python-pyasn1-modules-src))
  56. $(eval $(call Py3Package,python3-pyasn1-modules))
  57. $(eval $(call BuildPackage,python3-pyasn1-modules))
  58. $(eval $(call BuildPackage,python3-pyasn1-modules-src))