DESCR

pkgdepgraph prints out a "dot" language specification of the
inter-dependencies of your installed packages. The "dot" language
is interpreted by the graphviz package to make graphs. There are
several uses for such information.

(1) A graphical representation of information is always good to
look at.

(2) The output itself can be sorted and filtered to provide a list
of packages to delete in order that they can be rebuilt (to replace
out-of-date components).

(3) You can visually estimate the work involved in (or impact of)
removing a given component in order to replace it.

MESSAGE

===========================================================================
$NetBSD: MESSAGE,v 1.1 2004/01/29 22:25:06 snj Exp $

Note that in order to facilitate the use of this package on "client
machines", the dependency of this package upon the "graphviz" package
(located in graphics/graphviz) has been removed. You must install the
"graphviz" package in order to view the graph data that this program
generates, though much of the functionality of this program does not
require you to look at the graphs.

===========================================================================

Makefile

# $NetBSD: Makefile,v 1.27 2010/03/21 16:29:42 wiz Exp $
#

DISTNAME= pkgdepgraph-2.8
CATEGORIES= pkgtools devel
MASTER_SITES= # empty
DISTFILES= # empty

MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= ftp://ftp.NetBSD.org/pub/NetBSD/packages/pkgsrc/doc/pkgsrc.html
COMMENT= Visual representation of installed NetBSD packages

PKG_DESTDIR_SUPPORT= user-destdir

# removed so that pkgdepgraph can be used on "client" machines -- @@@
# DEPENDS+= graphviz-[0-9]*:../../graphics/graphviz

WRKSRC= ${WRKDIR}
USE_TOOLS+= perl:run

NO_CONFIGURE= yes

DISTVER= ${DISTNAME:S/pkgdepgraph-//}

.include "../../mk/bsd.prefs.mk"

INSTALLATION_DIRS= bin ${PKGMANDIR}/cat1 ${PKGMANDIR}/man1

do-extract:
${CP} ${FILESDIR}/pkgdepgraph.pl ${WRKSRC}/pkgdepgraph.pl
${CP} ${FILESDIR}/pkgdepgraph.1 ${WRKSRC}/pkgdepgraph.1.in
${CP} ${FILESDIR}/pkgdepgraph.0 ${WRKSRC}/pkgdepgraph.0.in

do-build:
.for FILE in pkgdepgraph
${SED} -e 's|@PREFIX@|${PREFIX}|g' \
-e 's|@PKG_DBDIR@|${PKG_DBDIR}|g' \
-e 's|@PKGSRCDIR@|${PKGSRCDIR}|g' \
-e 's|@DISTVER@|${DISTVER}|g' \
< ${WRKSRC}/${FILE}.pl \
> ${WRKSRC}/${FILE}
.endfor
.for FILE in pkgdepgraph.1 pkgdepgraph.0
${SED} -e 's|@PKG_DBDIR@|${PKG_DBDIR}|g' \
-e 's|@PKGSRCDIR@|${PKGSRCDIR}|g' \
< ${WRKSRC}/${FILE}.in \
> ${WRKSRC}/${FILE}
.endfor
.if ${OPSYS} == "SunOS" || ${OPSYS} == "AIX"
# the pre-generated man-pages are 'mandoc'; these OS need 'man'
nroff -man ${WRKSRC}/pkgdepgraph.1 > ${WRKSRC}/pkgdepgraph.0
.endif

do-install:
${INSTALL_SCRIPT} ${WRKSRC}/pkgdepgraph ${DESTDIR}${PREFIX}/bin/pkgdepgraph
.if !empty(MANINSTALL:Mcatinstall)
${INSTALL_MAN} ${WRKSRC}/pkgdepgraph.0 ${DESTDIR}${PREFIX}/${PKGMANDIR}/cat1
.endif
.if !empty(MANINSTALL:Mmaninstall)
${INSTALL_MAN} ${WRKSRC}/pkgdepgraph.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
.endif

.include "../../mk/bsd.pkg.mk"

PLIST

@comment $NetBSD: PLIST,v 1.1.1.1 2002/11/07 23:18:01 atatat Exp $
bin/pkgdepgraph
man/cat1/pkgdepgraph.0
man/man1/pkgdepgraph.1