-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
/
Portfile
67 lines (54 loc) · 2.41 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# -*- 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
name ldas-tools
version 20161022
categories science
platforms any
maintainers nomaintainer
supported_archs noarch
description Suite of LDAS tools meta-port
long_description {*}${description}
homepage http://https://wiki.ligo.org/DASWG/LDASTools
master_sites ${homepage}
distfiles
depends_run port:ldas-tools-al \
port:ldas-tools-filters \
port:ldas-tools-framecpp \
port:ldas-tools-ldasgen \
port:ldas-tools-diskcacheAPI \
port:ldas-tools-frameAPI \
port:ldas-tools-utilities
build {}
destroot {
xinstall -d ${destroot}${prefix}/share/doc/${name}-${version}
system "echo ${long_description} > ${destroot}${prefix}/share/doc/${name}-${version}/README.txt"
}
use_configure no
livecheck.type none
#========================================================================
# Create subports for each supported Python version
#========================================================================
foreach v {27} {
set python.version ${v}
set python.branch [string range ${python.version} 0 end-1].[string index ${python.version} end]
set python.bin ${prefix}/bin/python${python.branch}
set python.prefix ${frameworks_dir}/Python.framework/Versions/${python.branch}
set python.site_packages "${python.prefix}/lib/python${python.branch}/site-packages"
set python.pkgname LDAStools
subport py${v}-${name} {
categories-prepend python
description Python ${python.version} bindings for {*}${description}
long_description {*}${long_description} This package provides Python \
${python.version} bindings, modules, and scripts.
depends_run port:py${v}-ldas-tools-al \
port:py${v}-ldas-tools-framecpp \
port:py${v}-ldas-tools-ldasgen \
port:py${v}-ldas-tools-frameAPI \
port:py${v}-ldas-tools-diskcacheAPI
destroot {
xinstall -d ${destroot}${prefix}/share/doc/py${python.version}-${name}-${version}
system "echo ${long_description} > ${destroot}${prefix}/share/doc/py${python.version}-${name}-${version}/README.txt"
}
livecheck.type none
}
}