nuke $Id$ in /packages as well
[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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=PyYAML
11 PKG_VERSION:=3.08
12 PKG_RELEASE:=1
13 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
14 PKG_SOURCE_URL:=http://pyyaml.org/download/pyyaml/
15
16 PKG_BUILD_DEPENDS:=python
17
18 include $(INCLUDE_DIR)/package.mk
19 -include $(if $(DUMP),,$(STAGING_DIR)/mk/python-package.mk)
20
21 define Package/pyyaml
22 SUBMENU:=Python
23 SECTION:=lang
24 CATEGORY:=Languages
25 TITLE:=pyyaml
26 URL:=http://pyyaml.org
27 DEPENDS:=+python +libyaml
28 endef
29
30 define Package/pyyaml/description
31 yaml python bindings
32 endef
33
34 define Build/Compile
35 $(call Build/Compile/PyMod,,--with-libyaml install --prefix="$(PKG_INSTALL_DIR)/usr")
36 endef
37
38 define Package/pyyaml/install
39 $(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)
40 $(CP) \
41 $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/* \
42 $(1)$(PYTHON_PKG_DIR)
43 endef
44
45 $(eval $(call BuildPackage,pyyaml))