Thu Mar 17 16:01:12 2022 UTC ()
biology/hisat2: Update to 2.2.1

pkgsrc fix: Unbreak build on Darwin

Add python3 support
Several bug fixes and enhancements
Changes: https://github.com/DaehwanKimLab/hisat2/tags


(bacon)
diff -r1.6 -r1.7 pkgsrc/biology/hisat2/Makefile
diff -r1.1 -r1.2 pkgsrc/biology/hisat2/PLIST
diff -r1.3 -r1.4 pkgsrc/biology/hisat2/distinfo
diff -r1.1 -r0 pkgsrc/biology/hisat2/files/Makefile.pkg
diff -r0 -r1.1 pkgsrc/biology/hisat2/patches/patch-Makefile
diff -r0 -r1.1 pkgsrc/biology/hisat2/patches/patch-processor__support.h
diff -r1.1 -r1.2 pkgsrc/biology/hisat2/patches/patch-hisat2

cvs diff -r1.6 -r1.7 pkgsrc/biology/hisat2/Makefile (expand / switch to unified diff)

--- pkgsrc/biology/hisat2/Makefile 2021/05/24 19:49:11 1.6
+++ pkgsrc/biology/hisat2/Makefile 2022/03/17 16:01:11 1.7
@@ -1,30 +1,32 @@ @@ -1,30 +1,32 @@
1# $NetBSD: Makefile,v 1.6 2021/05/24 19:49:11 wiz Exp $ 1# $NetBSD: Makefile,v 1.7 2022/03/17 16:01:11 bacon Exp $
2 2
3DISTNAME= hisat2-2.1.0.23 3DISTNAME= hisat2-2.2.1
4PKGREVISION= 5 
5CATEGORIES= biology 4CATEGORIES= biology
6MASTER_SITES= ${MASTER_SITE_GITHUB:=infphilo/} 5MASTER_SITES= ${MASTER_SITE_GITHUB:=DaehwanKimLab/}
7GITHUB_TAG= 20f333e2cfe7ff4d1362b248912893e2644683d7 6GITHUB_TAG= v${PKGVERSION_NOREV}
8 7
9MAINTAINER= bacon@NetBSD.org 8MAINTAINER= bacon@NetBSD.org
10HOMEPAGE= https://ccb.jhu.edu/software/hisat2/index.shtml 9HOMEPAGE= https://ccb.jhu.edu/software/hisat2/index.shtml
11COMMENT= Alignment program for mapping next-generation sequencing reads 10COMMENT= Alignment program for mapping next-generation sequencing reads
12LICENSE= gnu-gpl-v3 11LICENSE= gnu-gpl-v3
13 12
14# 64-bit code, some assembly language 13# 64-bit code, some assembly language
15ONLY_FOR_PLATFORM= *-*-x86_64 14ONLY_FOR_PLATFORM= *-*-x86_64
16 15
17USE_LANGUAGES= c c++ 16USE_LANGUAGES= c c++
18USE_TOOLS+= bash gmake perl 17USE_TOOLS+= bash gmake perl
19 18
20REPLACE_BASH= hisatgenotype_scripts/*.sh 19REPLACE_BASH= scripts/*.sh
21REPLACE_PERL= hisat2 scripts/*.sh scripts/*.pl 20REPLACE_PERL= hisat2 scripts/*.sh scripts/*.pl scripts/*.py
22REPLACE_PYTHON= *.py hisat2-build hisat2-inspect 21REPLACE_PYTHON= *.py scripts/*.py hisat2-build hisat2-inspect
23REPLACE_PYTHON+= hisatgenotype_modules/*.py hisatgenotype_scripts/*.py 
24 22
25MAKE_FILE= ${FILESDIR}/Makefile.pkg 
26PTHREAD_AUTO_VARS= yes 23PTHREAD_AUTO_VARS= yes
 24WRKSRC= ${WRKDIR}/hisat2-2.2.1
 25
 26# Unbreak #include <version> on case-insensitive file systems
 27post-patch:
 28 ${MV} ${WRKSRC}/VERSION ${WRKSRC}/HISAT2_VERSION
27 29
28.include "../../lang/python/application.mk" 30.include "../../lang/python/application.mk"
29.include "../../mk/pthread.buildlink3.mk" 31.include "../../mk/pthread.buildlink3.mk"
30.include "../../mk/bsd.pkg.mk" 32.include "../../mk/bsd.pkg.mk"

cvs diff -r1.1 -r1.2 pkgsrc/biology/hisat2/PLIST (expand / switch to unified diff)

--- pkgsrc/biology/hisat2/PLIST 2019/01/15 01:26:29 1.1
+++ pkgsrc/biology/hisat2/PLIST 2022/03/17 16:01:11 1.2
@@ -1,82 +1,67 @@ @@ -1,82 +1,67 @@
1@comment $NetBSD: PLIST,v 1.1 2019/01/15 01:26:29 bacon Exp $ 1@comment $NetBSD: PLIST,v 1.2 2022/03/17 16:01:11 bacon Exp $
2bin/hisat2 2bin/hisat2
3bin/hisat2-align-l 3bin/hisat2-align-l
4bin/hisat2-align-s 4bin/hisat2-align-s
5bin/hisat2-build 5bin/hisat2-build
6bin/hisat2-build-l 6bin/hisat2-build-l
7bin/hisat2-build-s 7bin/hisat2-build-s
8bin/hisat2-inspect 8bin/hisat2-inspect
9bin/hisat2-inspect-l 9bin/hisat2-inspect-l
10bin/hisat2-inspect-s 10bin/hisat2-inspect-s
11libexec/hisat2/compare_HLA_Omixon.py 11bin/hisat2-repeat
12libexec/hisat2/convert_quals.pl 12libexec/hisat2/convert_quals.pl
13libexec/hisat2/extract_Omixon_HLA.py 
14libexec/hisat2/extract_exons.py 13libexec/hisat2/extract_exons.py
15libexec/hisat2/extract_splice_sites.py 14libexec/hisat2/extract_splice_sites.py
16libexec/hisat2/gen_2b_occ_lookup.pl 15libexec/hisat2/gen_2b_occ_lookup.pl
17libexec/hisat2/gen_occ_lookup.pl 16libexec/hisat2/gen_occ_lookup.pl
18libexec/hisat2/gen_solqual_lookup.pl 17libexec/hisat2/gen_solqual_lookup.pl
19libexec/hisat2/hisat2_extract_exons.py 18libexec/hisat2/hisat2_extract_exons.py
20libexec/hisat2/hisat2_extract_snps_haplotypes_UCSC.py 19libexec/hisat2/hisat2_extract_snps_haplotypes_UCSC.py
21libexec/hisat2/hisat2_extract_snps_haplotypes_VCF.py 20libexec/hisat2/hisat2_extract_snps_haplotypes_VCF.py
22libexec/hisat2/hisat2_extract_splice_sites.py 21libexec/hisat2/hisat2_extract_splice_sites.py
 22libexec/hisat2/hisat2_read_statistics.py
23libexec/hisat2/hisat2_simulate_reads.py 23libexec/hisat2/hisat2_simulate_reads.py
24libexec/hisat2/hisatgenotype.py 
25libexec/hisat2/hisatgenotype_HLA_genotyping_PGs.py 
26libexec/hisat2/hisatgenotype_assembly_graph.py 
27libexec/hisat2/hisatgenotype_build_genome.py 
28libexec/hisat2/hisatgenotype_convert_codis.py 
29libexec/hisat2/hisatgenotype_extract_codis_data.py 
30libexec/hisat2/hisatgenotype_extract_cyp_data.py 
31libexec/hisat2/hisatgenotype_extract_reads.py 
32libexec/hisat2/hisatgenotype_extract_vars.py 
33libexec/hisat2/hisatgenotype_gene_typing.py 
34libexec/hisat2/hisatgenotype_hla_cyp.py 
35libexec/hisat2/hisatgenotype_locus.py 
36libexec/hisat2/hisatgenotype_locus_samples.py 
37libexec/hisat2/hisatgenotype_typing_common.py 
38libexec/hisat2/infer_fraglen.pl 24libexec/hisat2/infer_fraglen.pl
39libexec/hisat2/make_a_thaliana_tair.sh 25libexec/hisat2/make_a_thaliana_tair.sh
40libexec/hisat2/make_b_taurus_UMD3.sh 26libexec/hisat2/make_b_taurus_UMD3.sh
41libexec/hisat2/make_bdgp6.sh 27libexec/hisat2/make_bdgp6.sh
42libexec/hisat2/make_bdgp6_tran.sh 28libexec/hisat2/make_bdgp6_tran.sh
43libexec/hisat2/make_canFam2.sh 29libexec/hisat2/make_canFam2.sh
44libexec/hisat2/make_ce10.sh 30libexec/hisat2/make_ce10.sh
45libexec/hisat2/make_dm6.sh 31libexec/hisat2/make_dm6.sh
46libexec/hisat2/make_e_coli.sh 32libexec/hisat2/make_e_coli.sh
47libexec/hisat2/make_grch37.sh 33libexec/hisat2/make_grch37.sh
48libexec/hisat2/make_grch37_snp.sh 34libexec/hisat2/make_grch37_snp.sh
49libexec/hisat2/make_grch37_snp_tran.sh 35libexec/hisat2/make_grch37_snp_tran.sh
50libexec/hisat2/make_grch37_snp_tran_ercc.sh 36libexec/hisat2/make_grch37_snp_tran_ercc.sh
51libexec/hisat2/make_grch37_tran.sh 37libexec/hisat2/make_grch37_tran.sh
52libexec/hisat2/make_grch38.sh 38libexec/hisat2/make_grch38.sh
 39libexec/hisat2/make_grch38_rep.sh
53libexec/hisat2/make_grch38_snp.sh 40libexec/hisat2/make_grch38_snp.sh
 41libexec/hisat2/make_grch38_snp_rep.sh
54libexec/hisat2/make_grch38_snp_tran.sh 42libexec/hisat2/make_grch38_snp_tran.sh
55libexec/hisat2/make_grch38_snp_tran_ercc.sh 43libexec/hisat2/make_grch38_snp_tran_ercc.sh
56libexec/hisat2/make_grch38_tran.sh 44libexec/hisat2/make_grch38_tran.sh
57libexec/hisat2/make_grcm38.sh 45libexec/hisat2/make_grcm38.sh
58libexec/hisat2/make_grcm38_snp.sh 46libexec/hisat2/make_grcm38_snp.sh
59libexec/hisat2/make_grcm38_snp_tran.sh 47libexec/hisat2/make_grcm38_snp_tran.sh
60libexec/hisat2/make_grcm38_tran.sh 48libexec/hisat2/make_grcm38_tran.sh
61libexec/hisat2/make_hg19.sh 49libexec/hisat2/make_hg19.sh
62libexec/hisat2/make_hg38.sh 50libexec/hisat2/make_hg38.sh
63libexec/hisat2/make_hg38_allsnp.sh 51libexec/hisat2/make_hg38_allsnp.sh
64libexec/hisat2/make_hg38_snp.sh 52libexec/hisat2/make_hg38_snp.sh
65libexec/hisat2/make_hg38_snp_tran.sh 53libexec/hisat2/make_hg38_snp_tran.sh
66libexec/hisat2/make_mm10.sh 54libexec/hisat2/make_mm10.sh
67libexec/hisat2/make_mm9.sh 55libexec/hisat2/make_mm9.sh
68libexec/hisat2/make_r64.sh 56libexec/hisat2/make_r64.sh
69libexec/hisat2/make_r64_tran.sh 57libexec/hisat2/make_r64_tran.sh
70libexec/hisat2/make_rn4.sh 58libexec/hisat2/make_rn4.sh
71libexec/hisat2/make_rn6.sh 59libexec/hisat2/make_rn6.sh
72libexec/hisat2/make_rnor6.sh 60libexec/hisat2/make_rnor6.sh
73libexec/hisat2/make_rnor6_tran.sh 61libexec/hisat2/make_rnor6_tran.sh
74libexec/hisat2/make_sc3.sh 62libexec/hisat2/make_sc3.sh
75libexec/hisat2/make_wbcel235.sh 63libexec/hisat2/make_wbcel235.sh
76libexec/hisat2/make_wbcel235_tran.sh 64libexec/hisat2/make_wbcel235_tran.sh
77libexec/hisat2/make_zm3_snp_tran_ercc.sh 65libexec/hisat2/make_zm3_snp_tran_ercc.sh
78libexec/hisat2/run_extract_CP.sh 66libexec/hisat2/sa.py
79libexec/hisat2/run_extract_ILMN.sh 67libexec/hisat2/validate_repeat.py
80libexec/hisat2/run_genotype_build.sh 
81libexec/hisat2/run_hisat2_build.sh 
82libexec/hisat2/run_type_CP.sh 

cvs diff -r1.3 -r1.4 pkgsrc/biology/hisat2/distinfo (expand / switch to unified diff)

--- pkgsrc/biology/hisat2/distinfo 2021/10/26 10:03:40 1.3
+++ pkgsrc/biology/hisat2/distinfo 2022/03/17 16:01:11 1.4
@@ -1,6 +1,8 @@ @@ -1,6 +1,8 @@
1$NetBSD: distinfo,v 1.3 2021/10/26 10:03:40 nia Exp $ 1$NetBSD: distinfo,v 1.4 2022/03/17 16:01:11 bacon Exp $
2 2
3BLAKE2s (hisat2-2.1.0.23-20f333e2cfe7ff4d1362b248912893e2644683d7.tar.gz) = 6b114a873cfb9fa79a3e5e8d72495893d4d3fbadebc924e5826e5de2176e1397 3BLAKE2s (hisat2-2.2.1.tar.gz) = 1cc424a10f1fcf25c70294bef3b21e67b07cebcb7b73e36c0176a2dfdec51bdb
4SHA512 (hisat2-2.1.0.23-20f333e2cfe7ff4d1362b248912893e2644683d7.tar.gz) = 5514f7462a6738e5fed5ef3bd2eb782e867178cd68eb36324407628b446a151d096326d859b2986877a26206ad182281ecac29f2abd01991c0640c5e4c5e5e0b 4SHA512 (hisat2-2.2.1.tar.gz) = a5a688ad0ccfaf326b3ec6dc97206995306aa6f5b6e58223c2113adbca2745f1e8205b436fdf8e01f42da7a38718f9f3bf214b951fb5360d53247d99a0bdbf46
5Size (hisat2-2.1.0.23-20f333e2cfe7ff4d1362b248912893e2644683d7.tar.gz) = 3975385 bytes 5Size (hisat2-2.2.1.tar.gz) = 6761242 bytes
6SHA1 (patch-hisat2) = ea55c8a99dcd2fd3651e832fbb402b94d0ea3fed 6SHA1 (patch-Makefile) = 067b766ecebacd840db4a287bba25d2d2264b339
 7SHA1 (patch-hisat2) = 6010f5fcc1e7dfcb383a4defc4e3d9f06322370d
 8SHA1 (patch-processor__support.h) = 56d9cd4ba18e37879acba521a0f431fe2b4290af

File Deleted: pkgsrc/biology/hisat2/files/Attic/Makefile.pkg

File Added: pkgsrc/biology/hisat2/patches/patch-Makefile
$NetBSD: patch-Makefile,v 1.1 2022/03/17 16:01:12 bacon Exp $

# Respect env

--- Makefile.orig	2020-07-24 20:07:54.000000000 +0000
+++ Makefile
@@ -23,9 +23,11 @@
 INC =
 GCC_PREFIX = $(shell dirname `which gcc`)
 GCC_SUFFIX =
-CC = $(GCC_PREFIX)/gcc$(GCC_SUFFIX)
-CPP = $(GCC_PREFIX)/g++$(GCC_SUFFIX)
-CXX = $(CPP)
+CC	?= $(GCC_PREFIX)/gcc$(GCC_SUFFIX)
+CPP	?= $(GCC_PREFIX)/g++$(GCC_SUFFIX)
+CXX	?= $(CPP)
+INSTALL	?= install
+
 HEADERS = $(wildcard *.h)
 BOWTIE_MM = 1
 BOWTIE_SHARED_MEM = 0
@@ -55,7 +57,7 @@ ifneq (,$(findstring Darwin,$(shell unam
 	MACOS = 1
 endif
 
-EXTRA_FLAGS += -DPOPCNT_CAPABILITY -std=c++11
+EXTRA_FLAGS += -std=c++11
 INC += -I. -I third_party 
 
 MM_DEF = 
@@ -150,33 +152,11 @@ HISAT2_BUILD_CPPS_MAIN = $(BUILD_CPPS) h
 HISAT2_REPEAT_CPPS_MAIN = $(REPEAT_CPPS) $(BUILD_CPPS) hisat2_repeat_main.cpp
 
 SEARCH_FRAGMENTS = $(wildcard search_*_phase*.c)
-VERSION = $(shell cat VERSION)
-
-# Convert BITS=?? to a -m flag
-BITS=32
-ifeq (x86_64,$(shell uname -m))
-BITS=64
-endif
-# msys will always be 32 bit so look at the cpu arch instead.
-ifneq (,$(findstring AMD64,$(PROCESSOR_ARCHITEW6432)))
-	ifeq (1,$(MINGW))
-		BITS=64
-	endif
-endif
-BITS_FLAG =
-
-ifeq (32,$(BITS))
-	BITS_FLAG = -m32
-endif
-
-ifeq (64,$(BITS))
-	BITS_FLAG = -m64
-endif
-SSE_FLAG=-msse2
+HISAT2_VERSION = $(shell cat HISAT2_VERSION)
 
 DEBUG_FLAGS    = -O0 -g3 $(BITS_FLAG) $(SSE_FLAG)
 DEBUG_DEFS     = -DCOMPILER_OPTIONS="\"$(DEBUG_FLAGS) $(EXTRA_FLAGS)\""
-RELEASE_FLAGS  = -O3 $(BITS_FLAG) $(SSE_FLAG) -funroll-loops -g3
+RELEASE_FLAGS  = $(CXXFLAGS)
 RELEASE_DEFS   = -DCOMPILER_OPTIONS="\"$(RELEASE_FLAGS) $(EXTRA_FLAGS)\""
 NOASSERT_FLAGS = -DNDEBUG
 FILE_FLAGS     = -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE
@@ -251,7 +231,7 @@ GENERAL_LIST = $(wildcard scripts/*.sh) 
 	MANUAL \
 	MANUAL.markdown \
 	TUTORIAL \
-	VERSION
+	HISAT2_VERSION
 
 ifeq (1,$(WINDOWS))
 	HISAT2_BIN_LIST := $(HISAT2_BIN_LIST) hisat2.bat hisat2-build.bat hisat2-inspect.bat 
@@ -287,7 +267,7 @@ repeat: hisat2-repeat
 repeat-debug: hisat2-repeat-debug
 
 DEFS=-fno-strict-aliasing \
-     -DHISAT2_VERSION="\"`cat VERSION`\"" \
+     -DHISAT2_VERSION="\"`cat HISAT2_VERSION`\"" \
      -DBUILD_HOST="\"`hostname`\"" \
      -DBUILD_TIME="\"`date`\"" \
      -DCOMPILER_VERSION="\"`$(CXX) -v 2>&1 | tail -1`\"" \
@@ -517,12 +497,12 @@ hisat2-inspect.bat:
 hisat2-src: $(SRC_PKG_LIST)
 	chmod a+x scripts/*.sh scripts/*.pl
 	mkdir .src.tmp
-	mkdir .src.tmp/hisat2-$(VERSION)
+	mkdir .src.tmp/hisat2-$(HISAT2_VERSION)
 	zip tmp.zip $(SRC_PKG_LIST)
-	mv tmp.zip .src.tmp/hisat2-$(VERSION)
-	cd .src.tmp/hisat2-$(VERSION) ; unzip tmp.zip ; rm -f tmp.zip
-	cd .src.tmp ; zip -r hisat2-$(VERSION)-source.zip hisat2-$(VERSION)
-	cp .src.tmp/hisat2-$(VERSION)-source.zip .
+	mv tmp.zip .src.tmp/hisat2-$(HISAT2_VERSION)
+	cd .src.tmp/hisat2-$(HISAT2_VERSION) ; unzip tmp.zip ; rm -f tmp.zip
+	cd .src.tmp ; zip -r hisat2-$(HISAT2_VERSION)-source.zip hisat2-$(HISAT2_VERSION)
+	cp .src.tmp/hisat2-$(HISAT2_VERSION)-source.zip .
 	rm -rf .src.tmp
 
 .PHONY: hisat2-bin
@@ -530,16 +510,16 @@ hisat2-bin: $(BIN_PKG_LIST) $(HISAT2_BIN
 	chmod a+x scripts/*.sh scripts/*.pl
 	rm -rf .bin.tmp
 	mkdir .bin.tmp
-	mkdir .bin.tmp/hisat2-$(VERSION)
+	mkdir .bin.tmp/hisat2-$(HISAT2_VERSION)
 	if [ -f hisat2.exe ] ; then \
 		zip tmp.zip $(BIN_PKG_LIST) $(addsuffix .exe,$(HISAT2_BIN_LIST) $(HISAT2_BIN_LIST_AUX)) ; \
 	else \
 		zip tmp.zip $(BIN_PKG_LIST) $(HISAT2_BIN_LIST) $(HISAT2_BIN_LIST_AUX) ; \
 	fi
-	mv tmp.zip .bin.tmp/hisat2-$(VERSION)
-	cd .bin.tmp/hisat2-$(VERSION) ; unzip tmp.zip ; rm -f tmp.zip
-	cd .bin.tmp ; zip -r hisat2-$(VERSION)-$(BITS).zip hisat2-$(VERSION)
-	cp .bin.tmp/hisat2-$(VERSION)-$(BITS).zip .
+	mv tmp.zip .bin.tmp/hisat2-$(HISAT2_VERSION)
+	cd .bin.tmp/hisat2-$(HISAT2_VERSION) ; unzip tmp.zip ; rm -f tmp.zip
+	cd .bin.tmp ; zip -r hisat2-$(HISAT2_VERSION)-$(BITS).zip hisat2-$(HISAT2_VERSION)
+	cp .bin.tmp/hisat2-$(HISAT2_VERSION)-$(BITS).zip .
 	rm -rf .bin.tmp
 
 .PHONY: doc
@@ -554,6 +534,20 @@ doc/manual.inc.html: MANUAL.markdown
 MANUAL: MANUAL.markdown
 	perl doc/strip_markdown.pl < $^ > $@
 
+# Install per filesystem hierarchy standard:
+# https://en.wikipedia.org/wiki/Filesystem_Hierarchy_Standard
+
+.PHONY: install
+install:
+	mkdir -p ${DESTDIR}${PREFIX}/bin
+	${INSTALL} -c -s ${HISAT2_BIN_LIST} ${DESTDIR}${PREFIX}/bin
+	${INSTALL} -c hisat2 hisat2-build hisat2-inspect \
+		${DESTDIR}${PREFIX}/bin
+
+	mkdir -p ${DESTDIR}${PREFIX}/libexec/hisat2
+	${INSTALL} -c scripts/*.sh scripts/*.pl scripts/*.py *.py \
+		${DESTDIR}${PREFIX}/libexec/hisat2
+
 .PHONY: clean
 clean:
 	rm -f $(HISAT2_BIN_LIST) $(HISAT2_BIN_LIST_AUX) \

File Added: pkgsrc/biology/hisat2/patches/patch-processor__support.h
$NetBSD: patch-processor__support.h,v 1.1 2022/03/17 16:01:12 bacon Exp $

# Support non-x86

--- processor_support.h.orig	2020-07-24 20:07:54 UTC
+++ processor_support.h
@@ -12,7 +12,7 @@
 
 #if defined(__INTEL_COMPILER)
 #   define USING_INTEL_COMPILER
-#elif defined(__GNUC__)
+#elif defined(__GNUC__) && (defined(__amd64__) || defined(__i386__))
 #   define USING_GCC_COMPILER
 #   include <cpuid.h>
 #elif defined(_MSC_VER)
@@ -52,8 +52,7 @@ class ProcessorSupport { (public)
 #elif defined(USING_GCC_COMPILER)
         __get_cpuid(0x1, &regs.EAX, &regs.EBX, &regs.ECX, &regs.EDX);
 #else
-        std::cerr << "ERROR: please define __cpuid() for this build.\n"; 
-        assert(0);
+	return false;
 #endif
         if( !( (regs.ECX & BIT(20)) && (regs.ECX & BIT(23)) ) ) return false;
     }

cvs diff -r1.1 -r1.2 pkgsrc/biology/hisat2/patches/patch-hisat2 (expand / switch to unified diff)

--- pkgsrc/biology/hisat2/patches/patch-hisat2 2019/01/15 01:26:29 1.1
+++ pkgsrc/biology/hisat2/patches/patch-hisat2 2022/03/17 16:01:12 1.2
@@ -1,15 +1,15 @@ @@ -1,15 +1,15 @@
1$NetBSD: patch-hisat2,v 1.1 2019/01/15 01:26:29 bacon Exp $ 1$NetBSD: patch-hisat2,v 1.2 2022/03/17 16:01:12 bacon Exp $
2 2
3# Limit Windows-specific patches to Windows 3# Support BSD, etc.
4 4
5--- hisat2.orig 2018-11-07 21:43:32 UTC 5--- hisat2.orig 2018-11-07 21:43:32 UTC
6+++ hisat2 6+++ hisat2
7@@ -45,7 +45,7 @@ while (-f $prog && -l $prog){ 7@@ -45,7 +45,7 @@ while (-f $prog && -l $prog){
8  8
9 ($vol,$script_path,$prog)  9 ($vol,$script_path,$prog)
10 = File::Spec->splitpath($prog); 10 = File::Spec->splitpath($prog);
11-my $os_is_nix = ($^O eq "linux") || ($^O eq "darwin"); 11-my $os_is_nix = ($^O eq "linux") || ($^O eq "darwin");
12+my $os_is_nix = ($^O ne "MSWin32") && ($^O ne "MSWin64"); 12+my $os_is_nix = ($^O ne "MSWin32") && ($^O ne "MSWin64");
13 my $align_bin_s = $os_is_nix ? 'hisat2-align-s' : 'hisat2-align-s.exe';  13 my $align_bin_s = $os_is_nix ? 'hisat2-align-s' : 'hisat2-align-s.exe';
14 my $build_bin = $os_is_nix ? 'hisat2-build' : 'hisat2-build.exe';  14 my $build_bin = $os_is_nix ? 'hisat2-build' : 'hisat2-build.exe';
15 my $align_bin_l = $os_is_nix ? 'hisat2-align-l' : 'hisat2-align-l.exe';  15 my $align_bin_l = $os_is_nix ? 'hisat2-align-l' : 'hisat2-align-l.exe';