aboutsummaryrefslogtreecommitdiffstats
path: root/devel/ruby-cvs/Makefile
blob: 2b8e9efd0e4e3805f7e3f4a4120d84b92ca164ad (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# 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.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
.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 diff.html tempdir.html

do-build:
.if !defined(NOPORTDOCS)
    cd ${WRKSRC} && ${RUBY_RD} lib/cvs.rb > cvs.html
    cd ${WRKSRC} && ${RUBY_RD} lib/diff.rb > diff.html
    cd ${WRKSRC} && ${RUBY_RD} lib/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>