ports/160007: [NEW PORT] ports-mgmt/porttree: Show dependences of FreeBSD port as pseudo graphical tree
chukharev at mail.ru
chukharev at mail.ru
Thu Sep 15 13:00:25 UTC 2011
The following reply was made to PR ports/160007; it has been noted by GNATS.
From: chukharev at mail.ru
To: bug-followup at freebsd.org
Cc:
Subject: Re: ports/160007: [NEW PORT] ports-mgmt/porttree: Show dependences of
FreeBSD port as pseudo graphical tree
Date: Thu, 15 Sep 2011 15:59:06 +0300
The new version of the porttree port. Please disregard the old version.
The new version outputs utf-8 chars and does not break on a terminal
with non-utf-8 encoding. If the terminal has pseudo graphics, iconv
can be used to convert to the right encoding. ISO-8859-* do not have,
the only way is to use style 0 (-s 0) to draw with +, | and `.
See man for examples.
Many new features are added.
--- porttree-0.2.r20.shar begins here ---
# This is a shell archive. Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file". Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
# porttree
# porttree/pkg-descr
# porttree/distinfo
# porttree/Makefile
#
echo c - porttree
mkdir -p porttree > /dev/null 2>&1
echo x - porttree/pkg-descr
sed 's/^X//' >porttree/pkg-descr << '602a5ff264d0d3f6c041a303b573ce36'
XFor a given port determine its dependences using any combination of the FETCH_,
XEXTRACT_, PATCH_, BUILD_, LIB_, and RUN_DEPENDS and show them as a pseudo
Xgraphical tree. Use back references for cross-connections.
602a5ff264d0d3f6c041a303b573ce36
echo x - porttree/distinfo
sed 's/^X//' >porttree/distinfo << '5b512887ac4c012b571d94007fa4865c'
XSHA256 (porttree-0.2.r20.tar.bz2) = ebb32cd9283aa74683cb612b464b2b1426481e65e9264a04c82d2b92cd180503
XSIZE (porttree-0.2.r20.tar.bz2) = 8724
5b512887ac4c012b571d94007fa4865c
echo x - porttree/Makefile
sed 's/^X//' >porttree/Makefile << 'a45043e9afed212b53be44b69cd3aeb8'
X# New ports collection makefile for: porttree
X# Date created: 18 Aug 2011
X# Whom: Vladimir Chukharev
X#
X# $FreeBSD$
X#
X
XPORTNAME= porttree
XPORTVERSION= 0.2.r${SVN_REV}
XCATEGORIES= ports-mgmt python
XMASTER_SITES= ${MASTER_SITE_GOOGLE_CODE}
X
XMAINTAINER= Vladimir.Chukharev at gmail.com
XCOMMENT= Show dependences of FreeBSD port as pseudo graphical tree
X
XLICENSE= MIT
X
XMAN1= porttree.1
XUSE_BZIP2= yes
X#USE_PYTHON= 2.4+
X
XOPTIONS= GENDIST "Support generating distfile from SVN" Off
X
X.include <bsd.port.options.mk>
X
XRUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}networkx>=1.5:${PORTSDIR}/math/py-networkx
X
X.if defined(WITH_GENDIST)
XFETCH_DEPENDS+= svn:${PORTSDIR}/devel/subversion
X.endif
X
XSVNROOT?= http://porttree.googlecode.com/svn/trunk/
XSVN_REV= 20
XNO_BUILD= yes
XNO_INSTALL= yes
XPLIST_FILES= bin/porttree
X
X.include <bsd.port.pre.mk>
Xdo-install:
X ${INSTALL_SCRIPT} ${WRKSRC}/src/porttree.py ${PREFIX}/bin/porttree
X ${INSTALL_MAN} ${WRKSRC}/src/porttree.1 ${MAN8PREFIX}/man/man1
Xgen-dist:
X ${MKDIR} ${WRKDIR}
X ${RM} -rf ${WRKSRC}
X svn export -r ${SVN_REV} ${SVNROOT} ${WRKSRC}
X ${TAR} -cvy -C ${WRKDIR} --exclude FreeBSDport -f ${DISTDIR}/${DISTNAME}.tar.bz2 ${DISTNAME}
X.include <bsd.port.post.mk>
a45043e9afed212b53be44b69cd3aeb8
exit
--- porttree-0.2.r20.shar ends here ---
--
Vladimir Chukharev
Tampere University of Technology
More information about the freebsd-ports-bugs
mailing list