From: Scott V. Kamp Date: Sat, 13 Mar 2010 02:49:08 +0000 (+0000) Subject: [patchteam] New Package - pyxdg - required for deluge X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=150eed6af0fc9255019e04ab43a0c5708e006a62;p=openwrt%2Fsvn-archive%2Farchive.git [patchteam] New Package - pyxdg - required for deluge Signed off by alexander@sulfrian.net SVN-Revision: 20171 --- diff --git a/lang/pyxdg/Makefile b/lang/pyxdg/Makefile new file mode 100644 index 0000000000..1eb255c9ba --- /dev/null +++ b/lang/pyxdg/Makefile @@ -0,0 +1,47 @@ +# +# Copyright (C) 2008 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=pyxdg +PKG_VERSION:=0.18 +PKG_RELEASE:=1 + +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz +PKG_SOURCE_URL:=http://people.freedesktop.org/~lanius/ +PKG_MD5SUM:=076b57722e91dab8ab83028c6ef9dcea + +PKG_BUILD_DEPENDS:=python + +include $(INCLUDE_DIR)/package.mk +$(call include_mk, python-package.mk) + +define Package/pyxdg + SUBMENU:=Python + SECTION:=lang + CATEGORY:=Languages + TITLE:=pyxdg + URL:=http://freedesktop.org/wiki/Software/pyxdg + DEPENDS:=+python +endef + +define Package/pyxdg/description + A Python module to deal with freedesktop.org specifications +endef + +define Build/Compile + $(call Build/Compile/PyMod,,install --prefix="$(PKG_INSTALL_DIR)/usr") +endef + +define Package/pyxdg/install + $(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR) + $(CP) \ + $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/* \ + $(1)$(PYTHON_PKG_DIR) +endef + +$(eval $(call BuildPackage,pyxdg))