freebsd-ports/textproc/eruby/Makefile

54 lines
1.2 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: eruby
# Date created: 14 Aug 2000
# Whom: Akinori MUSHA aka knu <knu@idaemons.org>
#
# $FreeBSD$
#
PORTNAME= eruby
2002-04-22 17:02:24 -04:00
PORTVERSION= 0.9.8
CATEGORIES= textproc www ruby
2000-12-11 14:54:50 -05:00
MASTER_SITES= http://www.modruby.net/archive/
DIST_SUBDIR= ruby
MAINTAINER= knu@FreeBSD.org
2000-09-07 03:44:38 -04:00
USE_RUBY= yes
2001-06-04 11:56:58 -04:00
.if !defined(NOPORTDOCS)
USE_RUBY_RD= yes
.endif
2001-06-04 11:56:58 -04:00
CONFIGURE_ARGS= --enable-shared --with-charset="${DEFAULT_CHARSET}"
2001-06-08 21:38:53 -04:00
INSTALL_TARGET= site-install
INSTALLS_SHLIB= yes
DEFAULT_CHARSET?= ISO-8859-1
MAN1= eruby.1
2001-06-04 11:56:58 -04:00
DOCS_EN= COPYING ChangeLog README.en eruby.html eruby.rd
DOCS_JA= README.ja
do-configure:
@cd ${WRKSRC}; ${SETENV} ${CONFIGURE_ENV} ${RUBY} configure.rb ${CONFIGURE_ARGS}
2001-06-04 11:56:58 -04:00
post-build:
.if !defined(NOPORTDOCS)
cd ${WRKSRC}; ${RUBY_RD} eruby.rd > eruby.html
.endif
post-install:
.if !defined(NOPORTDOCS)
2001-06-04 11:56:58 -04:00
${MKDIR} ${RUBY_EXAMPLESDIR}/${PORTNAME}
${INSTALL_DATA} ${WRKSRC}/examples/* ${RUBY_EXAMPLESDIR}/${PORTNAME}/
${MKDIR} ${RUBY_DOCDIR}/${PORTNAME}/ja
.for f in ${DOCS_EN}
2001-06-04 11:56:58 -04:00
${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_DOCDIR}/${PORTNAME}/
.endfor
.for f in ${DOCS_JA}
2001-06-04 11:56:58 -04:00
${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_DOCDIR}/${PORTNAME}/ja/
.endfor
.endif
.include <bsd.port.mk>