Merge pull request #8518 from neheb/i
[feed/packages.git] / lang / python / ruamel-yaml / 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:=ruamel-yaml
11 PKG_VERSION:=0.15.94
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=ruamel.yaml-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/r/ruamel.yaml/
16 PKG_HASH:=0939bcb399ad037ef903d74ccf2f8a074f06683bc89133ad19305067d34487c8
17
18 PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-ruamel.yaml-$(PKG_VERSION)
19
20 PKG_MAINTAINER:=Josef Schlehofer <josef.schlehofer@nic.cz>
21 PKG_LICENSE:=MIT
22 PKG_LICENSE_FILES:=LICENSE
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/ruamel-yaml/Default
31 SECTION:=lang
32 CATEGORY:=Languages
33 SUBMENU:=Python
34 TITLE:=YAML 1.2 loader/dumper package for Python
35 URL:=https://bitbucket.org/ruamel/yaml
36 endef
37
38 define Package/python-ruamel-yaml
39 $(call Package/ruamel-yaml/Default)
40 DEPENDS:= \
41 +PACKAGE_python-ruamel-yaml:python-light
42 VARIANT:=python
43 endef
44
45 define Package/python3-ruamel-yaml
46 $(call Package/ruamel-yaml/Default)
47 DEPENDS:= \
48 +PACKAGE_python3-ruamel-yaml:python3-light
49 VARIANT:=python3
50 endef
51
52 define Package/ruamel-yaml/description
53 ruamel-yaml is a YAML parser/emitter that supports roundtrip preservation of comments, seq/map flow style, and map key order
54 endef
55
56 define Package/python3-ruamel-yaml/description
57 $(call Package/ruamel-yaml/description)
58 .
59 (Variant for Python3)
60 endef
61
62 $(eval $(call PyPackage,python-ruamel-yaml))
63 $(eval $(call BuildPackage,python-ruamel-yaml))
64 $(eval $(call BuildPackage,python-ruamel-yaml-src))
65
66 $(eval $(call Py3Package,python3-ruamel-yaml))
67 $(eval $(call BuildPackage,python3-ruamel-yaml))
68 $(eval $(call BuildPackage,python3-ruamel-yaml-src))