1 |
commit: 70aa79d9e30fc3338314000c13b71ab66bf8552b |
2 |
Author: David Seifert <soap <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Nov 2 03:19:41 2017 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Nov 2 03:19:41 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=70aa79d9 |
7 |
|
8 |
sci-biology/bamtools: Remove old |
9 |
|
10 |
Package-Manager: Portage-2.3.11, Repoman-2.3.3 |
11 |
|
12 |
sci-biology/bamtools/Manifest | 1 - |
13 |
sci-biology/bamtools/bamtools-2.4.1.ebuild | 25 --- |
14 |
.../files/bamtools-2.4.1-fix-build-system.patch | 209 --------------------- |
15 |
.../bamtools/files/bamtools-2.4.1-fix-c++14.patch | 78 -------- |
16 |
4 files changed, 313 deletions(-) |
17 |
|
18 |
diff --git a/sci-biology/bamtools/Manifest b/sci-biology/bamtools/Manifest |
19 |
index 45492cd4dca..855871fa7e3 100644 |
20 |
--- a/sci-biology/bamtools/Manifest |
21 |
+++ b/sci-biology/bamtools/Manifest |
22 |
@@ -1,2 +1 @@ |
23 |
-DIST bamtools-2.4.1.tar.gz 540482 SHA256 933a0c1a83c88c1dac8078c0c0e82f6794c75cb927265399404bc2cc2611204b SHA512 ee674014f27b2dc0aa7c0415e8654ee7c39cfdecafbd9983d970fad6ad29f070a7ff372ee05765956cf7c8f8bb3b9763b6e537e693a0d2d64680148b1a23cfee WHIRLPOOL 6ef73f0713ebf993123eac7095061e32fe6a53db383e28a5dd8967afee92fb211ce56611de9718ce4cce84bdee14157ff968e0a6edcaead4e06b44008b78b84c |
24 |
DIST bamtools-2.4.2.tar.gz 548095 SHA256 04165bf8a7566f4be1a6e68f69bfdd9f08364ba7b0d2f6687302434641408102 SHA512 244a63609c0b10a85bba7cac210a27ea9abafba136e9c91fc789c7aa21a6cdaa7622afebc50ec8d30d4446872d5206dbd3d679ca03e95ac90771c87359cb69a0 WHIRLPOOL e1ed40d1ec47cbe97c4de160671f34095bf56f5786ebcc0cf7fb7b5e4b129d9c562b1cf19fb1d22e3ef20fa21d45f1fe50640b9d9919c01fabed044f82c9c2de |
25 |
|
26 |
diff --git a/sci-biology/bamtools/bamtools-2.4.1.ebuild b/sci-biology/bamtools/bamtools-2.4.1.ebuild |
27 |
deleted file mode 100644 |
28 |
index 2196c66790d..00000000000 |
29 |
--- a/sci-biology/bamtools/bamtools-2.4.1.ebuild |
30 |
+++ /dev/null |
31 |
@@ -1,25 +0,0 @@ |
32 |
-# Copyright 1999-2016 Gentoo Foundation |
33 |
-# Distributed under the terms of the GNU General Public License v2 |
34 |
- |
35 |
-EAPI=6 |
36 |
- |
37 |
-inherit cmake-utils |
38 |
- |
39 |
-DESCRIPTION="A programmer's API and an end-user's toolkit for handling BAM files" |
40 |
-HOMEPAGE="https://github.com/pezmaster31/bamtools" |
41 |
-SRC_URI="https://github.com/pezmaster31/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
42 |
- |
43 |
-LICENSE="MIT" |
44 |
-SLOT="0" |
45 |
-KEYWORDS="~amd64 ~x86" |
46 |
-IUSE="" |
47 |
- |
48 |
-RDEPEND=" |
49 |
- >=dev-libs/jsoncpp-1.8.0 |
50 |
- sys-libs/zlib" |
51 |
-DEPEND="${RDEPEND}" |
52 |
- |
53 |
-PATCHES=( |
54 |
- "${FILESDIR}"/${PN}-2.4.1-fix-build-system.patch |
55 |
- "${FILESDIR}"/${PN}-2.4.1-fix-c++14.patch |
56 |
-) |
57 |
|
58 |
diff --git a/sci-biology/bamtools/files/bamtools-2.4.1-fix-build-system.patch b/sci-biology/bamtools/files/bamtools-2.4.1-fix-build-system.patch |
59 |
deleted file mode 100644 |
60 |
index 79597233030..00000000000 |
61 |
--- a/sci-biology/bamtools/files/bamtools-2.4.1-fix-build-system.patch |
62 |
+++ /dev/null |
63 |
@@ -1,209 +0,0 @@ |
64 |
-* Unbundle jsoncpp |
65 |
-* Remove forcing C++98 |
66 |
-* Remove forcing CMAKE_BUILD_TYPE |
67 |
-* Remove -fPIC globally |
68 |
-* Fix LFS macro definitions |
69 |
-* Make building static library optional |
70 |
-* Use GNUInstallDirs conventions |
71 |
-* Install .pc file |
72 |
-See also: https://bugs.gentoo.org/show_bug.cgi?id=550144 |
73 |
- |
74 |
-Taken from https://github.com/pezmaster31/bamtools/pull/139 |
75 |
- |
76 |
---- a/CMakeLists.txt |
77 |
-+++ b/CMakeLists.txt |
78 |
-@@ -9,7 +9,14 @@ |
79 |
- project( BamTools ) |
80 |
- |
81 |
- # Cmake requirements |
82 |
--cmake_minimum_required( VERSION 2.6.4 ) |
83 |
-+cmake_minimum_required( VERSION 3.0 ) |
84 |
-+ |
85 |
-+# on macOS, MACOSX_RPATH is enabled by default on more recent versions |
86 |
-+# of CMake. Disable this behaviour, and let user enable it if need be. |
87 |
-+cmake_policy( SET CMP0042 OLD ) |
88 |
-+ |
89 |
-+# Adhere to GNU filesystem layout conventions |
90 |
-+include( GNUInstallDirs ) |
91 |
- |
92 |
- # Force the build directory to be different from source directory |
93 |
- macro( ENSURE_OUT_OF_SOURCE_BUILD MSG ) |
94 |
-@@ -34,18 +41,21 @@ |
95 |
- set( BamTools_VERSION_MINOR 4 ) |
96 |
- set( BamTools_VERSION_BUILD 1 ) |
97 |
- |
98 |
--# set our library and executable destination dirs |
99 |
--set( EXECUTABLE_OUTPUT_PATH "${CMAKE_SOURCE_DIR}/bin" ) |
100 |
--set( LIBRARY_OUTPUT_PATH "${CMAKE_SOURCE_DIR}/lib" ) |
101 |
-- |
102 |
- # define compiler flags for all code |
103 |
--set( CMAKE_BUILD_TYPE Release ) |
104 |
--set( CMAKE_CXX_FLAGS_RELEASE "-std=c++98 ${CMAKE_CXX_FLAGS_RELEASE}" ) |
105 |
--add_definitions( -Wall -D_FILE_OFFSET_BITS=64 ) |
106 |
-+add_definitions( -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE ) |
107 |
-+add_compile_options( -Wall ) |
108 |
- |
109 |
- # ----------------------------------------------- |
110 |
- # handle platform-/environment-specific defines |
111 |
- |
112 |
-+# Make building the static library optional |
113 |
-+option( BUILD_STATIC "Build static libbamtools archive" OFF ) |
114 |
-+if( BUILD_STATIC ) |
115 |
-+ set( BAMTOOLS_CMD_LDFLAGS BamTools-static ) |
116 |
-+else() |
117 |
-+ set( BAMTOOLS_CMD_LDFLAGS BamTools ) |
118 |
-+endif() |
119 |
-+ |
120 |
- # If planning to run in Node.js environment, run: |
121 |
- # cmake -DEnableNodeJS=true |
122 |
- if( EnableNodeJS ) |
123 |
-@@ -57,6 +67,11 @@ |
124 |
- add_definitions( -DSUN_OS ) |
125 |
- endif() |
126 |
- |
127 |
-+# find system JsonCpp |
128 |
-+find_package( PkgConfig ) |
129 |
-+pkg_search_module( JSONCPP jsoncpp>=1 ) |
130 |
-+ |
131 |
-+ |
132 |
- # ------------------------------------------- |
133 |
- |
134 |
- # add our includes root path |
135 |
---- a/src/api/CMakeLists.txt |
136 |
-+++ b/src/api/CMakeLists.txt |
137 |
-@@ -10,7 +10,6 @@ |
138 |
- |
139 |
- # add compiler definitions |
140 |
- add_definitions( -DBAMTOOLS_API_LIBRARY ) # (for proper exporting of library symbols) |
141 |
--add_definitions( -fPIC ) # (attempt to force PIC compiling on CentOS, not being set on shared libs by CMake) |
142 |
- |
143 |
- # fetch all internal source files |
144 |
- add_subdirectory( internal ) |
145 |
-@@ -31,18 +30,6 @@ |
146 |
- ${InternalSources} |
147 |
- ) |
148 |
- |
149 |
--# create main BamTools API shared library |
150 |
--add_library( BamTools SHARED ${BamToolsAPISources} ) |
151 |
--set_target_properties( BamTools PROPERTIES |
152 |
-- SOVERSION "2.4.1" |
153 |
-- OUTPUT_NAME "bamtools" ) |
154 |
-- |
155 |
--# create main BamTools API static library |
156 |
--add_library( BamTools-static STATIC ${BamToolsAPISources} ) |
157 |
--set_target_properties( BamTools-static PROPERTIES |
158 |
-- OUTPUT_NAME "bamtools" |
159 |
-- PREFIX "lib" ) |
160 |
-- |
161 |
- # link libraries automatically with zlib (and Winsock2, if applicable) |
162 |
- if( WIN32 ) |
163 |
- set( APILibs z ws2_32 ) |
164 |
-@@ -50,12 +37,23 @@ |
165 |
- set( APILibs z ) |
166 |
- endif() |
167 |
- |
168 |
--target_link_libraries( BamTools ${APILibs} ) |
169 |
--target_link_libraries( BamTools-static ${APILibs} ) |
170 |
-+# create main BamTools API shared library |
171 |
-+add_library( BamTools SHARED ${BamToolsAPISources} ) |
172 |
-+set_target_properties( BamTools PROPERTIES |
173 |
-+ SOVERSION "2.4.1" |
174 |
-+ OUTPUT_NAME "bamtools" ) |
175 |
-+target_link_libraries( BamTools ${APILibs} ) |
176 |
-+install( TARGETS BamTools LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}" RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}" ) |
177 |
- |
178 |
--# set library install destinations |
179 |
--install( TARGETS BamTools LIBRARY DESTINATION "lib/bamtools" RUNTIME DESTINATION "bin") |
180 |
--install( TARGETS BamTools-static ARCHIVE DESTINATION "lib/bamtools") |
181 |
-+# create main BamTools API static library |
182 |
-+if( BUILD_STATIC ) |
183 |
-+ add_library( BamTools-static STATIC ${BamToolsAPISources} ) |
184 |
-+ set_target_properties( BamTools-static PROPERTIES |
185 |
-+ OUTPUT_NAME "bamtools" |
186 |
-+ PREFIX "lib" ) |
187 |
-+ target_link_libraries( BamTools-static ${APILibs} ) |
188 |
-+ install( TARGETS BamTools-static ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}" ) |
189 |
-+endif() |
190 |
- |
191 |
- # export API headers |
192 |
- include(../ExportHeader.cmake) |
193 |
---- a/src/bamtools.pc.in |
194 |
-+++ b/src/bamtools.pc.in |
195 |
-@@ -0,0 +1,11 @@ |
196 |
-+prefix=@CMAKE_INSTALL_PREFIX@ |
197 |
-+exec_prefix=${prefix} |
198 |
-+libdir=${exec_prefix}/@CMAKE_INSTALL_LIBDIR@ |
199 |
-+includedir=${prefix}/@CMAKE_INSTALL_INCLUDEDIR@ |
200 |
-+ |
201 |
-+Name: BamTools |
202 |
-+Description: BamTools is a C++ library for reading and manipulating BAM files |
203 |
-+Version: @BamTools_VERSION_MAJOR@.@BamTools_VERSION_MINOR@.@BamTools_VERSION_BUILD@ |
204 |
-+ |
205 |
-+Libs: -L${libdir} -lbamtools |
206 |
-+Cflags: -I${includedir} |
207 |
---- a/src/CMakeLists.txt |
208 |
-+++ b/src/CMakeLists.txt |
209 |
-@@ -14,3 +14,7 @@ |
210 |
- include( ExportHeader.cmake ) |
211 |
- set( SharedIncludeDir "shared" ) |
212 |
- ExportHeader( SharedHeaders shared/bamtools_global.h ${SharedIncludeDir} ) |
213 |
-+ |
214 |
-+# configure and install pkg-config file |
215 |
-+configure_file( ${CMAKE_CURRENT_SOURCE_DIR}/bamtools.pc.in ${CMAKE_CURRENT_BINARY_DIR}/bamtools-1.pc @ONLY ) |
216 |
-+install( FILES ${CMAKE_CURRENT_BINARY_DIR}/bamtools-1.pc DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig ) |
217 |
---- a/src/ExportHeader.cmake |
218 |
-+++ b/src/ExportHeader.cmake |
219 |
-@@ -18,10 +18,10 @@ |
220 |
- add_custom_command( TARGET ${MODULE} COMMAND |
221 |
- ${CMAKE_COMMAND} -E copy_if_different |
222 |
- "${CMAKE_CURRENT_SOURCE_DIR}/${FILE}" |
223 |
-- "${CMAKE_SOURCE_DIR}/include/${DEST}/${FILENAME}" ) |
224 |
-+ "${CMAKE_CURRENT_BINARY_DIR}/include/${DEST}/${FILENAME}" ) |
225 |
- |
226 |
- # make sure files are properly 'installed' |
227 |
-- install( FILES "${FILE}" DESTINATION "include/bamtools/${DEST}" ) |
228 |
-+ install( FILES "${FILE}" DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/bamtools/${DEST}" ) |
229 |
- |
230 |
- endfunction( ExportHeader ) |
231 |
- |
232 |
---- a/src/third_party/CMakeLists.txt |
233 |
-+++ b/src/third_party/CMakeLists.txt |
234 |
-@@ -5,5 +5,3 @@ |
235 |
- # src/third-party/ |
236 |
- # ========================== |
237 |
- |
238 |
--# list third-party subdirectories to build in |
239 |
--add_subdirectory( jsoncpp ) |
240 |
---- a/src/toolkit/CMakeLists.txt |
241 |
-+++ b/src/toolkit/CMakeLists.txt |
242 |
-@@ -35,10 +35,14 @@ |
243 |
- OUTPUT_NAME "bamtools" |
244 |
- ) |
245 |
- # make version info available in application |
246 |
--configure_file( bamtools_version.h.in ${BamTools_SOURCE_DIR}/src/toolkit/bamtools_version.h ) |
247 |
-+configure_file( ${CMAKE_CURRENT_SOURCE_DIR}/bamtools_version.h.in ${CMAKE_CURRENT_BINARY_DIR}/bamtools_version.h ) |
248 |
-+include_directories( ${CMAKE_CURRENT_BINARY_DIR} ) |
249 |
-+ |
250 |
-+# set include paths for system JsonCpp |
251 |
-+target_include_directories( bamtools_cmd PRIVATE ${JSONCPP_INCLUDE_DIRS} ) |
252 |
- |
253 |
- # define libraries to link |
254 |
--target_link_libraries( bamtools_cmd BamTools BamTools-utils jsoncpp ) |
255 |
-+target_link_libraries( bamtools_cmd BamTools-utils ${BAMTOOLS_CMD_LDFLAGS} ${JSONCPP_LDFLAGS} ) |
256 |
- |
257 |
- # set application install destinations |
258 |
--install( TARGETS bamtools_cmd DESTINATION "bin") |
259 |
-+install( TARGETS bamtools_cmd DESTINATION "${CMAKE_INSTALL_BINDIR}" ) |
260 |
---- a/src/utils/CMakeLists.txt |
261 |
-+++ b/src/utils/CMakeLists.txt |
262 |
-@@ -8,9 +8,8 @@ |
263 |
- # list include paths |
264 |
- include_directories( ${BamTools_SOURCE_DIR}/src/api ) |
265 |
- |
266 |
--# add compiler definitions |
267 |
-+# add compiler definitions |
268 |
- add_definitions( -DBAMTOOLS_UTILS_LIBRARY ) # (for proper exporting of library symbols) |
269 |
--add_definitions( -fPIC ) # (attempt to force PIC compiling on CentOS, not being set on shared libs by CMake) |
270 |
- |
271 |
- # create BamTools utils library |
272 |
- add_library( BamTools-utils STATIC |
273 |
|
274 |
diff --git a/sci-biology/bamtools/files/bamtools-2.4.1-fix-c++14.patch b/sci-biology/bamtools/files/bamtools-2.4.1-fix-c++14.patch |
275 |
deleted file mode 100644 |
276 |
index 8d9b1e02c19..00000000000 |
277 |
--- a/sci-biology/bamtools/files/bamtools-2.4.1-fix-c++14.patch |
278 |
+++ /dev/null |
279 |
@@ -1,78 +0,0 @@ |
280 |
-* Fix building in C++11/C++14 modes |
281 |
-See also: https://bugs.gentoo.org/show_bug.cgi?id=596208 |
282 |
- |
283 |
-Taken from https://github.com/pezmaster31/bamtools/pull/139 |
284 |
- |
285 |
---- a/src/api/BamConstants.h |
286 |
-+++ b/src/api/BamConstants.h |
287 |
-@@ -126,10 +126,10 @@ |
288 |
- |
289 |
- // zlib & BGZF constants |
290 |
- const char GZIP_ID1 = 31; |
291 |
--const char GZIP_ID2 = 139; |
292 |
-+const char GZIP_ID2 = static_cast<char>(139); |
293 |
- const char CM_DEFLATE = 8; |
294 |
- const char FLG_FEXTRA = 4; |
295 |
--const char OS_UNKNOWN = 255; |
296 |
-+const char OS_UNKNOWN = static_cast<char>(255); |
297 |
- const char BGZF_XLEN = 6; |
298 |
- const char BGZF_ID1 = 66; |
299 |
- const char BGZF_ID2 = 67; |
300 |
---- a/src/toolkit/bamtools_filter.cpp |
301 |
-+++ b/src/toolkit/bamtools_filter.cpp |
302 |
-@@ -16,7 +16,7 @@ |
303 |
- #include <utils/bamtools_utilities.h> |
304 |
- using namespace BamTools; |
305 |
- |
306 |
--#include <jsoncpp/json.h> |
307 |
-+#include <json/json.h> |
308 |
- using namespace Json; |
309 |
- |
310 |
- #include <cstdio> |
311 |
-@@ -647,7 +647,7 @@ |
312 |
- if ( !reader.parse(document, root) ) { |
313 |
- // use built-in error reporting mechanism to alert user what was wrong with the script |
314 |
- cerr << "bamtools filter ERROR: failed to parse script - see error message(s) below" << endl |
315 |
-- << reader.getFormatedErrorMessages(); |
316 |
-+ << reader.getFormattedErrorMessages(); |
317 |
- return false; |
318 |
- } |
319 |
- |
320 |
---- a/src/toolkit/bamtools_resolve.cpp |
321 |
-+++ b/src/toolkit/bamtools_resolve.cpp |
322 |
-@@ -410,7 +410,7 @@ |
323 |
- ReadGroupResolver& resolver = (*rgIter).second; |
324 |
- |
325 |
- // store read name with resolver |
326 |
-- resolver.ReadNames.insert( make_pair<string,bool>(fields[1], true) ) ; |
327 |
-+ resolver.ReadNames.insert( make_pair(fields[1], true) ) ; |
328 |
- } |
329 |
- |
330 |
- // if here, return success |
331 |
-@@ -607,7 +607,7 @@ |
332 |
- resolver.IsAmbiguous = ( fields.at(6) == TRUE_KEYWORD ); |
333 |
- |
334 |
- // store RG entry and return success |
335 |
-- readGroups.insert( make_pair<string, ReadGroupResolver>(name, resolver) ); |
336 |
-+ readGroups.insert( make_pair(name, resolver) ); |
337 |
- return true; |
338 |
- } |
339 |
- |
340 |
-@@ -1014,7 +1014,7 @@ |
341 |
- } |
342 |
- |
343 |
- // if read name not found, store new entry |
344 |
-- else resolver.ReadNames.insert( make_pair<string, bool>(al.Name, isCurrentMateUnique) ); |
345 |
-+ else resolver.ReadNames.insert( make_pair(al.Name, isCurrentMateUnique) ); |
346 |
- } |
347 |
- |
348 |
- // close files |
349 |
-@@ -1046,7 +1046,7 @@ |
350 |
- SamReadGroupConstIterator rgEnd = header.ReadGroups.ConstEnd(); |
351 |
- for ( ; rgIter != rgEnd; ++rgIter ) { |
352 |
- const SamReadGroup& rg = (*rgIter); |
353 |
-- m_readGroups.insert( make_pair<string, ReadGroupResolver>(rg.ID, ReadGroupResolver()) ); |
354 |
-+ m_readGroups.insert( make_pair(rg.ID, ReadGroupResolver()) ); |
355 |
- } |
356 |
- } |
357 |
- |