update Wed Feb 10 14:33:06 PST 2010
[pkgsrc.git] / net / bittorrent / Makefile
1 # $NetBSD: Makefile,v 1.40 2010/02/10 19:17:43 joerg Exp $
2
3 PKG_DESTDIR_SUPPORT=    user-destdir
4
5 .include "Makefile.common"
6
7 PKGNAME=        ${DISTNAME:S/BitT/bitt/}
8 PKGREVISION=    4
9
10 PYDISTUTILSPKG= yes
11
12 CONFLICTS+=     bittornado-[0-9]*
13 CONFLICTS+=     BitTornado-[0-9]*
14
15 .include "../../mk/bsd.prefs.mk"
16
17 .include "../../lang/python/application.mk"
18 .include "../../lang/python/extension.mk"
19
20 .if ${PYVERSSUFFIX} != "2.4"
21 SUBST_CLASSES+=         sha
22 SUBST_MESSAGE.sha=      Fixing references to deprecated sha module.
23 SUBST_STAGE.sha=        pre-configure
24 SUBST_FILES.sha=        BitTorrent/ConvertedMetainfo.py
25 SUBST_FILES.sha+=       BitTorrent/NewVersion.py
26 SUBST_FILES.sha+=       BitTorrent/PeerID.py
27 SUBST_FILES.sha+=       BitTorrent/StorageWrapper.py
28 SUBST_FILES.sha+=       BitTorrent/download.py
29 SUBST_FILES.sha+=       BitTorrent/makemetafile.py
30 SUBST_FILES.sha+=       BitTorrent/parsedir.py
31 SUBST_FILES.sha+=       khashmir/khash.py
32 SUBST_FILES.sha+=       khashmir/khashmir.py
33 SUBST_FILES.sha+=       khashmir/utkhashmir.py
34 SUBST_FILES.sha+=       torrentinfo-console.py
35 SUBST_SED.sha=          -e "s/^from sha import .*/from hashlib import sha1 as sha/"
36 .endif
37
38 .include "../../devel/py-cursespanel/buildlink3.mk"
39 .include "../../mk/bsd.pkg.mk"