blob: a8c80354001713a0ff74254a015c1481539dd7ab (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
# New ports collection makefile for: torrent_swapper
# Date created: 2007-04-17
# Whom: alepulver
#
# $FreeBSD$
#
PORTNAME= torrent_swapper
PORTVERSION= 1.0
PORTREVISION= 2
CATEGORIES= net-p2p
MASTER_SITES= SF
MASTER_SITE_SUBDIR= bit-torrent
DISTNAME= swapper
MAINTAINER= alepulver@FreeBSD.org
COMMENT= Sociable P2P network client based on Bittorrent
RUN_DEPENDS= ${PYTHON_SITELIBDIR}/M2Crypto/__init__.py:${PORTSDIR}/security/py-m2crypto \
${PYTHON_SITELIBDIR}/_bsddb.so:${PORTSDIR}/databases/py-bsddb
USE_PYTHON= 2.4+
USE_WX= 2.6+
WX_COMPS= python
WX_UNICODE= yes
NO_WRKSUBDIR= yes
post-extract:
@${FIND} ${WRKSRC} -type f -name "*.pyc" -print0 | ${XARGS} -0 ${RM} -f
@cd ${WRKSRC} && \
${RM} -rf *.bat *.exe.* *.nsi *.sh LICENSE.txt debian mac && \
${MKDIR} _extras && \
${MV} how_to_compile.txt lastest_version.txt protocol_v3.txt \
readme.txt swapper.xpm _extras
do-build:
@(${ECHO_CMD} "#!${SH}"; ${ECHO_CMD} "cd ${DATADIR} || exit 1"; \
${ECHO_CMD} 'exec ${PYTHON_CMD} abc.py "$$@"') > \
${WRKSRC}/_extras/${PORTNAME}
@${PYTHON_CMD} -Oc 'import compileall; \
compileall.compile_dir("${WRKSRC}", force=1)'
do-install:
${INSTALL_SCRIPT} ${WRKDIR}/_extras/${PORTNAME} ${PREFIX}/bin
${MKDIR} ${DATADIR}
${CP} -R ${WRKSRC}/[^_]* ${DATADIR}
@${FIND} ${DATADIR} -type d -print0 | ${XARGS} -0 ${CHMOD} ${BINMODE}
@${FIND} ${DATADIR} -type f -print0 | ${XARGS} -0 ${CHMOD} ${SHAREMODE}
${MKDIR} ${PREFIX}/share/pixmaps
${INSTALL_DATA} ${WRKSRC}/_extras/swapper.xpm \
${PREFIX}/share/pixmaps
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/_extras/*.txt ${DOCSDIR}
.endif
.include <bsd.port.mk>
|