4dba2426ed
Inspired by ctemplate and et, Mustache is a framework-agnostic way to render logic-free views. As ctemplates says, "It emphasizes separating logic from presentation: it is impossible to embed application logic in this template language." OK sthen@
29 lines
776 B
Makefile
29 lines
776 B
Makefile
# $OpenBSD: Makefile,v 1.1.1.1 2011/11/17 15:30:08 jeremy Exp $
|
|
|
|
COMMENT = logic-free template language
|
|
|
|
DISTNAME = mustache-0.99.4
|
|
CATEGORIES = textproc
|
|
|
|
# MIT
|
|
PERMIT_PACKAGE_CDROM = Yes
|
|
PERMIT_PACKAGE_FTP = Yes
|
|
PERMIT_DISTFILES_CDROM = Yes
|
|
PERMIT_DISTFILES_FTP = Yes
|
|
|
|
MODULES = lang/ruby
|
|
|
|
CONFIGURE_STYLE = ruby gem
|
|
|
|
post-install:
|
|
cd ${WRKINST}/${LOCALBASE}/${GEM_LIB}/gems/${DISTNAME}/man && \
|
|
mv mustache.1 ${WRKINST}/${LOCALBASE}/man/man1/mustache${GEM_MAN_SUFFIX}.1 && \
|
|
mv mustache.5 ${WRKINST}/${LOCALBASE}/man/man5/mustache${GEM_MAN_SUFFIX}.5
|
|
rm -r ${WRKINST}/${LOCALBASE}/${GEM_LIB}/gems/${DISTNAME}/man
|
|
|
|
REGRESS_DEPENDS = textproc/ruby-ronn,${MODRUBY_FLAVOR}
|
|
MODRUBY_REGRESS = testrb
|
|
MODRUBY_REGRESS_TARGET = -I lib test/*_test.rb
|
|
|
|
.include <bsd.port.mk>
|