aboutsummaryrefslogtreecommitdiffstats
path: root/devel/ruby-cache/Makefile
blob: aa6e08bf197bca8ccf2887983d192a258bada312 (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
# New ports collection makefile for:    Ruby/Cache
# Date created:     22 November 2002
# Whom:         Akinori MUSHA aka knu <knu@idaemons.org>
#
# $FreeBSD$
#

PORTNAME=   cache
PORTVERSION=    0.2
CATEGORIES= devel ruby
MASTER_SITES=   http://savannah.nongnu.org/download/pupa/ruby-cache.pkg/${PORTVERSION}/
PKGNAMEPREFIX=  ${RUBY_PKGNAMEPREFIX}
DISTNAME=   ruby-${PORTNAME}-${PORTVERSION}
DIST_SUBDIR=    ruby

MAINTAINER= knu@FreeBSD.org

USE_RUBY=   yes
USE_RUBY_SETUP= yes
RUBY_SETUP= install.rb

RUBY_RD_FILES=  ${WRKSRC}/MANUAL.rd ${WRKSRC}/README.rd
DOCS=       ${RUBY_RD_FILES} ${RUBY_RD_HTML_FILES}

post-install: doc-install

.include <bsd.port.mk>

doc-install:
.if !defined(NOPORTDOCS)
    ${MKDIR} ${RUBY_MODDOCDIR}
.for f in ${DOCS}
    ${INSTALL_DATA} ${f} ${RUBY_MODDOCDIR}/
.endfor
    ${MKDIR} ${RUBY_MODEXAMPLESDIR}
    ${INSTALL_DATA} ${WRKSRC}/sample/*.rb ${RUBY_MODEXAMPLESDIR}/
.endif