freebsd-ports/math/ruby-bigfloat/Makefile
Akinori MUSHA 37f0f0aa36 Bump the PORTREVISION's of the ports which install architecture
dependent ruby modules, due to the RUBY_ARCH change I've just
committed.
2001-09-17 17:54:27 +00:00

48 lines
1.2 KiB
Makefile

# New ports collection makefile for: Ruby-BigFloat
# Date created: 7 Aug 2000
# Whom: Akinori MUSHA aka knu <knu@idaemons.org>
#
# $FreeBSD$
#
PORTNAME= bigfloat
PORTVERSION= 1.1.7
PORTREVISION= 1
CATEGORIES= math ruby
MASTER_SITES= http://www.tinyforest.gr.jp/ruby/
PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${PORTNAME}.html ${PORTNAME}_en.html
DIST_SUBDIR= ruby
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
MAINTAINER= knu@FreeBSD.org
IGNOREFILES= ${PORTNAME}.html ${PORTNAME}_en.html
USE_RUBY= yes
USE_RUBY_EXTCONF= yes
NO_WRKSUBDIR= yes
INSTALL_TARGET= site-install
DOCS_EN= README ${PORTNAME}_en.html
DOCS_JA= ${PORTNAME}.html
post-extract:
${RUBY} -pe 'gsub %r|\./(${PORTNAME}_en.html)|, "../\\1"' \
${_DISTDIR}/${PORTNAME}.html > ${WRKSRC}/${PORTNAME}.html
${RUBY} -pe 'gsub %r|\./(${PORTNAME}.html)|, "./ja/\\1"' \
${_DISTDIR}/${PORTNAME}_en.html > ${WRKSRC}/${PORTNAME}_en.html
post-install:
.if !defined(NOPORTDOCS)
${MKDIR} ${RUBY_DOCDIR}/${PORTNAME}/ja
.for f in ${DOCS_EN}
${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_DOCDIR}/${PORTNAME}/
.endfor
.for f in ${DOCS_JA}
${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_DOCDIR}/${PORTNAME}/ja/
.endfor
.endif
.include <bsd.port.mk>