Gentoo Archives: gentoo-commits

From: "Justin Lecher (jlec)" <jlec@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-perl/Bio-SamTools/files: Bio-SamTools-1.390.0-samtools-1.patch
Date: Thu, 02 Oct 2014 10:25:39
Message-Id: 20141002102534.E2B806C1D@oystercatcher.gentoo.org
1 jlec 14/10/02 10:25:34
2
3 Added: Bio-SamTools-1.390.0-samtools-1.patch
4 Log:
5 dev-perl/Bio-SamTools: Make it build with samtools-1, #523568
6
7 (Portage version: 2.2.14_rc1/cvs/Linux x86_64, signed Manifest commit with key B9D4F231BD1558AB!)
8
9 Revision Changes Path
10 1.1 dev-perl/Bio-SamTools/files/Bio-SamTools-1.390.0-samtools-1.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-perl/Bio-SamTools/files/Bio-SamTools-1.390.0-samtools-1.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-perl/Bio-SamTools/files/Bio-SamTools-1.390.0-samtools-1.patch?rev=1.1&content-type=text/plain
14
15 Index: Bio-SamTools-1.390.0-samtools-1.patch
16 ===================================================================
17 Build.PL | 2 +-
18 c_bin/makefile | 6 +++---
19 lib/Bio/DB/Sam.xs | 9 ++++++---
20 3 files changed, 10 insertions(+), 7 deletions(-)
21
22 diff --git a/Build.PL b/Build.PL
23 index 1393e03..cf97ad5 100644
24 --- a/Build.PL
25 +++ b/Build.PL
26 @@ -38,7 +38,7 @@ my $build = $class->new(
27 dist_abstract => 'Perl interface to SamTools library for DNA sequencing',
28 license => 'perl',
29 include_dirs => [$sam_include],
30 - extra_linker_flags => ["-L$sam_lib",'-lbam','-lpthread','-lz'],
31 + extra_linker_flags => ["-L$sam_lib",'-lbam','-lhts','-lpthread','-lz'],
32
33 extra_compiler_flags=>[
34
35 diff --git a/c_bin/makefile b/c_bin/makefile
36 index 9aef917..96a30f2 100644
37 --- a/c_bin/makefile
38 +++ b/c_bin/makefile
39 @@ -1,5 +1,5 @@
40 -CC= gcc
41 -CFLAGS= -g -Wall -O2 -fPIC
42 +CC?= gcc
43 +CFLAGS?= -g -Wall -O2 -fPIC
44 DFLAGS= -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_USE_KNETFILE -D_CURSES_LIB=1
45 INCLUDES=
46 LIBPATH=
47 @@ -14,7 +14,7 @@ PROG= bam2bedgraph
48 all:$(PROG)
49
50 bam2bedgraph: bam2bedgraph.o
51 - $(CC) $(CFLAGS) -o $@ $< $(LDFLAGS) $(LIBPATH) -lbam -lpthread -lm -lz
52 + $(CC) $(CFLAGS) -o $@ $< $(LDFLAGS) $(LIBPATH) -lbam -lhts -lpthread -lm -lz
53
54 clean:
55 rm -f *.o $(PROG)
56 diff --git a/lib/Bio/DB/Sam.xs b/lib/Bio/DB/Sam.xs
57 index 5ca303b..7f92860 100644
58 --- a/lib/Bio/DB/Sam.xs
59 +++ b/lib/Bio/DB/Sam.xs
60 @@ -571,9 +571,12 @@ bama_l_aux(b,...)
61 Bio::DB::Bam::Alignment b
62 PROTOTYPE: $;$
63 CODE:
64 - if (items > 1)
65 - b->l_aux = SvIV(ST(1));
66 - RETVAL=b->l_aux;
67 + if (items > 1) {
68 + RETVAL = SvIV(ST(1));
69 + }
70 + else {
71 + RETVAL=bam_get_l_aux(b);
72 + }
73 OUTPUT:
74 RETVAL