summaryrefslogtreecommitdiffstats
path: root/lang/ruby-lua4/Makefile
blob: d6b0b566d225077085c4f35af9fe76dd7661aa61 (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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# Created by: Akinori MUSHA aka knu <knu@idaemons.org>
# $FreeBSD$

PORTNAME=	lua
PORTVERSION=	20010921
PORTREVISION=	1
CATEGORIES=	lang ruby
MASTER_SITES=	LOCAL/knu
PKGNAMEPREFIX=	${RUBY_PKGNAMEPREFIX}
DISTNAME=	ruby${PORTNAME}-${PORTVERSION}
DIST_SUBDIR=	ruby

MAINTAINER=	ruby@FreeBSD.org
COMMENT=	A Ruby extension to make Lua script language as a class

DEPRECATED=	Does not work with Ruby 1.9
EXPIRATION_DATE=	2012-05-02

USE_LUA=	4.0
USE_ZIP=	yes

USE_RUBY=	yes
USE_RUBY_EXTCONF=	yes
RUBY_EXTCONF=	luaconf.rb
RUBY_MODNAME=	${PORTNAME}-${LUA_VER}

NO_WRKSUBDIR=	yes
INSTALL_TARGET=	site-install

EXAMPLES=	html_ssi_lua.rb test_*

post-patch:
	@${REINPLACE_CMD} -Ee 's/[[:<:]](lua(lib)?)[[:>:]]/\1-${LUA_VER}/' \
		${WRKSRC}/${RUBY_EXTCONF}

post-configure:
	@${REINPLACE_CMD} -Ee 's|^(CPPFLAGS =.*)|\1 -I${LUA_INCDIR}|' \
		${WRKSRC}/${MAKEFILE}

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

.include <bsd.port.pre.mk>
.if ${RUBY_VER} == 1.9
BROKEN=	does not build with ruby 1.9
.endif
.include <bsd.port.post.mk>
OpenPOWER on IntegriCloud