aboutsummaryrefslogtreecommitdiffstats
path: root/devel/ruby-cvs/Makefile
diff options
context:
space:
mode:
authorknu <knu@FreeBSD.org>2001-07-20 17:32:40 +0800
committerknu <knu@FreeBSD.org>2001-07-20 17:32:40 +0800
commit51df877369554c67a249870c040190e59d2bcd70 (patch)
tree0999d7cc3b9d47e8c59e1c73bb0d02926334d87a /devel/ruby-cvs/Makefile
parent8d039b0e4d76a00b4a18ef99cdcfef5d1b886215 (diff)
downloadfreebsd-ports-gnome-51df877369554c67a249870c040190e59d2bcd70.tar.gz
freebsd-ports-gnome-51df877369554c67a249870c040190e59d2bcd70.tar.zst
freebsd-ports-gnome-51df877369554c67a249870c040190e59d2bcd70.zip
Add ruby-cvs, a Ruby library to provide a high level interface to a
CVS repository, with a couple of useful examples bundled: reviz - a ViewCVS/CVSweb like CGI script viztree - a revision tree visualizer.
Diffstat (limited to 'devel/ruby-cvs/Makefile')
-rw-r--r--devel/ruby-cvs/Makefile50
1 files changed, 50 insertions, 0 deletions
diff --git a/devel/ruby-cvs/Makefile b/devel/ruby-cvs/Makefile
new file mode 100644
index 000000000000..9a8f44a6997d
--- /dev/null
+++ b/devel/ruby-cvs/Makefile
@@ -0,0 +1,50 @@
+# New ports collection makefile for: Ruby/CVS
+# Date created: 20 July 2001
+# Whom: Akinori MUSHA aka knu <knu@idaemons.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= cvs
+PORTVERSION= 0.1
+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
+.if !defined(NOPORTDOCS)
+USE_RUBY_RD= yes
+.endif
+
+RUBY_SHEBANG_FILES= ${WRKSRC}/viztree ${WRKSRC}/reviz/reviz
+
+WRKSRC= ${WRKDIR}/ruby-${PORTNAME}
+
+DOCS= README TODO cvs.html tempdir.html
+
+do-build:
+.if !defined(NOPORTDOCS)
+ cd ${WRKSRC} && ${RUBY_RD} lib/cvs.rb > cvs.html
+ cd ${WRKSRC} && ${RUBY_RD} lib/cvs/tempdir.rb > tempdir.html
+.endif
+
+do-install:
+ ${CP} -R ${WRKSRC}/lib/* ${RUBY_SITELIBDIR}/
+.if !defined(NOPORTDOCS)
+ ${MKDIR} ${RUBY_EXAMPLESDIR}/${PORTNAME}/reviz
+ ${INSTALL_DATA} ${WRKSRC}/viztree ${RUBY_EXAMPLESDIR}/${PORTNAME}/
+ ${INSTALL_DATA} ${WRKSRC}/reviz/* ${RUBY_EXAMPLESDIR}/${PORTNAME}/reviz/
+ ${MKDIR} ${RUBY_DOCDIR}/${PORTNAME}
+.for f in ${DOCS}
+ ${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_DOCDIR}/${PORTNAME}/
+.endfor
+.endif
+
+.include <bsd.port.mk>