aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2014-01-10 09:01:16 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2014-01-10 09:01:16 +0000
commit12e20d9fe931d5a007dcefd58ea958edea1717b1 (patch)
tree4e6e902bfc3f0d5ab9d1bd2bbff16c0f1c108d62
parentb65771489817ce8643341fe315ddceb4e7c41355 (diff)
downloadports-12e20d9fe931d5a007dcefd58ea958edea1717b1.tar.gz
ports-12e20d9fe931d5a007dcefd58ea958edea1717b1.zip
Notes
-rw-r--r--devel/lua-lunit/Makefile42
1 files changed, 14 insertions, 28 deletions
diff --git a/devel/lua-lunit/Makefile b/devel/lua-lunit/Makefile
index 8bbf2d1b282c..57d7a2bdebe8 100644
--- a/devel/lua-lunit/Makefile
+++ b/devel/lua-lunit/Makefile
@@ -5,53 +5,39 @@ PORTNAME= lunit
PORTVERSION= 0.5
CATEGORIES= devel
MASTER_SITES= http://www.mroth.net/${PORTNAME}/
-PKGNAMEPREFIX= lua-
+PKGNAMEPREFIX= ${LUA_PKGNAMEPREFIX}
MAINTAINER= sergey.dyatko@gmail.com
COMMENT= Unit Testing Framework for Lua
LICENSE= MIT
-USE_LUA= 5.1
+OPTIONS_DEFINE= DOCS EXAMPLES
+
+USES= lua
+
+NO_BUILD= yes
DOCFILES= DOCUMENTATION README
EXAMPLES= example.lua
LUNIT_FILES= lunit-console.lua lunit-tests.lua lunit.lua
-NO_BUILD= yes
-
OPTIONS_DEFINE= DOCS EXAMPLES
-NO_STAGE= yes
-.include <bsd.port.options.mk>
-
-.if ${ARCH} == "amd64"
-CFLAGS+= -fPIC
-.endif
-
-pre-install:
+post-patch:
${REINPLACE_CMD} -e 's|"lua"|"${LUA_CMD}"|g' ${WRKSRC}/lunit
do-install:
- ${MKDIR} ${PREFIX}/bin
- ${INSTALL_SCRIPT} ${WRKSRC}/lunit ${PREFIX}/bin
-
+ ${INSTALL_SCRIPT} ${WRKSRC}/lunit ${STAGEDIR}${PREFIX}/bin
+ @${MKDIR} ${STAGEDIR}${LUA_MODSHAREDIR}
.for lunit_part in ${LUNIT_FILES}
- ${INSTALL_DATA} ${WRKSRC}/${lunit_part} ${LUA_MODSHAREDIR}
+ ${INSTALL_DATA} ${WRKSRC}/${lunit_part} ${STAGEDIR}${LUA_MODSHAREDIR}
.endfor
-
-.if ${PORT_OPTIONS:MDOCS}
- ${MKDIR} ${DOCSDIR}
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
.for f in ${DOCFILES}
- ${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}/
+ ${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}/
.endfor
- @${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}"
-.endif
-
-.if ${PORT_OPTIONS:MEXAMPLES}
- ${MKDIR} ${EXAMPLESDIR}
- ${INSTALL_DATA} ${WRKSRC}/example.lua ${EXAMPLESDIR}
- @${ECHO_MSG} "===> Examples installed in ${EXAMPLESDIR}"
-.endif
+ @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+ ${INSTALL_DATA} ${WRKSRC}/example.lua ${STAGEDIR}${EXAMPLESDIR}
.include <bsd.port.mk>