added python package <PyYaml>
[openwrt/svn-archive/archive.git] / lang / pyyaml / Makefile
1 #
2 # Copyright (C) 2008 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id: Makefile 13829 2009-01-03 00:28:00Z mirko $
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=PyYAML
12 PKG_VERSION:=3.08
13 PKG_RELEASE:=1
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://pyyaml.org/download/pyyaml/
16
17 PKG_BUILD_DEPENDS:=python
18
19 include $(INCLUDE_DIR)/package.mk
20 -include $(if $(DUMP),,$(STAGING_DIR)/mk/python-package.mk)
21
22 define Package/pyyaml
23 SUBMENU:=Python
24 SECTION:=lang
25 CATEGORY:=Languages
26 TITLE:=pyyaml
27 URL:=http://pyyaml.org
28 DEPENDS:=python-core
29 endef
30
31 define Package/pyyaml/description
32 yaml python bindings
33 endef
34
35 define Build/Compile
36 $(call Build/Compile/PyMod,,install --prefix="$(PKG_INSTALL_DIR)/usr")
37 endef
38
39 define Package/pyyaml/install
40 $(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)
41 $(CP) \
42 $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/* \
43 $(1)$(PYTHON_PKG_DIR)
44 endef
45
46 $(eval $(call BuildPackage,pyyaml))