aboutsummaryrefslogtreecommitdiffstats
path: root/www/ruby-borges/Makefile
blob: d56db638114c6a037b668de04c09fc43e213ba2d (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
# New ports collection makefile for:    Ruby-Borges
# Date created:     31 January 2003
# Whom:         Akinori MUSHA aka knu <knu@idaemons.org>
#
# $FreeBSD$
#

PORTNAME=   borges
PORTVERSION=    1.1.0
CATEGORIES= www ruby
MASTER_SITES=   ${MASTER_SITE_RUBYFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
PKGNAMEPREFIX=  ${RUBY_PKGNAMEPREFIX}
DIST_SUBDIR=    ruby

MAINTAINER= ports@FreeBSD.org
COMMENT=    A web application framework for Ruby that allows linear programming

USE_RUBY=   yes
USE_RUBY_SETUP= yes

DOCS=       BUGS CHANGELOG README
EXAMPLES=   data/examples/ruby/borges/*

RUBY_REQUIRE=   Ruby > 180

.include <bsd.port.pre.mk>

.if !defined(RUBY_PROVIDED)
IGNORE=     only works with Ruby 1.8.0 or later
.endif

post-extract:
# This port is not really RUBY_MODEXAMPLESDIR/RUBY_MODDOCDIR clean
.for d in doc examples
    ${MV} ${WRKSRC}/data/${d}/ruby/Borges ${WRKSRC}/data/${d}/ruby/borges
    ${MV} ${WRKSRC}/data/${d}/ruby ${WRKSRC}/data/${d}/${RUBY_NAME}
.if defined(NOPORTDOCS)
    ${MV} ${WRKSRC}/data/${d} ${WRKSRC}/
.endif
.endfor

.include <bsd.port.post.mk>