# Created by: Anton Berezin <tobez@FreeBSD.org>
# $FreeBSD: tags/RELEASE_10_0_0/devel/p5-Rcs/Makefile 327724 2013-09-20 17:13:42Z bapt $

PORTNAME=	Rcs
PORTVERSION=	1.05
CATEGORIES=	devel perl5
MASTER_SITES=	CPAN
PKGNAMEPREFIX=	p5-

MAINTAINER=	tobez@FreeBSD.org
COMMENT=	Perl Object Class for Revision Control System (RCS)

USES=		perl5
USE_PERL5=	configure

MAN3=		Rcs.3

EXAMPLESDIR=	${PREFIX}/share/examples/${PKGNAMEPREFIX}${PORTNAME}
EXAMPLES=	access.pl ci.pl co-tree.pl co.pl comments.pl \
		comments2.pl daterev.pl dates.pl parse.pl \
		project/RCS/Rcs.pm,v project/RCS/testfile,v \
		project/src/Rcs.pm project/src/testfile rcsclean.pl \
		rcsdiff.pl revdate.pl rlog.pl symbols.pl symrev.pl \
		test1.pl test2.pl test3.pl unlock.pl

NO_STAGE=	yes
post-install:
	${MKDIR} ${EXAMPLESDIR}
	${MKDIR} ${EXAMPLESDIR}/project
	${MKDIR} ${EXAMPLESDIR}/project/RCS
	${MKDIR} ${EXAMPLESDIR}/project/src
.for _EXAMPLE in ${EXAMPLES}
	${INSTALL_DATA} ${WRKSRC}/examples/${_EXAMPLE} ${EXAMPLESDIR}/${_EXAMPLE}
.endfor

.include <bsd.port.mk>
