-
Notifications
You must be signed in to change notification settings - Fork 1.3k
/
Portfile
41 lines (34 loc) · 1.57 KB
/
Portfile
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
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
PortSystem 1.0
PortGroup R 1.0
R.setup bioconductor grimbough Rhdf5lib 1.26.0
revision 0
categories-append bioconductor
maintainers {@barracuda156 gmail.com:vital.had} openmaintainer
license Artistic-2
description HDF5 library as an R package
long_description {*}${description}
homepage https://github.com/grimbough/Rhdf5lib
checksums rmd160 d89ddf214378ff453480271086096c95a2fcb128 \
sha256 4b3147da31b60c1f2b37db770059762862da7d28cab66d2aaf3799fcede89160 \
size 12061633
# FIXME: reason is unknown at the moment, but recent versions may fail to build on Rosetta:
# See: https://github.com/grimbough/Rhdf5lib/issues/53
# Switch to build_arch due to: https://trac.macports.org/ticket/69301
platform darwin 10 {
if {${configure.build_arch} eq "ppc"} {
# Build system uses multiple configure scripts, and it gets messy on Rosetta otherwise.
patchfiles patch-rosetta.diff
post-patch {
reinplace "s,@BUILD@,powerpc-apple-darwin10,g" ${worksrcpath}/src/Makevars.in
}
build.args-append \
--configure-args="--build=powerpc-apple-darwin10"
}
}
depends_test-append port:R-BiocStyle \
port:R-knitr \
port:R-mockery \
port:R-rmarkdown \
port:R-tinytest
test.run yes