blob: a1121c6e095430c4965b76d0c447e930ee95b899 (
plain)
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
|
PORTNAME= porttree
PORTVERSION= 1.1.r${SVN_REV}
PORTREVISION= 2
CATEGORIES= ports-mgmt python
MASTER_SITES= SF/${PORTNAME}
MAINTAINER= ports@FreeBSD.org
COMMENT= Show dependencies of FreeBSD port as pseudo graphical tree
WWW= https://sourceforge.net/projects/porttree/
LICENSE= MIT
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}networkx>=2.0:math/py-networkx@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}configargparse>0:devel/py-configargparse@${PY_FLAVOR}
USES= python:3.6+ tar:bzip2 shebangfix
#USE_PYTHON= concurrent
SVN_REV= 114
NO_BUILD= yes
PLIST_FILES= bin/porttree man/man1/porttree.1.gz
NO_ARCH= yes
SHEBANG_FILES= src/porttree.py
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/src/porttree.py ${STAGEDIR}${PREFIX}/bin/porttree
${INSTALL_MAN} ${WRKSRC}/src/porttree.1 ${STAGEDIR}${MANPREFIX}/man/man1
do-test:
LC_ALL="en_US.UTF-8" ${WRKSRC}/tests/tests.sh
# maintainer section:
# require: devel/subversion
SVNROOT?= https://svn.code.sf.net/p/porttree/code/trunk
gen-dist:
${MKDIR} ${WRKDIR}
${RM} -r ${WRKSRC}
svn export -r ${SVN_REV} ${SVNROOT} ${WRKSRC}
${TAR} -cvy -C ${WRKDIR} --exclude FreeBSDport -f ${DISTDIR}/${DISTNAME}.tar.bz2 ${DISTNAME}
.include <bsd.port.mk>
|