# New ports collection makefile for: 	newfile
# Date created:				Thu Jan 30 17:34:12 CET 2003
# Whom:					Miguel Mendez <flynn@energyhq.homeip.net>
#
# $FreeBSD: ports/devel/newfile/Makefile,v 1.5 2003/05/09 19:31:30 alane Exp $
#

PORTNAME=	newfile
PORTVERSION=	1.0.11
CATEGORIES=	devel
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=	${PORTNAME}

MAINTAINER=	alane@FreeBSD.org
COMMENT=	A tool for creating starter files in various languages

BUILD_DEPENDS+=	dot:${PORTSDIR}/graphics/graphviz
BUILD_DEPENDS+=	rdoc:${PORTSDIR}/textproc/ruby-rdoc
BUILD_DEPENDS+= /usr/local/bin/perl:${PORTSDIR}/lang/perl5

USE_RUBY=	yes
USE_REINPLACE=	yes
GNU_CONFIGURE=	yes
USE_PERL=	yes

.if !defined(NOPORTDOCS)
MAN1=		newfile.1
.endif

pre-configure:
.if defined(NOPORTDOCS)
	@${REINPLACE_CMD} -e 's@SUBDIRS = src doc data doc-src www@SUBDIRS = src data@g' \
	${WRKSRC}/Makefile.in
.endif

.include <bsd.port.mk>
