summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorimil <imil@pkgsrc.org>2012-12-22 13:34:49 +0000
committerimil <imil@pkgsrc.org>2012-12-22 13:34:49 +0000
commit62972fb51ef9c1bc9c5aa50efbdbbf044b0d05e6 (patch)
tree18175dc876a2c29fff0c20c27f8372f6fb0fbe51
parenta8b94c1610edcdafab01739575d57786f6d20494 (diff)
downloadpkgsrc-62972fb51ef9c1bc9c5aa50efbdbbf044b0d05e6.tar.gz
Fixed install for python 2.7, setup.py seems buggy and does not create
requires.txt when version is > 2.6. There's room for improvement, that's a quick fix.
-rw-r--r--net/py-irclib/Makefile15
-rw-r--r--net/py-irclib/PLIST9
-rw-r--r--net/py-irclib/distinfo2
3 files changed, 21 insertions, 5 deletions
diff --git a/net/py-irclib/Makefile b/net/py-irclib/Makefile
index fbb9b94e9bd..b98f4937653 100644
--- a/net/py-irclib/Makefile
+++ b/net/py-irclib/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2 2012/11/18 02:25:37 asau Exp $
+# $NetBSD: Makefile,v 1.3 2012/12/22 13:34:49 imil Exp $
#
IRCVERS= 3.4.2
@@ -15,9 +15,20 @@ LICENSE= gnu-gpl-v2
USE_LANGUAGES= # none
+.include "../../lang/python/egg.mk"
+
+PLIST_VARS+= requires
+.if ${PYVERSSUFFIX} == "2.5" || ${PYVERSSUFFIX} == "2.6"
+PLIST.requires= yes
+.endif
+
post-extract:
cd ${WRKSRC} && ${CHMOD} ${SHAREMODE} irc.egg-info/*
+# for some reason, this package does not install egg infos
+post-install:
+ ${INSTALL_DATA} ${WRKSRC}/irc.egg-info/* \
+ ${DESTDIR}${PREFIX}/${PYSITELIB}/${EGG_INFODIR}
+
.include "../../devel/py-hgtools/buildlink3.mk"
-.include "../../lang/python/egg.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/net/py-irclib/PLIST b/net/py-irclib/PLIST
index 34f27bb176e..1b9c2d23833 100644
--- a/net/py-irclib/PLIST
+++ b/net/py-irclib/PLIST
@@ -1,8 +1,11 @@
-@comment $NetBSD: PLIST,v 1.1 2012/11/03 14:18:06 imil Exp $
+@comment $NetBSD: PLIST,v 1.2 2012/12/22 13:34:49 imil Exp $
+${PYSITELIB}/PKG-INFO
+${PYSITELIB}/SOURCES.txt
+${PYSITELIB}/dependency_links.txt
${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
-${PYSITELIB}/${EGG_INFODIR}/requires.txt
+${PLIST.requires}${PYSITELIB}/${EGG_INFODIR}/requires.txt
${PYSITELIB}/${EGG_INFODIR}/top_level.txt
${PYSITELIB}/irc/__init__.py
${PYSITELIB}/irc/__init__.pyc
@@ -46,3 +49,5 @@ ${PYSITELIB}/irc/tests/test_client.pyo
${PYSITELIB}/irc/util.py
${PYSITELIB}/irc/util.pyc
${PYSITELIB}/irc/util.pyo
+${PLIST.requires}${PYSITELIB}/requires.txt
+${PYSITELIB}/top_level.txt
diff --git a/net/py-irclib/distinfo b/net/py-irclib/distinfo
index 78d7ce0d45c..a773cd32ed2 100644
--- a/net/py-irclib/distinfo
+++ b/net/py-irclib/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.1 2012/11/03 14:18:06 imil Exp $
+$NetBSD: distinfo,v 1.2 2012/12/22 13:34:49 imil Exp $
SHA1 (irc-3.4.2.zip) = fa8098eb26e46e7296ec3cc114ebb68d6755d071
RMD160 (irc-3.4.2.zip) = 84155ee9438685733026a54fb6a08e87144f552f