2 # Copyright (C) 2019 CZ.NIC, z. s. p. o. (https://www.nic.cz/)
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
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
18 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(BUILD_VARIANT
)-ruamel.yaml-
$(PKG_VERSION
)
20 PKG_MAINTAINER
:=Josef Schlehofer
<josef.schlehofer@nic.cz
>
22 PKG_LICENSE_FILES
:=LICENSE
24 include $(INCLUDE_DIR
)/package.mk
25 include ..
/python-package.mk
26 include ..
/python3-package.mk
28 PKG_UNPACK
:=$(HOST_TAR
) -C
$(PKG_BUILD_DIR
) --strip-components
=1 -xzf
$(DL_DIR
)/$(PKG_SOURCE
)
30 define Package
/ruamel-yaml
/Default
34 TITLE
:=YAML
1.2 loader
/dumper package for Python
35 URL
:=https
://bitbucket.org
/ruamel
/yaml
38 define Package
/python-ruamel-yaml
39 $(call Package
/ruamel-yaml
/Default
)
41 +PACKAGE_python-ruamel-yaml
:python-light
45 define Package
/python3-ruamel-yaml
46 $(call Package
/ruamel-yaml
/Default
)
48 +PACKAGE_python3-ruamel-yaml
:python3-light
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
56 define Package
/python3-ruamel-yaml
/description
57 $(call Package
/ruamel-yaml
/description
)
62 $(eval
$(call PyPackage
,python-ruamel-yaml
))
63 $(eval
$(call BuildPackage
,python-ruamel-yaml
))
64 $(eval
$(call BuildPackage
,python-ruamel-yaml-src
))
66 $(eval
$(call Py3Package
,python3-ruamel-yaml
))
67 $(eval
$(call BuildPackage
,python3-ruamel-yaml
))
68 $(eval
$(call BuildPackage
,python3-ruamel-yaml-src
))