2 # Copyright (C) 2008-2015 OpenWrt.org
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:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://pyyaml.org/download/pyyaml/
16 PKG_MD5SUM:=f50e08ef0fe55178479d3a618efe21db
19 PKG_LICENSE_FILES:=COPYING
20 PKG_MAINTAINER:=Nicolas Thill <nico@openwrt.org>
22 PKG_BUILD_DEPENDS:=python
24 include $(INCLUDE_DIR)/package.mk
25 $(call include_mk, python-package.mk)
27 define Package/python-yaml
31 TITLE:=YAML parser and emitter for Python
32 URL:=http://pyyaml.org/wiki/PyYAML
33 DEPENDS:=+python +libyaml
37 $(call Build/Compile/PyMod,,\
38 --with-libyaml install --prefix="$(PKG_INSTALL_DIR)/usr" \
42 $(eval $(call PyPackage,python-yaml))
43 $(eval $(call BuildPackage,python-yaml))