diff options
author | lioux <lioux@FreeBSD.org> | 2003-04-05 05:56:44 +0000 |
---|---|---|
committer | lioux <lioux@FreeBSD.org> | 2003-04-05 05:56:44 +0000 |
commit | 0973a9cf675b0651055b50397a3934651e5125e7 (patch) | |
tree | dce85abc18b1b717c980e04ed2e25ccd48eb69cf /net/py-kenosis-bittorrent/Makefile | |
parent | 0ab325846dca45a867c090666460861e693ba740 (diff) | |
download | FreeBSD-ports-0973a9cf675b0651055b50397a3934651e5125e7.zip FreeBSD-ports-0973a9cf675b0651055b50397a3934651e5125e7.tar.gz |
New port BitTorrent version 3.2.1b: A peer-to-peer tool for
distributing files written in Python
Diffstat (limited to 'net/py-kenosis-bittorrent/Makefile')
-rw-r--r-- | net/py-kenosis-bittorrent/Makefile | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/net/py-kenosis-bittorrent/Makefile b/net/py-kenosis-bittorrent/Makefile new file mode 100644 index 0000000..4cf12ca --- /dev/null +++ b/net/py-kenosis-bittorrent/Makefile @@ -0,0 +1,59 @@ +# New ports collection makefile for: BitTorrent +# Date created: Sun Mar 16 06:34:12 UTC 2003 +# Whom: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= BitTorrent +PORTVERSION= 3.2.1.b +CATEGORIES= net python +MASTER_SITES= http://bitconjurer.org/BitTorrent/ +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +DISTNAME= ${PORTNAME}-${PORTVERSION:C/\.(.)$/\1/} + +MAINTAINER= lioux@FreeBSD.org +COMMENT= A peer-to-peer tool for distributing files written in Python + +USE_PYTHON= yes +USE_PYDISTUTILS= yes +USE_REINPLACE= yes + +DOC_FILES= FAQ.txt INSTALL.unix.txt LICENSE.txt README.txt \ + credits.txt todo.txt + +# required for GUI +.ifndef(WITHOUT_GUI) +RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/wxPython/__init__.py:${PORTSDIR}/x11-toolkits/py-wxPython + +PLIST_SUB+= GUI='' +.else +EXTRA_PATCHES+= ${FILESDIR}/extra-nogui-patch-setup.py +PLIST_SUB+= GUI='@comment ' +.endif + +pre-everything:: +.ifndef(WITHOUT_GUI) + @${ECHO_MSG} '===> Define WITHOUT_GUI to disable GUI installation' +.endif + +post-patch: + @${FIND} ${WRKSRC} -type f | \ + ${XARGS} -x -n 10 \ + ${REINPLACE_CMD} -E \ + -e 's|/usr/bin/env python2|${LOCALBASE}/bin/python|' +.ifdef(WITHOUT_GUI) + @${REINPLACE_CMD} -E \ + -e 's|btdownloadgui.py|btdownloadcurses.py|' \ + ${WRKSRC}/INSTALL.unix.txt +.endif + +post-install: +.ifndef(PORTDOCS) + @${MKDIR} ${DOCSDIR} +.for file in ${DOC_FILES} + @${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR} +.endfor +.endif + +.include <bsd.port.mk> |