From 5476d254b940b6978ce77a6a42c643721e491b89 Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Sun, 25 Jul 2010 14:20:40 +0200 Subject: [PATCH] new package: add package 'TwistedWeb' Signed-off-by: Stephan Raue --- packages/python/web/TwistedWeb/build | 16 ++++++++++++++++ packages/python/web/TwistedWeb/install | 5 +++++ packages/python/web/TwistedWeb/meta | 14 ++++++++++++++ 3 files changed, 35 insertions(+) create mode 100755 packages/python/web/TwistedWeb/build create mode 100755 packages/python/web/TwistedWeb/install create mode 100644 packages/python/web/TwistedWeb/meta diff --git a/packages/python/web/TwistedWeb/build b/packages/python/web/TwistedWeb/build new file mode 100755 index 0000000000..eff0f0a0e5 --- /dev/null +++ b/packages/python/web/TwistedWeb/build @@ -0,0 +1,16 @@ +#!/bin/sh + +. config/options $1 +. config/options.python + +cd $PKG_BUILD + +$PYTHON setup.py build + +$PYTHON setup.py install -O1 --skip-build --root $SYSROOT_PREFIX --prefix /usr +$PYTHON setup.py install -O1 --skip-build --root ./.install --prefix /usr + +find .install -name "*.py" -exec rm -rf "{}" ";" +find .install -name "*.pyo" -exec rm -rf "{}" ";" + +rm -rf .install/usr/lib/python*/site-packages/twisted/web/test \ No newline at end of file diff --git a/packages/python/web/TwistedWeb/install b/packages/python/web/TwistedWeb/install new file mode 100755 index 0000000000..9e41581031 --- /dev/null +++ b/packages/python/web/TwistedWeb/install @@ -0,0 +1,5 @@ +#!/bin/sh + +. config/options $1 + +cp -PR $PKG_BUILD/.install/* $INSTALL \ No newline at end of file diff --git a/packages/python/web/TwistedWeb/meta b/packages/python/web/TwistedWeb/meta new file mode 100644 index 0000000000..ff5edd6764 --- /dev/null +++ b/packages/python/web/TwistedWeb/meta @@ -0,0 +1,14 @@ +PKG_NAME="TwistedWeb" +PKG_VERSION="10.1.0" +PKG_REV="1" +PKG_ARCH="any" +PKG_LICENSE="MIT" +PKG_SITE="http://twistedmatrix.com/" +PKG_URL="http://tmrc.mit.edu/mirror/twisted/Web/10.1/$PKG_NAME-$PKG_VERSION.tar.bz2" +PKG_DEPENDS="Python TwistedCore" +PKG_BUILD_DEPENDS="toolchain Python TwistedCore" +PKG_PRIORITY="optional" +PKG_SECTION="python/web" +PKG_SHORTDESC="TwistedWeb: An event-based networking framework for Internet applications" +PKG_LONGDESC="Twisted is an event-based framework for Internet applications. It includes a Web server, an SMTP/POP3 server, a telnet server, an SSH server, an IRC server, a DNS server, a generic client/server pair for remote object access (Perspective Broker), and APIs for creating new protocols. It supports integration with GTK+, GTK+ 2, Qt, Tkinter, wxPython, Mac OS X (PyObjC) and Win32 event loops. It also supports TCP, SSL and TLS, UDP, Unix sockets, multicast, and serial ports. Supported protocols include HTTP, FTP, SMTP, POP3, IMAP, TOC, OSCAR (AIM and ICQ), SSH, DNS, IRC, NNTP, Jabber, SOCKSv4, Telnet, SIP (for VoIP), and XML-RPC and SOAP using external packages. Most protocols are supported as both servers and clients." +PKG_IS_ADDON="no"