summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLalo Martins2007-10-21 20:35:08 +0800
committerLalo Martins2007-10-21 20:35:08 +0800
commit166f4739bdea6f62c37dcf7d5a83f743cae27d4c (patch)
treef15bd6fd7d029a6d496ff118d1cd4c2c760d3d5b
parentd7c4e98ed907747980ccd569142c9972c9611721 (diff)
new spell: bittorrent-bencode
-rwxr-xr-xpython-devel/bittorrent-bencode/DEPENDS1
-rwxr-xr-xpython-devel/bittorrent-bencode/DETAILS19
-rw-r--r--python-devel/bittorrent-bencode/HISTORY2
-rwxr-xr-xpython-devel/bittorrent-bencode/PRE_BUILD3
4 files changed, 25 insertions, 0 deletions
diff --git a/python-devel/bittorrent-bencode/DEPENDS b/python-devel/bittorrent-bencode/DEPENDS
new file mode 100755
index 0000000000..6e84a0e417
--- /dev/null
+++ b/python-devel/bittorrent-bencode/DEPENDS
@@ -0,0 +1 @@
+depends python
diff --git a/python-devel/bittorrent-bencode/DETAILS b/python-devel/bittorrent-bencode/DETAILS
new file mode 100755
index 0000000000..fb4ca23220
--- /dev/null
+++ b/python-devel/bittorrent-bencode/DETAILS
@@ -0,0 +1,19 @@
+ SPELL=bittorrent-bencode
+ VERSION=5.0.8
+ SOURCE="BitTorrent-bencode-${VERSION}.tar.gz"
+ SOURCE_URL[0]=http://pypi.python.org/packages/source/B/BitTorrent-bencode/${SOURCE}
+ SOURCE_HASH=sha512:5ce58de0a5b9347be5ca2cdcba986e84aa40d68204f0996ef1f66d30b93726e0dcd175251858c2b9cc4428c029ac3f6c3bec2a37f897f1ba78567247b0a47b68
+SOURCE_DIRECTORY="${BUILD_DIRECTORY}/BitTorrent-bencode-${VERSION}"
+ WEB_SITE="http://www.bittorrent.com/"
+ LICENSE[0]=http://www.bittorrent.com/license/
+ ENTERED=20071021
+ SHORT="The BitTorrent bencode module as leight-weight, standalone package"
+cat << EOF
+This package simply re-packages the existing bencoding and bdecoding
+implemention from the 'official' BitTorrent client as a separate, leight-weight
+package for re-using them without having the entire BitTorrent software as
+a dependency.
+
+It currently uses the implementation from BitTorrent Version 5.0.8, the file
+bencode.py is a verbatim, unmodified copy from that distribution.
+EOF
diff --git a/python-devel/bittorrent-bencode/HISTORY b/python-devel/bittorrent-bencode/HISTORY
new file mode 100644
index 0000000000..6513c45ed2
--- /dev/null
+++ b/python-devel/bittorrent-bencode/HISTORY
@@ -0,0 +1,2 @@
+2007-10-21 Lalo Martins <lalo@sourcemage.org>
+ * DETAILS, DEPENDS, PRE_BUILD, HISTORY: created spell
diff --git a/python-devel/bittorrent-bencode/PRE_BUILD b/python-devel/bittorrent-bencode/PRE_BUILD
new file mode 100755
index 0000000000..cbe95ad79e
--- /dev/null
+++ b/python-devel/bittorrent-bencode/PRE_BUILD
@@ -0,0 +1,3 @@
+default_pre_build &&
+cd $SOURCE_DIRECTORY &&
+sed -i 's/packages = find_packages(),/py_modules = ["BTL", "bencode"],/' setup.py