pkgsrc/devel/cvs2p4/Makefile
schmonz 7b0aa11a4e Initial import of cvs2p4 2.0.
This small set of tools provides a means for importing a CVS module
into Perforce.

It was originally developed for use at Network Appliance, to convert
our product source code revision history from CVS into Perforce.

cvs2p4 tries make the resultant Perforce depot look as if the work in
CVS had been going on in Perforce.
2002-09-01 05:02:07 +00:00

57 lines
1.6 KiB
Makefile

# $NetBSD: Makefile,v 1.1.1.1 2002/09/01 05:02:07 schmonz Exp $
#
DISTNAME= cvs2p4-2.0
CATEGORIES= devel
MASTER_SITES= ftp://ftp.perforce.com/perforce/utils/cvs2p4/
EXTRACT_SUFX= .tar
MAINTAINER= schmonz@netbsd.org
HOMEPAGE= # none
COMMENT= Converts CVS repository to Perforce depot
DEPENDS+= p4-[0-9]*:../../devel/p4
DEPENDS+= p4d-[0-9]*:../../devel/p4d
.if !exists(/usr/bin/co) && !exists(${LOCALBASE}/bin/co)
DEPENDS+= rcs-[0-9]*:../../devel/rcs
.endif
USE_PERL5= # defined
NO_BUILD= # defined
DOCDIR= share/doc/${PKGBASE}
EGDIR= share/examples/${PKGBASE}
LIBDIR= lib/perl5
PLIST_SUBST+= DOCDIR=${DOCDIR}
PLIST_SUBST+= EGDIR=${EGDIR}
FILES_SUBST+= P4ROOT=${P4ROOT:Q}
FILES_SUBST+= P4PORT=${P4PORT:Q}
CVS2P4_INLIB= $$Mydir/lib/util\.pl
CVS2P4_OUTLIB= ${LIBDIR}/${PKGBASE}-util.pl
do-configure:
for f in ${WRKSRC}/bin/*; do \
( ${ECHO} \#!${PERL5}; ${CAT} $${f} ) | ${SED} -e '2,5d' \
-e 's|${CVS2P4_INLIB}|${PREFIX}/${CVS2P4_OUTLIB}|' \
> $${f}.new; \
${MV} -f $${f}.new $${f}; \
done
@${SED} ${FILES_SUBST_SED} ${WRKSRC}/test/config \
> ${WRKSRC}/test/config.new
@${MV} -f ${WRKSRC}/test/config.new ${WRKSRC}/test/config
do-install:
${INSTALL_DATA} ${WRKSRC}/lib/util.pl ${PREFIX}/${CVS2P4_OUTLIB}
${INSTALL_SCRIPT} ${WRKSRC}/bin/* ${PREFIX}/bin
${INSTALL_DATA_DIR} ${PREFIX}/${DOCDIR}
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/${DOCDIR}
${INSTALL_DATA} ${WRKSRC}/NEWS ${PREFIX}/${DOCDIR}
${INSTALL_DATA_DIR} ${PREFIX}/${EGDIR}
${INSTALL_DATA} ${WRKSRC}/test/config ${PREFIX}/${EGDIR}
.include "../../mk/bsd.pkg.install.mk"
.include "../../mk/bsd.pkg.mk"