diff options
author | bapt <bapt@FreeBSD.org> | 2014-04-07 22:57:04 +0800 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2014-04-07 22:57:04 +0800 |
commit | 16c99566a4c75a32f7197a929c050237c0aae376 (patch) | |
tree | 6deeb404fc2f296c24e9f65b309f1aecae2f18c4 /math | |
parent | 14ec1143eca6fe84ffef619587f1efe6f16092b4 (diff) | |
download | freebsd-ports-graphics-16c99566a4c75a32f7197a929c050237c0aae376.tar.gz freebsd-ports-graphics-16c99566a4c75a32f7197a929c050237c0aae376.tar.zst freebsd-ports-graphics-16c99566a4c75a32f7197a929c050237c0aae376.zip |
Support stae
Diffstat (limited to 'math')
-rw-r--r-- | math/ruby-gnuplot/Makefile | 25 | ||||
-rw-r--r-- | math/ruby-gnuplot/pkg-plist | 7 |
2 files changed, 16 insertions, 16 deletions
diff --git a/math/ruby-gnuplot/Makefile b/math/ruby-gnuplot/Makefile index f6786563c9f..2b18dceed03 100644 --- a/math/ruby-gnuplot/Makefile +++ b/math/ruby-gnuplot/Makefile @@ -16,6 +16,8 @@ COMMENT= A pipe-based interface to the gnuplot package for Ruby RUN_DEPENDS= ${LOCALBASE}/bin/gnuplot:${PORTSDIR}/math/gnuplot \ ${RUBY_SITEARCHLIBDIR}/narray.so:${PORTSDIR}/math/ruby-narray +OPTIONS_DEFINE= DOCS EXAMPLES + USE_RUBY= yes RUBY_SHEBANG_FILES= ${WRKSRC}/*.rb @@ -24,22 +26,27 @@ NO_BUILD= yes WRKSRC= ${WRKDIR}/gplot -NO_STAGE= yes +DOCSDIR= ${RUBY_MODDOCDIR} +EXAMPLESDIR= ${RUBY_MODEXAMPLESDIR} +PORTDOCS= * +PORTEXAMPLES= * + +MAKE_ARGS= INSTALL_PROG="${INSTALL_PROGRAM}" \ + INSTALL_DATA="${INSTALL_DATA}" + post-patch: ${RUBY} -i.orig -p \ -e 'gsub %r:#!/bin/env:, "#!/usr/bin/env"' \ ${WRKSRC}/Gnuplot.rb do-install: - ${MKDIR} ${RUBY_SITELIBDIR}/gplot - ${INSTALL_DATA} ${WRKSRC}/Gnuplot.rb ${RUBY_SITELIBDIR}/gplot/ -.if !defined(NOPORTDOCS) - ${MKDIR} ${RUBY_MODEXAMPLESDIR} - ${INSTALL_DATA} ${WRKSRC}/*_demo.rb ${RUBY_MODEXAMPLESDIR}/ - ${MKDIR} ${RUBY_MODDOCDIR} + @${MKDIR} ${STAGEDIR}${RUBY_SITELIBDIR}/gplot + ${INSTALL_DATA} ${WRKSRC}/Gnuplot.rb ${STAGEDIR}${RUBY_SITELIBDIR}/gplot/ + @${MKDIR} ${STAGEDIR}${RUBY_MODEXAMPLESDIR} + ${INSTALL_DATA} ${WRKSRC}/*_demo.rb ${STAGEDIR}${RUBY_MODEXAMPLESDIR}/ + @${MKDIR} ${STAGEDIR}${RUBY_MODDOCDIR} .for f in ChangeLog.txt README - ${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_MODDOCDIR}/ + ${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${RUBY_MODDOCDIR}/ .endfor -.endif .include <bsd.port.mk> diff --git a/math/ruby-gnuplot/pkg-plist b/math/ruby-gnuplot/pkg-plist index 987e22b5c58..61255f98754 100644 --- a/math/ruby-gnuplot/pkg-plist +++ b/math/ruby-gnuplot/pkg-plist @@ -1,9 +1,2 @@ %%RUBY_SITELIBDIR%%/gplot/Gnuplot.rb @dirrm %%RUBY_SITELIBDIR%%/gplot -%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/array_demo.rb -%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/func_demo.rb -%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/matrix_demo.rb -%%PORTDOCS%%@dirrm %%RUBY_MODEXAMPLESDIR%% -%%PORTDOCS%%%%RUBY_MODDOCDIR%%/ChangeLog.txt -%%PORTDOCS%%%%RUBY_MODDOCDIR%%/README -%%PORTDOCS%%@dirrm %%RUBY_MODDOCDIR%% |