blob: 95a90e2bb05177ed4e3e829d04fee9ab36bf86d2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
# Created by: Shin'ya Murakami <murakami@ahs.scitec.kobe-u.ac.jp>
# $FreeBSD$
PORTNAME= gphys
PORTVERSION= 1.2.2
CATEGORIES= science ruby
MASTER_SITES= http://ruby.gfd-dennou.org/products/gphys/release/ \
http://dennou-h.gfd-dennou.org/library/ruby/products/gphys/release/ \
http://dennou-q.gfd-dennou.org/library/ruby/products/gphys/release/
PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
DIST_SUBDIR= ruby
MAINTAINER= murashin@gfd-dennou.org
COMMENT= A multi-purpose class to handle gridded physical quantities
LICENSE= BSD
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
RUN_DEPENDS= ${RUBY_SITEARCHLIBDIR}/narray.so:${PORTSDIR}/math/ruby-narray \
${RUBY_SITELIBDIR}/narray_miss.rb:${PORTSDIR}/math/ruby-narray_miss \
${RUBY_SITEARCHLIBDIR}/numru/dcl_raw.so:${PORTSDIR}/science/ruby-dcl \
${RUBY_SITEARCHLIBDIR}/numru/netcdfraw.so:${PORTSDIR}/science/ruby-netcdf \
${RUBY_SITEARCHLIBDIR}/numru/fftw3.so:${PORTSDIR}/math/ruby-fftw3 \
${RUBY_SITELIBDIR}/numru/misc.rb:${PORTSDIR}/math/ruby-numru_misc \
${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
EXAMPLESDIR= ${RUBY_MODEXAMPLESDIR}
DOCSDIR= ${RUBY_MODDOCDIR}
PORTEXAMPLES= sample* test*
PORTDOCS= ChangeLog LICENSE.txt README TODO_ep_flux doc*
do-install:
cd ${WRKSRC} && ${MAKE} install
cd ${WRKSRC} && ${RUBY} install.rb
post-install:
.if !defined(NOPORTEXAMPLES)
@${MKDIR} ${EXAMPLESDIR}
.for i in ${PORTEXAMPLES}
(cd ${WRKSRC} && ${COPYTREE_SHARE} "${i}" ${EXAMPLESDIR})
.endfor
.endif
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
.for i in ${PORTDOCS}
(cd ${WRKSRC} && ${COPYTREE_SHARE} "${i}" ${DOCSDIR})
.endfor
.for i in ${DOCS}
${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
.endfor
.endif
.include <bsd.port.mk>
|