source: trunk/dports/science/healpix-c/Portfile

Last change on this file was 152411, checked in by ryandesign@…, 13 months ago

healpix-c, healpix-cxx: use branch variable

Resolves #52181

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.3 KB
Line 
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# $Id: Portfile 152411 2016-09-07 19:29:41Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                healpix-c
7version             3.30.0
8set branch          [join [lrange [split ${version} .] 0 1] .]
9revision            1
10categories          science
11license             GPL-2
12maintainers         aronnax
13description         C language implementation of HEALPix
14long_description \
15  Software for pixelization, hierarchical indexing, synthesis, analysis, and \
16  visualization of data on the sphere. This is the ${description}.
17homepage            http://healpix.sourceforge.net
18platforms           darwin
19master_sites        sourceforge:project/healpix/Healpix_${branch}/
20distname            chealpix-${version}
21
22checksums           rmd160  66afdda4488570c43c446c5c2f28f84a39d54396 \
23                    sha256  dbc5ba0d84d6e5f69bdffe6eb572c206e8fefd5bb187d52bbf9b2763b636dbd7
24
25depends_build       port:pkgconfig
26depends_lib         port:cfitsio
27
28pre-activate {
29    if {[file exists ${prefix}/lib/libchealpix.a]
30        && ![catch {set vers [lindex [registry_active healpix] 0]}]
31        && [vercmp [lindex $vers 1] 3.00] < 0} {
32        registry_deactivate_composite healpix "" [list ports_nodepcheck 1]
33    }
34}
Note: See TracBrowser for help on using the repository browser.