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
1.8 KiB

  1. #
  2. # Copyright (C) 2007-2017 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:=django-picklefield
  9. PKG_VERSION:=2.1.1
  10. PKG_RELEASE:=1
  11. PYPI_NAME:=$(PKG_NAME)
  12. PKG_HASH:=67a5e156343e3b032cac2f65565f0faa81635a99c7da74b0f07a0f5db467b646
  13. PKG_MAINTAINER:=Alexandru Ardelean <ardeleanalex@gmail.com>
  14. PKG_LICENSE:=MIT
  15. PKG_LICENSE_FILES:=LICENSE
  16. include ../pypi.mk
  17. include $(INCLUDE_DIR)/package.mk
  18. include ../python-package.mk
  19. include ../python3-package.mk
  20. PYTHON_PKG_SETUP_VARS:= \
  21. PKG_VERSION="$(PKG_VERSION)"
  22. PYTHON3_PKG_SETUP_VARS:= \
  23. PKG_VERSION="$(PKG_VERSION)"
  24. define Package/django-picklefield/Default
  25. SUBMENU:=Python
  26. SECTION:=lang
  27. CATEGORY:=Languages
  28. TITLE:=Pickled object field for Django
  29. URL:=https://github.com/gintas/django-picklefield/
  30. endef
  31. define Package/python-django-picklefield
  32. $(call Package/django-picklefield/Default)
  33. DEPENDS:= \
  34. +PACKAGE_python-django-picklefield:python \
  35. python-django1
  36. VARIANT:=python
  37. MDEPENDS:=python-django1
  38. endef
  39. define Package/python-django-picklefield/description
  40. Pickled object field for Django
  41. endef
  42. define Package/python3-django-picklefield
  43. $(call Package/django-picklefield/Default)
  44. DEPENDS:= \
  45. +PACKAGE_python3-django-picklefield:python3 \
  46. +PACKAGE_python3-django-picklefield:python3-django1
  47. VARIANT:=python3
  48. endef
  49. define Package/python3-django-picklefield/description
  50. $(call Package/python-django-picklefield/description)
  51. .
  52. (Variant for Python3)
  53. endef
  54. $(eval $(call PyPackage,python-django-picklefield))
  55. $(eval $(call BuildPackage,python-django-picklefield))
  56. $(eval $(call BuildPackage,python-django-picklefield-src))
  57. $(eval $(call Py3Package,python3-django-picklefield))
  58. $(eval $(call BuildPackage,python3-django-picklefield))
  59. $(eval $(call BuildPackage,python3-django-picklefield-src))