-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
1,454 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# | ||
# Copyright (C) 2012 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:=pyasn1 | ||
PKG_VERSION:=0.1.4 | ||
PKG_RELEASE:=1 | ||
|
||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz | ||
PKG_SOURCE_URL:=@SF/pyasn1 | ||
PKG_MD5SUM:=92e7fd8a46e97d0814aaec0187690593 | ||
|
||
TAR_CMD:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components 1 $(TAR_OPTIONS) | ||
|
||
include $(INCLUDE_DIR)/package.mk | ||
$(call include_mk, python-package.mk) | ||
|
||
define Package/pyasn1 | ||
SECTION:=lang | ||
CATEGORY:=Languages | ||
SUBMENU:=Python | ||
TITLE:=ASN.1 library for Python | ||
URL:=http://pyasn1.sourceforge.net/ | ||
DEPENDS:=+python | ||
endef | ||
|
||
define Package/pyasn1/description | ||
This is an implementation of ASN.1 types and codecs in Python programming | ||
language. It has been first written to support particular protocol (SNMP) but | ||
then generalized to be suitable for a wide range of protocols based on ASN.1 | ||
specification. | ||
endef | ||
|
||
define Build/Compile | ||
$(call Build/Compile/PyMod,,install --prefix="/usr" --root="$(PKG_INSTALL_DIR)") | ||
endef | ||
|
||
define Package/pyasn1/install | ||
$(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR) | ||
$(CP) $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/* $(1)$(PYTHON_PKG_DIR) | ||
endef | ||
|
||
$(eval $(call BuildPackage,pyasn1)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# | ||
# Copyright (C) 2012 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:=pycryptopp | ||
PKG_VERSION:=0.6.0.1206569328141510525648634803928199668821045408958 | ||
PKG_RELEASE:=1 | ||
|
||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz | ||
PKG_SOURCE_URL:=http://pypi.python.org/packages/source/p/pycryptopp | ||
PKG_MD5SUM:=ce38fbe03705d27da408c78b56eb1947 | ||
|
||
PKG_BUILD_DEPENDS:=distribute/host | ||
TAR_CMD:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components 1 $(TAR_OPTIONS) | ||
|
||
include $(INCLUDE_DIR)/package.mk | ||
$(call include_mk, python-package.mk) | ||
|
||
define Package/pycryptopp | ||
SECTION:=lang | ||
CATEGORY:=Languages | ||
SUBMENU:=Python | ||
TITLE:=Python wrappers for a few algorithms from the Crypto++ library | ||
URL:=https://tahoe-lafs.org/trac/pycryptopp | ||
DEPENDS:=+python +libcryptoxx | ||
endef | ||
|
||
define Package/pycryptopp/description | ||
pycryptopp is a python wrapper around a few algorithms from the Crypto++ and | ||
python-Ed25519 libraries. | ||
endef | ||
|
||
define Build/Compile | ||
$(call Build/Compile/PyMod,,install --prefix="/usr" --root="$(PKG_INSTALL_DIR)") | ||
endef | ||
|
||
define Package/pycryptopp/install | ||
$(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR) | ||
$(CP) $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/* $(1)$(PYTHON_PKG_DIR) | ||
endef | ||
|
||
$(eval $(call BuildPackage,pycryptopp)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# | ||
# Copyright (C) 2012 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:=foolscap | ||
PKG_VERSION:=0.6.4 | ||
PKG_RELEASE:=1 | ||
|
||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz | ||
PKG_SOURCE_URL:=http://foolscap.lothar.com/releases | ||
PKG_MD5SUM:=0aedae62a0be50da4f89d80b5b30c8a2 | ||
|
||
include $(INCLUDE_DIR)/package.mk | ||
$(call include_mk, python-package.mk) | ||
|
||
define Package/python-foolscap | ||
SECTION:=lang | ||
CATEGORY:=Languages | ||
SUBMENU:=Python | ||
TITLE:=Python+Twisted RPC protocol | ||
URL:=http://foolscap.lothar.com/ | ||
DEPENDS:=+pyopenssl +python-bzip2 +twisted | ||
endef | ||
|
||
define Package/python-foolscap/description | ||
"Foolscap" is an RPC protocol for Python+Twisted, providing a capability-based | ||
security model and flexible serialization. It is intended to replace Twisted's | ||
native "Perspective Broker" RPC system. | ||
endef | ||
|
||
define Build/Compile | ||
$(call Build/Compile/PyMod,,install --prefix="/usr" --root="$(PKG_INSTALL_DIR)") | ||
endef | ||
|
||
define Package/python-foolscap/install | ||
$(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR) | ||
$(CP) $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/* $(1)$(PYTHON_PKG_DIR) | ||
endef | ||
|
||
$(eval $(call BuildPackage,python-foolscap)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# | ||
# Copyright (C) 2012 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:=mock | ||
PKG_VERSION:=0.8.0 | ||
PKG_RELEASE:=1 | ||
|
||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).zip | ||
PKG_SOURCE_URL:=http://mock.googlecode.com/files | ||
PKG_MD5SUM:=7dba423ce7994c433f6b84b101f1f4ba | ||
|
||
include $(INCLUDE_DIR)/package.mk | ||
$(call include_mk, python-package.mk) | ||
|
||
define Package/python-mock | ||
SECTION:=lang | ||
CATEGORY:=Languages | ||
SUBMENU:=Python | ||
TITLE:=Mocking and Testing Library | ||
URL:=http://www.voidspace.org.uk/python/mock/ | ||
DEPENDS:=+python | ||
endef | ||
|
||
define Package/python-mock/description | ||
mock is a library for testing in Python. It allows you to replace parts of | ||
your system under test with mock objects and make assertions about how they | ||
have been used. | ||
endef | ||
|
||
define Build/Compile | ||
$(call Build/Compile/PyMod,,install --prefix="/usr" --root="$(PKG_INSTALL_DIR)") | ||
endef | ||
|
||
define Package/python-mock/install | ||
$(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR) | ||
$(CP) $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/* $(1)$(PYTHON_PKG_DIR) | ||
endef | ||
|
||
$(eval $(call BuildPackage,python-mock)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# | ||
# Copyright (C) 2012 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:=nevow | ||
PKG_VERSION:=0.10.0 | ||
PKG_RELEASE:=1 | ||
|
||
PKG_SOURCE:=Nevow-$(PKG_VERSION).tar.gz | ||
PKG_SOURCE_URL:=http://pypi.python.org/packages/source/N/Nevow | ||
PKG_MD5SUM:=66dda2ad88f42dea05911add15f4d1b2 | ||
|
||
PKG_BUILD_DIR:=$(BUILD_DIR)/Nevow-$(PKG_VERSION) | ||
|
||
include $(INCLUDE_DIR)/package.mk | ||
$(call include_mk, python-package.mk) | ||
|
||
define Package/python-nevow | ||
SECTION:=lang | ||
CATEGORY:=Languages | ||
SUBMENU:=Python | ||
TITLE:=Web application construction kit | ||
URL:=http://divmod.org/trac/wiki/DivmodNevow | ||
DEPENDS:=+python-expat +twisted | ||
endef | ||
|
||
define Package/python-nevow/description | ||
Divmod Nevow is a web application construction kit written in Python. It is | ||
designed to allow the programmer to express as much of the view logic as | ||
desired in Python, and includes a pure Python XML expression syntax named stan | ||
to facilitate this. However it also provides rich support for designer-edited | ||
templates, using a very small XML attribute language to provide bi-directional | ||
template manipulation capability. | ||
endef | ||
|
||
define Build/Compile | ||
$(call Build/Compile/PyMod,,install --prefix="/usr" --root="$(PKG_INSTALL_DIR)") | ||
endef | ||
|
||
define Package/python-nevow/install | ||
$(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR) | ||
$(CP) $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/* $(1)$(PYTHON_PKG_DIR) | ||
endef | ||
|
||
$(eval $(call BuildPackage,python-nevow)) |
93 changes: 93 additions & 0 deletions
93
lang/python-nevow/patches/001-build-nevow-without-importing.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
--- a/nevow/__init__.py | ||
+++ b/nevow/__init__.py | ||
@@ -1,16 +1,20 @@ | ||
# -*- test-case-name: nevow.test -*- | ||
-# Copyright (c) 2004-2006 Divmod. | ||
+# Copyright (c) 2004-2009 Divmod. | ||
# See LICENSE for details. | ||
|
||
-from nevow._version import version | ||
-__version_info__ = (version.major, version.minor, version.micro) | ||
-__version__ = version.short() | ||
- | ||
import sys | ||
+ | ||
+from twisted.python.versions import Version | ||
from twisted.python.components import registerAdapter | ||
|
||
from nevow import flat | ||
from nevow.util import _namedAnyWithBuiltinTranslation | ||
+from nevow._version import version as __version_info__ | ||
+ | ||
+version = Version('nevow', *__version_info__) | ||
+__version__ = version.short() | ||
+ | ||
+ | ||
|
||
# Python2.2 has a stupidity where instance methods have name | ||
# '__builtin__.instance method' instead of '__builtin__.instancemethod' | ||
--- a/nevow/_version.py | ||
+++ b/nevow/_version.py | ||
@@ -1,3 +1 @@ | ||
-# This is an auto-generated file. Use Epsilon/bin/release-divmod to update. | ||
-from twisted.python import versions | ||
-version = versions.Version(__name__[:__name__.rfind('.')], 0, 10, 0) | ||
+version = (0, 10, 0) | ||
--- a/setup.py | ||
+++ b/setup.py | ||
@@ -1,13 +1,26 @@ | ||
#!/usr/bin/python | ||
|
||
-from nevow import __version__ as version | ||
+import os | ||
|
||
try: | ||
import setuptools | ||
except ImportError: | ||
+ # setuptools isn't available, so it's safe to import the nice version | ||
+ # object (or more generally, safe to import from the uninstalled nevow | ||
+ # package). | ||
setuptools = None | ||
+ from nevow import __version__ as version | ||
+else: | ||
+ # setuptools is available, so trying to import from the uninstalled nevow | ||
+ # package might fail horribly. Instead, get the raw version info with | ||
+ # execfile. | ||
+ versionFile = os.path.join(os.path.dirname(__file__), "nevow", "_version.py") | ||
+ versionInfo = {} | ||
+ execfile(versionFile, versionInfo) | ||
+ version = '%s.%s.%s' % versionInfo['version'] | ||
+ del versionFile, versionInfo | ||
+ | ||
|
||
-import os | ||
data_files=[] | ||
for (dirpath, dirnames, filenames) in os.walk("doc"): | ||
if ".svn" in dirnames: | ||
@@ -20,14 +33,14 @@ for (dirpath, dirnames, filenames) in os | ||
data_files.append((os.path.join('twisted', 'plugins'), [os.path.join('twisted', 'plugins', 'nevow_widget.py')])) | ||
|
||
setupdict = { | ||
- 'name': 'Nevow', | ||
+ 'name': 'Nevow', | ||
'version': version, | ||
- 'maintainer': 'Divmod, Inc.', | ||
- 'maintainer_email': 'support@divmod.org', | ||
- 'description': 'Web Application Construction Kit', | ||
- 'url': 'http://divmod.org/trac/wiki/DivmodNevow', | ||
- 'license': 'MIT', | ||
- 'platforms': ["any"], | ||
+ 'maintainer': 'Divmod, Inc.', | ||
+ 'maintainer_email': 'support@divmod.org', | ||
+ 'description': 'Web Application Construction Kit', | ||
+ 'url': 'http://divmod.org/trac/wiki/DivmodNevow', | ||
+ 'license': 'MIT', | ||
+ 'platforms': ["any"], | ||
'classifiers': [ | ||
"Development Status :: 5 - Production/Stable", | ||
"Framework :: Twisted", | ||
@@ -133,4 +146,3 @@ if setuptools is not None: | ||
|
||
|
||
setup(**setupdict) | ||
- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# | ||
# Copyright (C) 2012 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:=zbase32 | ||
PKG_VERSION:=1.1.5 | ||
PKG_RELEASE:=1 | ||
|
||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz | ||
PKG_SOURCE_URL:=http://pypi.python.org/packages/source/z/zbase32 | ||
PKG_MD5SUM:=4dba0be4ac6d66968de8e5173f51d65d | ||
|
||
include $(INCLUDE_DIR)/package.mk | ||
$(call include_mk, python-package.mk) | ||
|
||
define Package/python-zbase32 | ||
SECTION:=lang | ||
CATEGORY:=Languages | ||
SUBMENU:=Python | ||
TITLE:=Base32 encoder/decoder | ||
URL:=https://tahoe-lafs.org/trac/zbase32 | ||
DEPENDS:=+python | ||
endef | ||
|
||
define Package/python-zbase32/description | ||
An alternate base32 encoder (not RFC 3548 compliant). | ||
endef | ||
|
||
define Build/Compile | ||
$(call Build/Compile/PyMod,,install --prefix="/usr" --root="$(PKG_INSTALL_DIR)") | ||
endef | ||
|
||
define Package/python-zbase32/install | ||
$(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR) | ||
$(CP) $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/* $(1)$(PYTHON_PKG_DIR) | ||
endef | ||
|
||
$(eval $(call BuildPackage,python-zbase32)) |
Oops, something went wrong.