freebsd-ports/devel/p5-PV/Makefile
Satoshi Asami 88f83d45d8 Update for perl version 5.00501. Requires latest bsd.port.mk. I'm
going to be a little verbose here about the changes so people who fix
up the rest of the stuff can have an idea what to do.

(1) Manpages are moved to version-specific subdirectories.  Since they
    are all defined in MAN? macros, I just needed to add
    ${PERL_VERSION} to the end of MAN*PREFIX and delete them from the
    PLIST.

(2) Most of the module files are moved to version-specific
    subdirectories.  This is usually accomplished by adding
    "%%PERL_VER%%/" right after "site_perl/" in the PLIST.  However,
    some things didn't move, and some moved more than one level (like,
    all the way into "site_perl/%%PERL_VER%%/auto/FooBar") so some
    fishing, err, find'ing was necessary.

(3) Fix up dependencies.  See (2) above.

(4) While I was there, I changed some "@dirrm foobar"'s to "@unexec
    rmdir %D/foobar 2>/dev/null || true", so there won't be any
    warnings if a directory can't be removed due to other modules
    sharing it.

Now all of devel/p5-* will install and deinstall without a single
warning.  I hope others will follow suit. :)
1998-08-12 09:57:59 +00:00

30 lines
772 B
Makefile

# New ports collection makefile for: p5-PV
# Version required: 1.0
# Date created: April 18th 1997
# Whom: James FitzGibbon <jfitz@FreeBSD.org>
#
# $Id: Makefile,v 1.4 1997/06/24 18:43:28 jfitz Exp $
#
DISTNAME= perlvision
PKGNAME= p5-PV-1.0
CATEGORIES= net perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= PV
EXTRACT_SUFX= .tgz
MAINTAINER= jfitz@FreeBSD.ORG
RUN_DEPENDS= ${PREFIX}/lib/perl5/site_perl/${PERL_VER}/i386-freebsd/Curses.pm:${PORTSDIR}/devel/p5-Curses
USE_PERL5= YES
NO_WRKSUBDIR= YES
NO_BUILD= YES
do-install:
${MKDIR} -p -m 755 ${PREFIX}/lib/perl5/site_perl
${INSTALL_DATA} ${WRKDIR}/PV.pm ${PREFIX}/lib/perl5/site_perl
${INSTALL_DATA} ${WRKDIR}/PerlVision.doc ${PREFIX}/lib/perl5/site_perl
.include <bsd.port.mk>