tang: use sbin instead of libexec
[feed/packages.git] / lang / python / python-yaml / Makefile
1 #
2 # Copyright (C) 2008-2015 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:=python-yaml
11 PKG_VERSION:=6.0
12 PKG_RELEASE:=2
13
14 PYPI_NAME:=PyYAML
15 PKG_HASH:=68fb519c14306fec9720a2a5b45bc9f0c8d1b9c72adf45c37baedfcd949c35a2
16
17 PKG_MAINTAINER:=Josef Schlehofer <josef.schlehofer@nic.cz>
18 PKG_LICENSE:=MIT
19 PKG_LICENSE_FILES:=LICENSE
20 PKG_CPE_ID:=cpe:/a:pyyaml_project:pyyaml
21
22 PKG_BUILD_DEPENDS:=python-cython/host
23
24 include ../pypi.mk
25 include $(INCLUDE_DIR)/package.mk
26 include ../python3-package.mk
27
28 define Package/python3-yaml
29 SECTION:=lang
30 CATEGORY:=Languages
31 SUBMENU:=Python
32 TITLE:=YAML parser and emitter for Python
33 URL:=https://github.com/yaml/pyyaml
34 DEPENDS:=+libyaml +python3-light
35 endef
36
37 define Package/python3-yaml/description
38 PyYAML is a YAML parser and emitter for the Python programming language.
39 endef
40
41 PYTHON3_PKG_SETUP_GLOBAL_ARGS:=--with-libyaml
42 PYTHON3_PKG_SETUP_ARGS:=
43
44 $(eval $(call Py3Package,python3-yaml))
45 $(eval $(call BuildPackage,python3-yaml))
46 $(eval $(call BuildPackage,python3-yaml-src))