[patchteam] - New Package - Mako python template language
[openwrt/svn-archive/archive.git] / lang / pyxdg / 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:=pyxdg
11 PKG_VERSION:=0.18
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://people.freedesktop.org/~lanius/
16 PKG_MD5SUM:=076b57722e91dab8ab83028c6ef9dcea
17
18 PKG_BUILD_DEPENDS:=python
19
20 include $(INCLUDE_DIR)/package.mk
21 $(call include_mk, python-package.mk)
22
23 define Package/pyxdg
24 SUBMENU:=Python
25 SECTION:=lang
26 CATEGORY:=Languages
27 TITLE:=pyxdg
28 URL:=http://freedesktop.org/wiki/Software/pyxdg
29 DEPENDS:=+python
30 endef
31
32 define Package/pyxdg/description
33 A Python module to deal with freedesktop.org specifications
34 endef
35
36 define Build/Compile
37 $(call Build/Compile/PyMod,,install --prefix="$(PKG_INSTALL_DIR)/usr")
38 endef
39
40 define Package/pyxdg/install
41 $(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)
42 $(CP) \
43 $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/* \
44 $(1)$(PYTHON_PKG_DIR)
45 endef
46
47 $(eval $(call BuildPackage,pyxdg))