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.

69 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.1
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=pyasn1-modules-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://pypi.python.org/packages/ab/76/36ab0e099e6bd27ed95b70c2c86c326d3affa59b9b535c63a2f892ac9f45
  13. PKG_HASH:=af00ea8f2022b6287dc375b2c70f31ab5af83989fc6fe9eacd4976ce26cd7ccc
  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. $(call include_mk, python-package.mk)
  20. $(call include_mk, 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 Py3Package,python3-pyasn1-modules))
  56. $(eval $(call BuildPackage,python3-pyasn1-modules))