You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
974 B

  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. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=PyYAML
  9. PKG_VERSION:=3.11
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=http://pyyaml.org/download/pyyaml/
  13. PKG_MD5SUM:=f50e08ef0fe55178479d3a618efe21db
  14. PKG_LICENSE:=MIT
  15. PKG_LICENSE_FILES:=COPYING
  16. PKG_MAINTAINER:=Nicolas Thill <nico@openwrt.org>
  17. PKG_BUILD_DEPENDS:=python
  18. include $(INCLUDE_DIR)/package.mk
  19. $(call include_mk, python-package.mk)
  20. define Package/python-yaml
  21. SUBMENU:=Python
  22. SECTION:=lang
  23. CATEGORY:=Languages
  24. TITLE:=YAML parser and emitter for Python
  25. URL:=http://pyyaml.org/wiki/PyYAML
  26. DEPENDS:=+python +libyaml
  27. endef
  28. define Build/Compile
  29. $(call Build/Compile/PyMod,,\
  30. --with-libyaml install --prefix="$(PKG_INSTALL_DIR)/usr" \
  31. )
  32. endef
  33. $(eval $(call PyPackage,python-yaml))
  34. $(eval $(call BuildPackage,python-yaml))