aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/ruby-xtemplate/Makefile
blob: edcbd23e2dd0cbb047dbdc9d7f9ad715f87f770b (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
# New ports collection makefile for:    Ruby/XTemplate
# Date created:     6 February 2003
# Whom:         Akinori MUSHA aka knu <knu@idaemons.org>
#
# $FreeBSD$
#

PORTNAME=   xtemplate
PORTVERSION=    0.8.0
CATEGORIES= textproc ruby
MASTER_SITES=   SF
PKGNAMEPREFIX=  ${RUBY_PKGNAMEPREFIX}
DIST_SUBDIR=    ruby

MAINTAINER= ruby@FreeBSD.org
COMMENT=    A lightweight XML template engine for Ruby

DEPRECATED= Doesn't work with Ruby 1.9
EXPIRATION_DATE=    2011-08-03

RUN_DEPENDS=    ${RUBY_SITELIBDIR}/xmlscan/parser.rb:${PORTSDIR}/textproc/ruby-xmlscan

USE_RUBY=   yes
USE_RUBY_SETUP= yes
RUBY_SETUP= install.rb

CONFIGURE_ARGS= --with-ext

DOCS_EN=    CHANGES README STATUS TUTORIAL

.include <bsd.port.pre.mk>

.if ${RUBY_VER} == 1.9
BROKEN= does not build with ruby 1.9
.endif

post-install:
.if !defined(NOPORTDOCS)
    ${MKDIR} ${RUBY_MODEXAMPLESDIR}
    ${INSTALL_DATA} ${WRKSRC}/samples/* ${RUBY_MODEXAMPLESDIR}/
    ${MKDIR} ${RUBY_MODDOCDIR}
.for f in ${DOCS_EN}
    ${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_MODDOCDIR}/
.endfor
.endif

.include <bsd.port.post.mk>