# -*- 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
# $Id: Portfile 119604 2014-05-02 09:12:57Z ryandesign@macports.org $

PortSystem          1.0
PortGroup           github 1.0

github.setup        cusplibrary cusplibrary 0.4.0

name                cusp
categories          math science
platforms           darwin
license             Apache-2
supported_archs     noarch
maintainers         sean openmaintainer
description         Generic Parallel Algorithms for Sparse Matrix and Graph
long_description    \
    Cusp is a library for sparse linear algebra and graph computations on CUDA. Cusp \
    provides a flexible, high-level interface for manipulating sparse matrices and \
    solving sparse linear systems.

homepage            http://cusplibrary.github.io

checksums           rmd160  589b3e690ff2e1814caad0bc3fffe327c560a8e3 \
                    sha256  03bfd5fefe06c9fbe7c79281a2baba013bfce3d17a875334a6a1bba980feb2d8

use_configure       no

build {}

destroot {
    move ${worksrcpath}/cusp ${destroot}${prefix}/include
}

# this project doesn't use tags, so we have to check branches
livecheck.type      regex
livecheck.url       https://github.com/cusplibrary/cusplibrary/branches?merged=1
livecheck.regex     tree/(\[0-9.\]+)
