Gentoo Archives: gentoo-commits

From: Martin Mokrejs <mmokrejs@×××××××××××××××.cz>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: sci-biology/lastz/files/, sci-biology/lastz/
Date: Thu, 16 Nov 2017 15:26:27
Message-Id: 1510845957.269f8ec2296020516eed5b613c332d752349ef8f.mmokrejs@gentoo
1 commit: 269f8ec2296020516eed5b613c332d752349ef8f
2 Author: Martin Mokrejš <mmokrejs <AT> fold <DOT> natur <DOT> cuni <DOT> cz>
3 AuthorDate: Thu Nov 16 15:25:57 2017 +0000
4 Commit: Martin Mokrejs <mmokrejs <AT> fold <DOT> natur <DOT> cuni <DOT> cz>
5 CommitDate: Thu Nov 16 15:25:57 2017 +0000
6 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=269f8ec2
7
8 sci-biology/lastz: fix long-lasting ebuild errors and version bump
9
10 Seems Gentoo newer compiled/installed the lastz_32 binary, which allows
11 indexing larger genomes. This ebuild fixes that for current version
12 and contains practically same Makefile-related patch as before.
13
14 Package-Manager: Portage-2.3.13, Repoman-2.3.3
15
16 ...03.66-build.patch => lastz-1.04.00-build.patch} | 22 +++++++++++++++++-----
17 .../{lastz-1.03.66.ebuild => lastz-1.04.00.ebuild} | 11 +++++++++--
18 2 files changed, 26 insertions(+), 7 deletions(-)
19
20 diff --git a/sci-biology/lastz/files/lastz-1.03.66-build.patch b/sci-biology/lastz/files/lastz-1.04.00-build.patch
21 similarity index 56%
22 rename from sci-biology/lastz/files/lastz-1.03.66-build.patch
23 rename to sci-biology/lastz/files/lastz-1.04.00-build.patch
24 index 0b9a948d3..d3705c514 100644
25 --- a/sci-biology/lastz/files/lastz-1.03.66-build.patch
26 +++ b/sci-biology/lastz/files/lastz-1.04.00-build.patch
27 @@ -1,5 +1,5 @@
28 ---- src/Makefile.old 2015-05-02 15:07:56.169136255 +0200
29 -+++ src/Makefile 2015-05-02 15:10:02.249137955 +0200
30 +--- lastz-distrib-1.04.00/src/Makefile.ori 2017-11-16 16:09:47.232140878 +0100
31 ++++ lastz-distrib-1.04.00/src/Makefile 2017-11-16 16:14:12.589271305 +0100
32 @@ -1,7 +1,7 @@
33 include ../make-include.mak
34 include version.mak
35 @@ -9,16 +9,28 @@
36
37 # default targets
38
39 -@@ -71,7 +71,7 @@
40 - -DSUBVERSION_REV="\"${SUBVERSION_REV}"\"
41 +@@ -54,7 +54,8 @@
42 + #
43 + #---------
44 +
45 +-definedForAll = -Wall -Wextra -Werror -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
46 ++mycflags = -O3 -Wall -Wextra -Werror
47 ++definedForAll = -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
48 + flagsFor32 = -Dmax_sequence_index=32 -Dmax_malloc_index=40 -Ddiag_hash_size=4194304
49
50 + allowBackToBackGaps ?= 0 # by default allowBackToBackGaps
51 +@@ -70,8 +71,8 @@
52 + -DREVISION_DATE="\"${REVISION_DATE}"\" \
53 + -DSUBVERSION_REV="\"${SUBVERSION_REV}"\"
54
55 +-
56 -CFLAGS = -O3 ${definedForAll} ${VERSION_FLAGS}
57 ++CFLAGS ?= ${mycflags}
58 +CFLAGS += ${definedForAll} ${VERSION_FLAGS}
59
60
61 srcFiles = lastz infer_scores \
62 -@@ -101,13 +101,13 @@
63 +@@ -101,13 +102,13 @@
64
65
66 lastz: $(foreach part,${srcFiles},${part}.o)
67
68 diff --git a/sci-biology/lastz/lastz-1.03.66.ebuild b/sci-biology/lastz/lastz-1.04.00.ebuild
69 similarity index 79%
70 rename from sci-biology/lastz/lastz-1.03.66.ebuild
71 rename to sci-biology/lastz/lastz-1.04.00.ebuild
72 index bc6925199..6acd3d39c 100644
73 --- a/sci-biology/lastz/lastz-1.03.66.ebuild
74 +++ b/sci-biology/lastz/lastz-1.04.00.ebuild
75 @@ -1,4 +1,4 @@
76 -# Copyright 1999-2015 Gentoo Foundation
77 +# Copyright 1999-2017 Gentoo Foundation
78 # Distributed under the terms of the GNU General Public License v2
79
80 EAPI=5
81 @@ -25,8 +25,15 @@ src_prepare() {
82 tc-export CC
83 }
84
85 +src_compile(){
86 + emake
87 + emake lastz_32
88 +}
89 +
90 src_install(){
91 - dobin src/lastz src/lastz_D
92 + emake install
93 + emake install_32
94 + dobin src/lastz src/lastz_D src/lastz_32
95 dodoc README.lastz.html
96 dohtml lav_format.html
97 }