Merge pull request #8361 from jandelgado/add_udptunnel_package
[feed/packages.git] / lang / python / text-unidecode / Makefile
1 #
2 # Copyright (C) 2019 CZ.NIC, z. s. p. o. (https://www.nic.cz/)
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:=python-text-unidecode
11 PKG_VERSION:=1.2
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=text-unidecode-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/t/text-unidecode/
16 PKG_HASH:=5a1375bb2ba7968740508ae38d92e1f889a0832913cb1c447d5e2046061a396d
17
18 PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-text-unidecode-$(PKG_VERSION)
19
20 PKG_LICENSE:=Artistic-1.0-cl8
21 PKG_LICENSE_FILES:=LICENSE
22 PKG_MAINTAINER:=Josef Schlehofer <josef.schlehofer@nic.cz>
23
24 include $(INCLUDE_DIR)/package.mk
25 include ../python-package.mk
26 include ../python3-package.mk
27
28 PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
29
30 define Package/python-text-unidecode/Default
31 SECTION:=lang
32 CATEGORY:=Languages
33 SUBMENU:=Python
34 TITLE:=The most basic Text::Unidecode port
35 URL:=https://github.com/kmike/text-unidecode/
36 endef
37
38 define Package/python-text-unidecode
39 $(call Package/python-text-unidecode/Default)
40 DEPENDS:= \
41 +PACKAGE_python-text-unidecode:python-light
42 VARIANT:=python
43 endef
44
45 define Package/python3-text-unidecode
46 $(call Package/python-text-unidecode/Default)
47 DEPENDS:= \
48 +PACKAGE_python3-text-unidecode:python3-light
49 VARIANT:=python3
50 endef
51
52 define Package/python-text-unidecode/description
53 text-unidecode is the most basic port of the Text::Unidecode Perl library.
54 endef
55
56 define Package/python3-text-unidecode/description
57 $(call Package/python-text-unidecode/description)
58 .
59 (Variant for Python3)
60 endef
61
62 $(eval $(call PyPackage,python-text-unidecode))
63 $(eval $(call BuildPackage,python-text-unidecode))
64 $(eval $(call BuildPackage,python-text-unidecode-src))
65
66 $(eval $(call Py3Package,python3-text-unidecode))
67 $(eval $(call BuildPackage,python3-text-unidecode))
68 $(eval $(call BuildPackage,python3-text-unidecode-src))