summaryrefslogtreecommitdiff
path: root/www/ruby-borges/Makefile
blob: 60b746733f5c1e538084468d6117c7627466ad8d (plain)
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
# $NetBSD: Makefile,v 1.19 2010/09/10 12:52:39 taca Exp $

DISTNAME=	borges-1.1.0
PKGREVISION=	2
CATEGORIES=	www ruby
MASTER_SITES=	http://rubyforge.org/frs/download.php/574/ \
		http://segment7.net/projects/ruby/borges/

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	http://borges.rubyforge.org/
COMMENT=	Ruby web application framework
LICENSE=	modified-bsd

PKG_DESTDIR_SUPPORT=	user-destdir

USE_RUBY_SETUP=		yes
CONFIGURE_ARGS+=	--site-ruby-common=${PREFIX}/${RUBY_VENDORLIB_BASE} \
			--site-ruby=${PREFIX}/${RUBY_VENDORLIB} \
			--so-dir=path=${PREFIX}/${RUBY_VENDORARCHLIB}

BORGES_SHARE_DIR=	data/doc data/examples

.include "../../lang/ruby/rubyversion.mk"

.if !empty(RUBY_SUFFIX)
pre-configure:
.for d in ${BORGES_SHARE_DIR}
	cd ${WRKSRC}; if [ -d ${d}/ruby ]; then \
		 ${MV} -f ${d}/ruby ${d}/${RUBY_NAME}; \
	fi
.endfor
.endif

.include "../../lang/ruby/modules.mk"
.include "../../mk/bsd.pkg.mk"