summaryrefslogtreecommitdiff
path: root/net/py-ptt
diff options
context:
space:
mode:
authorimil <imil@pkgsrc.org>2012-11-03 14:29:25 +0000
committerimil <imil@pkgsrc.org>2012-11-03 14:29:25 +0000
commit24f19c31c4bd6fb87994fc379468dd0eda125a1a (patch)
tree6db9e013374c6cab87f716b48f93162080b453ef /net/py-ptt
parent903dd605ae1f8acf8c87971fe1c1307c239d8946 (diff)
downloadpkgsrc-24f19c31c4bd6fb87994fc379468dd0eda125a1a.tar.gz
Enabled IRC and fixed a wrong import in ircbot.py
Diffstat (limited to 'net/py-ptt')
-rw-r--r--net/py-ptt/Makefile4
-rw-r--r--net/py-ptt/distinfo3
-rw-r--r--net/py-ptt/patches/patch-twitter_ircbot.py15
3 files changed, 20 insertions, 2 deletions
diff --git a/net/py-ptt/Makefile b/net/py-ptt/Makefile
index dd2d61f50fd..83a80f0bbe5 100644
--- a/net/py-ptt/Makefile
+++ b/net/py-ptt/Makefile
@@ -1,9 +1,10 @@
-# $NetBSD: Makefile,v 1.1 2012/11/02 13:08:31 imil Exp $
+# $NetBSD: Makefile,v 1.2 2012/11/03 14:29:25 imil Exp $
#
PTTVERS= 1.9.0
DISTNAME= twitter-${PTTVERS}
PKGNAME= ${PYPKGPREFIX}-ptt-${PTTVERS}
+PKGREVISION= 1
CATEGORIES= net python
MASTER_SITES= http://pypi.python.org/packages/source/t/twitter/
@@ -16,5 +17,6 @@ PKG_DESTDIR_SUPPORT= user-destdir
USE_LANGUAGES= # none
+.include "../../net/py-irclib/buildlink3.mk"
.include "../../lang/python/egg.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/net/py-ptt/distinfo b/net/py-ptt/distinfo
index 8db9cd23b51..7839e952e0c 100644
--- a/net/py-ptt/distinfo
+++ b/net/py-ptt/distinfo
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.1 2012/11/02 13:08:31 imil Exp $
+$NetBSD: distinfo,v 1.2 2012/11/03 14:29:25 imil Exp $
SHA1 (twitter-1.9.0.tar.gz) = e42089c4067498f7aefaf16f32062cefb4141f5a
RMD160 (twitter-1.9.0.tar.gz) = 703821166ca80e757a2d806b6d4bd23e1cc1e676
Size (twitter-1.9.0.tar.gz) = 31441 bytes
+SHA1 (patch-twitter_ircbot.py) = d477f7c3849f3486345f4be58fd9184b42ace855
diff --git a/net/py-ptt/patches/patch-twitter_ircbot.py b/net/py-ptt/patches/patch-twitter_ircbot.py
new file mode 100644
index 00000000000..a4611ef296f
--- /dev/null
+++ b/net/py-ptt/patches/patch-twitter_ircbot.py
@@ -0,0 +1,15 @@
+$NetBSD: patch-twitter_ircbot.py,v 1.1 2012/11/03 14:29:25 imil Exp $
+
+Upstream imports "irclib" but that library has changed to "irc"
+
+--- twitter/ircbot.py.orig 2012-05-10 21:20:42.000000000 +0000
++++ twitter/ircbot.py
+@@ -81,7 +81,7 @@ def get_prefix(prefix_typ=None):
+
+
+ try:
+- import irclib
++ import irc
+ except ImportError:
+ raise ImportError(
+ "This module requires python irclib available from "