Files

30 lines
1.2 KiB
Tcl
Raw Permalink Normal View History

2024-02-27 20:36:47 +07:00
# -*- 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 ruby 1.0
ruby.branches 3.3 3.2 3.1
ruby.setup numo-narray 0.9.2.1 gem {} rubygems
revision 1
2024-02-27 20:36:47 +07:00
categories-append math
license BSD
2026-04-11 19:42:02 +04:00
maintainers nomaintainer
2024-02-27 20:36:47 +07:00
description New NArray class library
long_description {*}${description}
homepage https://ruby-numo.github.io/narray
checksums rmd160 58e1f5f9666bba0b4f67688418f372bac1fd291b \
sha256 eed76b47eebe1288ffd878b387f1882f4863d8e6ab5dd61453768139e14adceb \
size 121856
# https://trac.macports.org/ticket/70129
# https://github.com/ruby-numo/numo-narray/issues/215
if {${name} ne ${subport}} {
depends_extract port:rb${ruby.suffix}-gem-patch
post-patch {
copy ${filespath}/patch-use-right-ruby.diff ${worksrcpath}
reinplace "s|@RUBY@|${ruby.bin}|g" ${worksrcpath}/patch-use-right-ruby.diff
system -W ${worksrcpath} "${ruby.gem} patch ${ruby.filename}.gem patch-use-right-ruby.diff -o ${ruby.filename}.gem -p0"
}
}