From 1451e6cf1db3a62ae3b3a65619aa93c865d2315e Mon Sep 17 00:00:00 2001
From: "ed.maros" <ed.maros@ligo.org>
Date: Tue, 1 Nov 2016 17:29:03 -0700
Subject: [PATCH] Updated to source distribution 20161022
---
science/ldas-tools/Portfile | 50 +++++++++++++++++++++++++++++++++++++--------
1 file changed, 41 insertions(+), 9 deletions(-)
diff --git a/science/ldas-tools/Portfile b/science/ldas-tools/Portfile
index effa1ab..c717687 100644
a
|
b
|
|
1 | | # $Id$ |
| 1 | # -*- 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 |
2 | 2 | |
3 | 3 | PortSystem 1.0 |
4 | 4 | |
5 | | name ldas-tools |
6 | | version 20160622 |
| 5 | name ldas-tools |
| 6 | version 20161022 |
7 | 7 | categories science |
8 | 8 | platforms darwin |
9 | 9 | maintainers ligo.org:ed.maros |
… |
… |
master_sites ${homepage} |
18 | 18 | distfiles |
19 | 19 | |
20 | 20 | depends_run port:ldas-tools-al \ |
21 | | port:ldas-tools-filters \ |
22 | | port:ldas-tools-framecpp \ |
23 | | port:ldas-tools-ldasgen \ |
24 | | port:ldas-tools-diskcacheAPI \ |
25 | | port:ldas-tools-frameAPI \ |
26 | | port:ldas-tools-utilities |
| 21 | port:ldas-tools-filters \ |
| 22 | port:ldas-tools-framecpp \ |
| 23 | port:ldas-tools-ldasgen \ |
| 24 | port:ldas-tools-diskcacheAPI \ |
| 25 | port:ldas-tools-frameAPI \ |
| 26 | port:ldas-tools-utilities |
27 | 27 | |
28 | 28 | build {} |
29 | 29 | destroot { |
… |
… |
destroot { |
33 | 33 | |
34 | 34 | use_configure no |
35 | 35 | livecheck.type none |
| 36 | |
| 37 | #======================================================================== |
| 38 | # Create subports for each supported Python version |
| 39 | #======================================================================== |
| 40 | foreach v {27} { |
| 41 | set python.version ${v} |
| 42 | set python.branch [string range ${python.version} 0 end-1].[string index ${python.version} end] |
| 43 | set python.bin ${prefix}/bin/python${python.branch} |
| 44 | set python.prefix ${frameworks_dir}/Python.framework/Versions/${python.branch} |
| 45 | set python.site_packages "${python.prefix}/lib/python${python.branch}/site-packages" |
| 46 | set python.pkgname LDAStools |
| 47 | |
| 48 | subport py${v}-${name} { |
| 49 | categories-prepend python |
| 50 | description Python ${python.version} bindings for ${description} |
| 51 | long_description ${long_description} This package provides Python \ |
| 52 | ${python.version} bindings, modules, and scripts. |
| 53 | |
| 54 | depends_run port:py${v}-ldas-tools-al \ |
| 55 | port:py${v}-ldas-tools-framecpp \ |
| 56 | port:py${v}-ldas-tools-ldasgen \ |
| 57 | port:py${v}-ldas-tools-frameAPI \ |
| 58 | port:py${v}-ldas-tools-diskcacheAPI |
| 59 | |
| 60 | destroot { |
| 61 | xinstall -d ${destroot}${prefix}/share/doc/py${python.version}-${name}-${version} |
| 62 | system "echo ${long_description} > ${destroot}${prefix}/share/doc/py${python.version}-${name}-${version}/README.txt" |
| 63 | } |
| 64 | |
| 65 | livecheck.type none |
| 66 | } |
| 67 | } |