aboutsummaryrefslogtreecommitdiffstats
path: root/math
diff options
context:
space:
mode:
authordanilo <danilo@FreeBSD.org>2014-02-15 22:35:37 +0800
committerdanilo <danilo@FreeBSD.org>2014-02-15 22:35:37 +0800
commit0634f0c3b990747e9bd6433d89f621ca8fb30f8f (patch)
tree6ca9e5d6350b476c009c62a77013cbfeb3f591e5 /math
parentccba6500aec6f67260063de23d02fd1189075811 (diff)
downloadfreebsd-ports-gnome-0634f0c3b990747e9bd6433d89f621ca8fb30f8f.tar.gz
freebsd-ports-gnome-0634f0c3b990747e9bd6433d89f621ca8fb30f8f.tar.zst
freebsd-ports-gnome-0634f0c3b990747e9bd6433d89f621ca8fb30f8f.zip
- Add stage support
- Add DOCS option - Remove the indefinite article from COMMENT
Diffstat (limited to 'math')
-rw-r--r--math/ruby-algebra/Makefile17
1 files changed, 8 insertions, 9 deletions
diff --git a/math/ruby-algebra/Makefile b/math/ruby-algebra/Makefile
index 3f68df729525..644886afa303 100644
--- a/math/ruby-algebra/Makefile
+++ b/math/ruby-algebra/Makefile
@@ -9,28 +9,27 @@ PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
DIST_SUBDIR= ruby
MAINTAINER= ports@FreeBSD.org
-COMMENT= A Ruby library for mathematical (algebraic) computations
+COMMENT= Ruby library for mathematical (algebraic) computations
USE_RUBY= yes
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
NO_BUILD= yes
+OPTIONS_DEFINE= DOCS
+
DOCS_EN= doc/*.rd doc/*.html
DOCS_JA= doc-ja/*.rd doc-ja/*.html
-NO_STAGE= yes
do-install:
-.if !defined(NOPORTDOCS)
- ${MKDIR} ${RUBY_MODEXAMPLESDIR}
- ${INSTALL_DATA} ${WRKSRC}/sample/* ${RUBY_MODEXAMPLESDIR}/
- ${MKDIR} ${RUBY_MODDOCDIR}/ja
+ @${MKDIR} ${STAGEDIR}${RUBY_MODEXAMPLESDIR}
+ ${INSTALL_DATA} ${WRKSRC}/sample/* ${STAGEDIR}${RUBY_MODEXAMPLESDIR}/
+ @${MKDIR} ${STAGEDIR}${RUBY_MODDOCDIR}/ja
.for f in ${DOCS_EN}
- ${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_MODDOCDIR}/
+ ${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${RUBY_MODDOCDIR}/
.endfor
.for f in ${DOCS_JA}
- ${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_MODDOCDIR}/ja/
+ ${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${RUBY_MODDOCDIR}/ja/
.endfor
-.endif
.include <bsd.port.mk>