File: 0002-Support-NetCDF-rc-release

package info (click to toggle)
ruby-netcdf 0.7.2-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,208 kB
  • sloc: ansic: 4,058; ruby: 1,743; makefile: 14; csh: 6
file content (22 lines) | stat: -rw-r--r-- 680 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
From: Debian GIS Project <pkg-grass-devel@lists.alioth.debian.org>
Date: Fri, 31 Jul 2015 12:03:43 +0900
Subject: Support NetCDF RC version

Add rc release support in version check of extconf.rb

Signed-off-by: Youhei SASAKI <uwabami@gfd-dennou.org>
---
 ext/numru/extconf.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/ext/numru/extconf.rb
+++ b/ext/numru/extconf.rb
@@ -51,7 +51,7 @@
 
 ncver0 = ncversion[0..0]  # "3" or "4"
 ncver = ncversion.gsub(/\./,'')
-unless /^\d\d\d$/ =~ ncver   # 3 digits
+unless /^\d\d\d(\-rc)?$/ =~ ncver   # 3 digits
   raise("Invalid netcdf version: #{ncversion}. Use --with-netcdf-version=") 
 end
 $CFLAGS += ' -DNCVER='+ncver