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.19
  10. PKG_RELEASE:=2
  11. PKG_SOURCE:=ipaddress-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://pypi.python.org/packages/f0/ba/860a4a3e283456d6b7e2ab39ce5cf11a3490ee1a363652ac50abf9f0f5df
  13. PKG_HASH:=200d8686011d470b5e4de207d803445deee427455cd0cb7c982b68cf82524f81
  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-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))