Add python-thor package. This package is a prerequisite for mediaproxy package. 
Thor is a Python library for evented IO.

Signed-off-by: Jiri Slachta <slac...@cesnet.cz>
Index: lang/python-thor/patches/001-fix-setup.patch
===================================================================
--- lang/python-thor/patches/001-fix-setup.patch        (revision 0)
+++ lang/python-thor/patches/001-fix-setup.patch        (revision 0)
@@ -0,0 +1,29 @@
+--- a/setup.py
++++ b/setup.py
+@@ -1,17 +1,16 @@
+ #!/usr/bin/env python
+ 
+ from distutils.core import setup
+-import thor
+ 
+ setup(
+   name = 'thor',
+-  version = thor.__version__,
++  version = '0.2',
+   description = 'Simple Event-Driven IO for Python',
+   author = 'Mark Nottingham',
+   author_email = 'm...@mnot.net',
+   url = 'http://github.com/mnot/thor/',
+   download_url = \
+-    'http://github.com/mnot/thor/tarball/thor-%s' % thor.__version__,
++    'http://github.com/mnot/thor/tarball/thor-0.2',
+   packages = ['thor', 'thor.http'],
+   provides = ['thor'],
+   long_description=open("README.rst").read(),
+@@ -26,4 +25,4 @@
+     'Topic :: Internet :: WWW/HTTP :: HTTP Servers',
+     'Topic :: Software Development :: Libraries :: Python Modules',
+   ]
+-)
+\ No newline at end of file
++)
Index: lang/python-thor/Makefile
===================================================================
--- lang/python-thor/Makefile   (revision 0)
+++ lang/python-thor/Makefile   (revision 0)
@@ -0,0 +1,47 @@
+#
+# Copyright (C) 2013 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:=python-thor
+PKG_VERSION:=0.2
+PKG_RELEASE:=1
+PKG_MD5SUM:=3380df71ece247bb346babff3987eefa
+
+PKG_SOURCE:=thor-$(PKG_VERSION).tar.gz
+PKG_SOURCE_URL:=http://pypi.python.org/packages/source/t/thor/
+PKG_BUILD_DIR:=$(BUILD_DIR)/thor-$(PKG_VERSION)
+
+include $(INCLUDE_DIR)/package.mk
+$(call include_mk, python-package.mk)
+
+define Package/python-thor
+  SECTION:=lang-python
+  CATEGORY:=Languages
+  SUBMENU:=Python
+  TITLE:=python-thor
+  URL:=https://github.com/mnot/python-thor
+  DEPENDS:=+python +pyopenssl
+endef
+
+define Package/python-thor/description
+Thor is a Python library for evented IO.
+endef
+
+define Build/Compile
+       $(call Build/Compile/PyMod,,install --prefix=/usr 
--root=$(PKG_INSTALL_DIR))
+endef
+
+define Package/python-thor/install
+       $(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)/
+       $(CP) \
+               $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/* \
+               $(1)$(PYTHON_PKG_DIR)/
+endef
+
+$(eval $(call BuildPackage,python-thor))
+
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to