Makefile (1259B)
1 # 2 # Copyright (C) 2015-2016 OpenWrt.org 3 # 4 # This is free software, licensed under the GNU General Public License v2. 5 # See /LICENSE for more information. 6 # 7 8 include $(TOPDIR)/rules.mk 9 10 PKG_NAME:=idna 11 PKG_VERSION:=2.1 12 PKG_RELEASE:=1 13 14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 15 PKG_SOURCE_URL:=https://pypi.python.org/packages/source/i/idna 16 PKG_MD5SUM:=f6473caa9c5e0cc1ad3fd5d04c3c114b 17 18 PKG_BUILD_DEPENDS:=python python-setuptools 19 20 PKG_LICENSE:=BSD-3-Clause 21 PKG_LICENSE_FILES:=LICENSE.rst 22 PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com> 23 24 include $(INCLUDE_DIR)/package.mk 25 $(call include_mk, python-package.mk) 26 27 define Package/python-idna 28 SECTION:=lang 29 CATEGORY:=Languages 30 SUBMENU:=Python 31 TITLE:=python-idna 32 URL:=https://github.com/kjd/idna 33 DEPENDS:=+python-light 34 endef 35 36 define Package/python-idna/description 37 A library to support the Internationalised Domain Names in Applications 38 (IDNA) protocol as specified in RFC 5891. This version of the protocol 39 is often referred to as "IDNA2008" and can produce different results 40 from the earlier standard from 2003. 41 endef 42 43 define Build/Compile 44 $(call Build/Compile/PyMod,,install --prefix=/usr --root=$(PKG_INSTALL_DIR)) 45 endef 46 47 $(eval $(call PyPackage,python-idna)) 48 $(eval $(call BuildPackage,python-idna))