pkgsrc/net/bittorrent/Makefile
wiz aa67e11089 Mark packages as not ready for python-3.x where applicable;
either because they themselves are not ready or because a
dependency isn't. This is annotated by
PYTHON_VERSIONS_INCOMPATIBLE=  33 # not yet ported as of x.y.z
or
PYTHON_VERSIONS_INCOMPATIBLE=  33 # py-foo, py-bar
respectively, please use the same style for other packages,
and check during updates.

Use versioned_dependencies.mk where applicable.
Use REPLACE_PYTHON instead of handcoded alternatives, where applicable.
Reorder Makefile sections into standard order, where applicable.

Remove PYTHON_VERSIONS_INCLUDE_3X lines since that will be default
with the next commit.

Whitespace cleanups and other nits corrected, where necessary.
2014-01-25 10:29:56 +00:00

35 lines
1.1 KiB
Makefile

# $NetBSD: Makefile,v 1.46 2014/01/25 10:30:15 wiz Exp $
.include "Makefile.common"
PKGNAME= ${DISTNAME:S/BitT/bitt/}
PKGREVISION= 6
CONFLICTS+= bittornado-[0-9]*
CONFLICTS+= BitTornado-[0-9]*
DEPENDS+= ${PYPKGPREFIX}-cursespanel-[0-9]*:../../devel/py-cursespanel
USE_TOOLS+= msgfmt xgettext msgmerge
SUBST_CLASSES+= sha
SUBST_MESSAGE.sha= Fixing references to deprecated sha module.
SUBST_STAGE.sha= pre-configure
SUBST_FILES.sha= BitTorrent/ConvertedMetainfo.py
SUBST_FILES.sha+= BitTorrent/NewVersion.py
SUBST_FILES.sha+= BitTorrent/PeerID.py
SUBST_FILES.sha+= BitTorrent/StorageWrapper.py
SUBST_FILES.sha+= BitTorrent/download.py
SUBST_FILES.sha+= BitTorrent/makemetafile.py
SUBST_FILES.sha+= BitTorrent/parsedir.py
SUBST_FILES.sha+= khashmir/khash.py
SUBST_FILES.sha+= khashmir/khashmir.py
SUBST_FILES.sha+= khashmir/utkhashmir.py
SUBST_FILES.sha+= torrentinfo-console.py
SUBST_SED.sha= -e "s/^from sha import .*/from hashlib import sha1 as sha/"
PYTHON_VERSIONS_INCOMPATIBLE= 33 # not yet ported as of 4.4.0
.include "../../lang/python/application.mk"
.include "../../lang/python/distutils.mk"
.include "../../mk/bsd.pkg.mk"