Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-biology/fastx_toolkit/files/, sci-biology/fastx_toolkit/
Date: Wed, 10 Jan 2018 09:52:45
Message-Id: 1515577946.84dea31f7c0f129fa53d5a2db54895dd2255d15b.soap@gentoo
1 commit: 84dea31f7c0f129fa53d5a2db54895dd2255d15b
2 Author: David Seifert <soap <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jan 10 09:51:17 2018 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Wed Jan 10 09:52:26 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=84dea31f
7
8 sci-biology/fastx_toolkit: Initial addition
9
10 Package-Manager: Portage-2.3.19, Repoman-2.3.6
11
12 sci-biology/fastx_toolkit/Manifest | 1 +
13 .../fastx_toolkit/fastx_toolkit-0.0.14.ebuild | 34 ++++++++++++
14 .../fastx_toolkit-0.0.14-fix-build-system.patch | 63 ++++++++++++++++++++++
15 .../files/fastx_toolkit-0.0.14-gcc7.patch | 10 ++++
16 sci-biology/fastx_toolkit/metadata.xml | 11 ++++
17 5 files changed, 119 insertions(+)
18
19 diff --git a/sci-biology/fastx_toolkit/Manifest b/sci-biology/fastx_toolkit/Manifest
20 new file mode 100644
21 index 00000000000..abb3cfa08ae
22 --- /dev/null
23 +++ b/sci-biology/fastx_toolkit/Manifest
24 @@ -0,0 +1 @@
25 +DIST fastx_toolkit-0.0.14.tar.bz2 543018 BLAKE2B d61456252ada507efd4cc45ff2f0d54f7a6c55b185d41eb5f5accd7e73184b8b80b2c415b38f8e4ccd687ae715191785a89e64f790fe598ba477901c12d514a1 SHA512 e1df1486e853b3ecee71e677cd6e86246a3993174016111eb84910625dc7ec11d37aff75de7ccefad1e019e75fe72050d6529add2116b759d5056b8096286c05
26
27 diff --git a/sci-biology/fastx_toolkit/fastx_toolkit-0.0.14.ebuild b/sci-biology/fastx_toolkit/fastx_toolkit-0.0.14.ebuild
28 new file mode 100644
29 index 00000000000..d9012a54e16
30 --- /dev/null
31 +++ b/sci-biology/fastx_toolkit/fastx_toolkit-0.0.14.ebuild
32 @@ -0,0 +1,34 @@
33 +# Copyright 1999-2018 Gentoo Foundation
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=6
37 +
38 +inherit autotools
39 +
40 +DESCRIPTION="Tools for Short Read FASTA/FASTQ file processing"
41 +HOMEPAGE="http://hannonlab.cshl.edu/fastx_toolkit"
42 +SRC_URI="https://github.com/agordon/fastx_toolkit/releases/download/${PV}/${P}.tar.bz2"
43 +
44 +LICENSE="AGPL-3"
45 +SLOT="0"
46 +KEYWORDS="~amd64 ~x86"
47 +IUSE=""
48 +
49 +DEPEND="
50 + sci-biology/libgtextutils
51 + virtual/pkgconfig"
52 +RDEPEND="
53 + dev-perl/PerlIO-gzip
54 + dev-perl/GDGraph
55 + sci-biology/libgtextutils:=
56 + sci-visualization/gnuplot"
57 +
58 +PATCHES=(
59 + "${FILESDIR}"/${P}-fix-build-system.patch
60 + "${FILESDIR}"/${P}-gcc7.patch
61 +)
62 +
63 +src_prepare() {
64 + default
65 + eautoreconf
66 +}
67
68 diff --git a/sci-biology/fastx_toolkit/files/fastx_toolkit-0.0.14-fix-build-system.patch b/sci-biology/fastx_toolkit/files/fastx_toolkit-0.0.14-fix-build-system.patch
69 new file mode 100644
70 index 00000000000..a8b22579f73
71 --- /dev/null
72 +++ b/sci-biology/fastx_toolkit/files/fastx_toolkit-0.0.14-fix-build-system.patch
73 @@ -0,0 +1,63 @@
74 +--- a/configure.ac
75 ++++ b/configure.ac
76 +@@ -14,12 +14,12 @@
77 + [fastx_toolkit])
78 + AC_CONFIG_AUX_DIR(config)
79 + AC_CONFIG_MACRO_DIR([m4])
80 +-AM_CONFIG_HEADER(config.h)
81 ++AC_CONFIG_HEADERS([config.h])
82 + AM_INIT_AUTOMAKE([dist-bzip2])
83 +
84 + AC_PROG_CC
85 + AC_PROG_CXX
86 +-AC_PROG_LIBTOOL
87 ++LT_INIT
88 + AX_C_LONG_LONG
89 + AX_CXX_HEADER_STDCXX_TR1
90 + AX_CXX_COMPILE_STDCXX_11([noext],[optional])
91 +@@ -31,9 +31,9 @@
92 + PKG_CHECK_MODULES([GTEXTUTILS],[gtextutils])
93 +
94 + dnl --enable-wall
95 +-EXTRA_CHECKS="-Wall -Wextra -Wformat-nonliteral -Wformat-security -Wswitch-default -Wswitch-enum -Wunused-parameter -Wfloat-equal -Werror"
96 ++EXTRA_CHECKS="-Wall -Wextra -Wformat-nonliteral -Wformat-security -Wswitch-default -Wswitch-enum -Wunused-parameter -Wfloat-equal"
97 + AC_ARG_ENABLE(wall,
98 +-[ --enable-wall Enable many common GCC warnings (-Wall,-Wextra, -Werror etc., default enabled)],
99 ++[ --enable-wall Enable many common GCC warnings (-Wall,-Wextra etc., default enabled)],
100 + [case "${enableval}" in
101 + yes) wall=true ;;
102 + no) wall=false ;;
103 +@@ -45,22 +45,6 @@
104 + CXXFLAGS="${CXXFLAGS} ${EXTRA_CHECKS}"
105 + fi
106 +
107 +-dnl --enable-debug
108 +-AC_ARG_ENABLE(debug,
109 +-[ --enable-debug Enable debug mode (default enabled)],
110 +-[case "${enableval}" in
111 +- yes) debug=true ;;
112 +- no) debug=false ;;
113 +- *) AC_MSG_ERROR(bad value ${enableval} for --enable-debug) ;;
114 +-esac],[debug=true])
115 +-if test "$debug" = "true"
116 +-then
117 +- CFLAGS="${CFLAGS} -DDEBUG -g -O1"
118 +- CXXFLAGS="${CXXFLAGS} -DDEBUG -g -O1"
119 +-else
120 +- CFLAGS="${CFLAGS} -O3"
121 +- CXXFLAGS="${CXXFLAGS} -O3"
122 +-fi
123 +
124 + dnl 'all-static' marco copied from subversion's configure.ac
125 + dnl Check for --enable-all-static option
126 +--- a/Makefile.am
127 ++++ b/Makefile.am
128 +@@ -10,7 +10,7 @@
129 +
130 + EXTRA_DIST = reconf configure README install_galaxy_files.sh
131 +
132 +-SUBDIRS = m4 src doc galaxy scripts build_scripts
133 ++SUBDIRS = src doc galaxy scripts build_scripts
134 +
135 + ACLOCAL_AMFLAGS = -I m4
136 +
137
138 diff --git a/sci-biology/fastx_toolkit/files/fastx_toolkit-0.0.14-gcc7.patch b/sci-biology/fastx_toolkit/files/fastx_toolkit-0.0.14-gcc7.patch
139 new file mode 100644
140 index 00000000000..e4771778551
141 --- /dev/null
142 +++ b/sci-biology/fastx_toolkit/files/fastx_toolkit-0.0.14-gcc7.patch
143 @@ -0,0 +1,10 @@
144 +--- a/src/fasta_formatter/fasta_formatter.cpp
145 ++++ b/src/fasta_formatter/fasta_formatter.cpp
146 +@@ -103,6 +103,7 @@
147 + switch(opt) {
148 + case 'h':
149 + usage();
150 ++ exit(EXIT_SUCCESS);
151 +
152 + case 'i':
153 + input_filename = optarg;
154
155 diff --git a/sci-biology/fastx_toolkit/metadata.xml b/sci-biology/fastx_toolkit/metadata.xml
156 new file mode 100644
157 index 00000000000..880cea0165f
158 --- /dev/null
159 +++ b/sci-biology/fastx_toolkit/metadata.xml
160 @@ -0,0 +1,11 @@
161 +<?xml version="1.0" encoding="UTF-8"?>
162 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
163 +<pkgmetadata>
164 + <maintainer type="project">
165 + <email>sci@g.o</email>
166 + <name>Gentoo Science Project</name>
167 + </maintainer>
168 + <upstream>
169 + <remote-id type="github">agordon/fastx_toolkit</remote-id>
170 + </upstream>
171 +</pkgmetadata>