# New ports collection makefile for: Ruby/CVS # Date created: 20 July 2001 # Whom: Akinori MUSHA aka knu # # $FreeBSD$ # PORTNAME= cvs PORTVERSION= 0.2 CATEGORIES= devel ruby MASTER_SITES= http://cvs.m17n.org/cgi-bin/viewcvs/ruby-${PORTNAME}/ PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX} DISTNAME= ruby-${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX}\?tarball=1\&only_with_tag=ruby-${PORTNAME}-${PORTVERSION:S/./_/g}\&cvsroot=ruby\& DIST_SUBDIR= ruby MAINTAINER= knu@FreeBSD.org # optional, but strongly suggested RUN_DEPENDS= ${RUBY_SITEARCHLIBDIR}/flex.so:${PORTSDIR}/devel/ruby-flex_rb USE_RUBY= yes USE_RUBY_RDTOOL= yes RUBY_SHEBANG_FILES= ${WRKSRC}/viztree ${WRKSRC}/reviz/reviz WRKSRC= ${WRKDIR}/ruby-${PORTNAME} DOCS= README TODO cvs.html diff.html tempdir.html do-build: .if !defined(NOPORTDOCS) cd ${WRKSRC}; ${RUBY_RD2} lib/cvs.rb > cvs.html cd ${WRKSRC}; ${RUBY_RD2} lib/diff.rb > diff.html cd ${WRKSRC}; ${RUBY_RD2} lib/tempdir.rb > tempdir.html .endif do-install: ${CP} -R ${WRKSRC}/lib/* ${RUBY_SITELIBDIR}/ .if !defined(NOPORTDOCS) ${MKDIR} ${RUBY_MODEXAMPLESDIR}/reviz ${INSTALL_DATA} ${WRKSRC}/viztree ${RUBY_MODEXAMPLESDIR}/ ${INSTALL_DATA} ${WRKSRC}/reviz/* ${RUBY_MODEXAMPLESDIR}/reviz/ ${MKDIR} ${RUBY_MODDOCDIR} .for f in ${DOCS} ${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_MODDOCDIR}/ .endfor .endif .include