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.

48 lines
1.3 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-ipaddress
  9. PKG_VERSION:=1.0.22
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=ipaddress-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/i/ipaddress
  13. PKG_HASH:=b146c751ea45cad6188dd6cf2d9b757f6f4f8d6ffb96a023e6f2e26eea02a72c
  14. PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-ipaddress-$(PKG_VERSION)
  15. PKG_LICENSE:=Python-2.0
  16. PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>
  17. include $(INCLUDE_DIR)/package.mk
  18. include ../python-package.mk
  19. PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
  20. define Package/python-ipaddress/Default
  21. SECTION:=lang
  22. CATEGORY:=Languages
  23. SUBMENU:=Python
  24. URL:=https://github.com/phihag/ipaddress
  25. endef
  26. define Package/python-ipaddress
  27. $(call Package/python-ipaddress/Default)
  28. TITLE:=Python 3.3+'s ipaddress
  29. DEPENDS:=+PACKAGE_python-ipaddress:python-light
  30. VARIANT:=python
  31. endef
  32. define Package/python-ipaddress/description
  33. Python 3.3+'s ipaddress for Python 2.6, 2.7, 3.2.
  34. endef
  35. $(eval $(call PyPackage,python-ipaddress))
  36. $(eval $(call BuildPackage,python-ipaddress))
  37. $(eval $(call BuildPackage,python-ipaddress-src))