diff options
author | bapt <bapt@FreeBSD.org> | 2014-04-07 23:36:57 +0800 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2014-04-07 23:36:57 +0800 |
commit | 6b76fc70f74c81d2e95c1cb6099c214b2d67b8fa (patch) | |
tree | 3436de5bcfb77091fe3fb00b6e6e1f83422343dc /science | |
parent | 92f568f15653279e9ed4b0ffca1101e2515a305e (diff) | |
download | freebsd-ports-gnome-6b76fc70f74c81d2e95c1cb6099c214b2d67b8fa.tar.gz freebsd-ports-gnome-6b76fc70f74c81d2e95c1cb6099c214b2d67b8fa.tar.zst freebsd-ports-gnome-6b76fc70f74c81d2e95c1cb6099c214b2d67b8fa.zip |
Support stage
Diffstat (limited to 'science')
-rw-r--r-- | science/ruby-gphys/Makefile | 29 |
1 files changed, 13 insertions, 16 deletions
diff --git a/science/ruby-gphys/Makefile b/science/ruby-gphys/Makefile index 3985ff26e805..1a0f92f5168b 100644 --- a/science/ruby-gphys/Makefile +++ b/science/ruby-gphys/Makefile @@ -14,7 +14,9 @@ DIST_SUBDIR= ruby MAINTAINER= murashin@gfd-dennou.org COMMENT= A multi-purpose class to handle gridded physical quantities -LICENSE= BSD +OPTIONS_DEFINE= DOCS EXAMPLES + +LICENSE= BSD2CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE.txt RUN_DEPENDS= ${RUBY_SITEARCHLIBDIR}/narray.so:${PORTSDIR}/math/ruby-narray \ @@ -26,34 +28,29 @@ RUN_DEPENDS= ${RUBY_SITEARCHLIBDIR}/narray.so:${PORTSDIR}/math/ruby-narray \ ${RUBY_SITELIBDIR}/numru/units.rb:${PORTSDIR}/math/ruby-numru_units \ ${RUBY_SITEARCHLIBDIR}/rb_gsl.so:${PORTSDIR}/math/ruby-gsl BUILD_DEPENDS= ${RUBY_SITEARCHLIBDIR}/narray.so:${PORTSDIR}/math/ruby-narray - USE_RUBY= yes USE_RUBY_EXTCONF= yes +MAKE_ARGS= INSTALL_PROG="${INSTALL_PROGRAM}" \ + INSTALL_DATA="${INSTALL_DATA}" EXAMPLESDIR= ${RUBY_MODEXAMPLESDIR} DOCSDIR= ${RUBY_MODDOCDIR} PORTEXAMPLES= sample* test* PORTDOCS= ChangeLog LICENSE.txt README TODO_ep_flux doc* -NO_STAGE= yes do-install: - cd ${WRKSRC} && ${MAKE} install - cd ${WRKSRC} && ${RUBY} install.rb - -post-install: -.if !defined(NOPORTEXAMPLES) - @${MKDIR} ${EXAMPLESDIR} + cd ${WRKSRC} && ${MAKE} ${MAKE_ARGS} install + cd ${WRKSRC} && ${RUBY} install.rb -d ${STAGEDIR}${RUBY_SITELIBDIR} -b ${STAGEDIR}${PREFIX}/bin + @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} .for i in ${PORTEXAMPLES} - (cd ${WRKSRC} && ${COPYTREE_SHARE} "${i}" ${EXAMPLESDIR}) + (cd ${WRKSRC} && ${COPYTREE_SHARE} "${i}" ${STAGEDIR}${EXAMPLESDIR}) .endfor -.endif -.if !defined(NOPORTDOCS) - @${MKDIR} ${DOCSDIR} + @${MKDIR} ${STAGEDIR}${DOCSDIR} .for i in ${PORTDOCS} - (cd ${WRKSRC} && ${COPYTREE_SHARE} "${i}" ${DOCSDIR}) + (cd ${WRKSRC} && ${COPYTREE_SHARE} "${i}" ${STAGEDIR}${DOCSDIR}) .endfor .for i in ${DOCS} - ${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR} .endfor -.endif + .include <bsd.port.mk> |