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/libgtextutils/, sci-biology/libgtextutils/files/
Date: Wed, 10 Jan 2018 09:52:45
Message-Id: 1515577941.bfc6c33552bb57d4e7e56686c91ae99e364e1bf3.soap@gentoo
1 commit: bfc6c33552bb57d4e7e56686c91ae99e364e1bf3
2 Author: David Seifert <soap <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jan 10 09:34:16 2018 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Wed Jan 10 09:52:21 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bfc6c335
7
8 sci-biology/libgtextutils: Initial addition
9
10 Closes: https://bugs.gentoo.org/486380
11 Package-Manager: Portage-2.3.19, Repoman-2.3.6
12
13 sci-biology/libgtextutils/Manifest | 1 +
14 .../libgtextutils-0.6.1-fix-build-system.patch | 61 ++++++++++++++++++++++
15 .../files/libgtextutils-0.6.1-gcc6.patch | 22 ++++++++
16 .../libgtextutils/libgtextutils-0.6.1.ebuild | 36 +++++++++++++
17 sci-biology/libgtextutils/metadata.xml | 12 +++++
18 5 files changed, 132 insertions(+)
19
20 diff --git a/sci-biology/libgtextutils/Manifest b/sci-biology/libgtextutils/Manifest
21 new file mode 100644
22 index 00000000000..9480b9ec641
23 --- /dev/null
24 +++ b/sci-biology/libgtextutils/Manifest
25 @@ -0,0 +1 @@
26 +DIST libgtextutils-0.6.1.tar.bz2 273459 BLAKE2B 81b1e9b467287ed9551fc53abddf5757efb2dd1c98f0388e2128535fbe70b706badd5702a5b5c3cb19a34c26ffa218c9c41caf9f17770a015b09fc13fabe4d53 SHA512 0bc392385f9e6c345dff82b3fb04f322e8aceca769e15a3a87da6c718b6e9a7e1de082940d4bb0339a4c3a86f706fde0de047df459682aa9ea216d6e5c17eab6
27
28 diff --git a/sci-biology/libgtextutils/files/libgtextutils-0.6.1-fix-build-system.patch b/sci-biology/libgtextutils/files/libgtextutils-0.6.1-fix-build-system.patch
29 new file mode 100644
30 index 00000000000..f7f608b792d
31 --- /dev/null
32 +++ b/sci-biology/libgtextutils/files/libgtextutils-0.6.1-fix-build-system.patch
33 @@ -0,0 +1,61 @@
34 +--- a/configure.ac
35 ++++ b/configure.ac
36 +@@ -15,7 +15,7 @@
37 +
38 + AC_CONFIG_AUX_DIR(config)
39 + AC_CONFIG_MACRO_DIR([m4])
40 +-AM_CONFIG_HEADER(config.h)
41 ++AC_CONFIG_HEADERS([config.h])
42 + AM_INIT_AUTOMAKE([dist-bzip2])
43 +
44 + # dynamic library version
45 +@@ -25,12 +25,12 @@
46 +
47 + AC_PROG_CC
48 + AC_PROG_CXX
49 +-AC_PROG_LIBTOOL
50 ++LT_INIT
51 +
52 + dnl --enable-wall
53 +-EXTRA_CHECKS="-Wall -Wextra -Wformat-nonliteral -Wformat-security -Wswitch-default -Wswitch-enum -Wunused-parameter -Wfloat-equal -Werror"
54 ++EXTRA_CHECKS="-Wall -Wextra -Wformat-nonliteral -Wformat-security -Wswitch-default -Wswitch-enum -Wunused-parameter -Wfloat-equal"
55 + AC_ARG_ENABLE(wall,
56 +-[ --enable-wall Enable many common GCC warnings (-Wall,-Wextra, -Werror etc., default enabled)],
57 ++[ --enable-wall Enable many common GCC warnings (-Wall,-Wextra etc., default enabled)],
58 + [case "${enableval}" in
59 + yes) wall=true ;;
60 + no) wall=false ;;
61 +@@ -42,22 +42,6 @@
62 + CXXFLAGS="${CXXFLAGS} ${EXTRA_CHECKS}"
63 + fi
64 +
65 +-dnl --enable-debug
66 +-AC_ARG_ENABLE(debug,
67 +-[ --enable-debug Enable debug mode (default enabled)],
68 +-[case "${enableval}" in
69 +- yes) debug=true ;;
70 +- no) debug=false ;;
71 +- *) AC_MSG_ERROR(bad value ${enableval} for --enable-debug) ;;
72 +-esac],[debug=true])
73 +-if test "$debug" = "true"
74 +-then
75 +- CFLAGS="${CFLAGS} -DDEBUG -g -O1"
76 +- CXXFLAGS="${CFLAGS} -DDEBUG -g -O1"
77 +-else
78 +- CFLAGS="${CFLAGS} -O3"
79 +- CXXFLAGS="${CFLAGS} -O3"
80 +-fi
81 +
82 +
83 + dnl --enable-tuple-parser-check
84 +--- a/Makefile.am
85 ++++ b/Makefile.am
86 +@@ -9,7 +9,7 @@
87 + # implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
88 +
89 + EXTRA_DIST = reconf configure
90 +-SUBDIRS = m4 src doc tests
91 ++SUBDIRS = src doc tests
92 +
93 + pkgconfigdir = $(libdir)/pkgconfig
94 + pkgconfig_DATA = gtextutils.pc
95
96 diff --git a/sci-biology/libgtextutils/files/libgtextutils-0.6.1-gcc6.patch b/sci-biology/libgtextutils/files/libgtextutils-0.6.1-gcc6.patch
97 new file mode 100644
98 index 00000000000..490b4be9b91
99 --- /dev/null
100 +++ b/sci-biology/libgtextutils/files/libgtextutils-0.6.1-gcc6.patch
101 @@ -0,0 +1,22 @@
102 +From d8bb66d26288293ebde7f8d88979c13c208ffce5 Mon Sep 17 00:00:00 2001
103 +From: Assaf Gordon <assafgordon@×××××.com>
104 +Date: Mon, 14 Aug 2017 11:52:09 -0600
105 +Subject: [PATCH] text_line_reader: adjust to new compilers
106 +
107 +Fixes https://github.com/agordon/libgtextutils/issues/10 .
108 +---
109 + src/gtextutils/text_line_reader.cpp | 2 +-
110 + 1 file changed, 1 insertion(+), 1 deletion(-)
111 +
112 +diff --git a/src/gtextutils/text_line_reader.cpp b/src/gtextutils/text_line_reader.cpp
113 +index fede933..f0984d5 100644
114 +--- a/src/gtextutils/text_line_reader.cpp
115 ++++ b/src/gtextutils/text_line_reader.cpp
116 +@@ -44,6 +44,6 @@ bool TextLineReader::next_line()
117 + if (input_stream.eof())
118 + return false;
119 +
120 +- return input_stream ;
121 ++ return input_stream.good() ;
122 + }
123 +
124
125 diff --git a/sci-biology/libgtextutils/libgtextutils-0.6.1.ebuild b/sci-biology/libgtextutils/libgtextutils-0.6.1.ebuild
126 new file mode 100644
127 index 00000000000..8f0455e5322
128 --- /dev/null
129 +++ b/sci-biology/libgtextutils/libgtextutils-0.6.1.ebuild
130 @@ -0,0 +1,36 @@
131 +# Copyright 1999-2018 Gentoo Foundation
132 +# Distributed under the terms of the GNU General Public License v2
133 +
134 +EAPI=6
135 +
136 +inherit autotools
137 +
138 +DESCRIPTION="Gordon Text utils Library"
139 +HOMEPAGE="http://hannonlab.cshl.edu/fastx_toolkit/"
140 +SRC_URI="http://hannonlab.cshl.edu/fastx_toolkit/${P}.tar.bz2"
141 +
142 +LICENSE="AGPL-3"
143 +SLOT="0/0"
144 +KEYWORDS="~amd64 ~x86"
145 +IUSE=""
146 +
147 +PATCHES=(
148 + "${FILESDIR}"/${P}-fix-build-system.patch
149 + "${FILESDIR}"/${P}-gcc6.patch
150 +)
151 +
152 +src_prepare() {
153 + default
154 + eautoreconf
155 +}
156 +
157 +src_configure() {
158 + econf --disable-static
159 +}
160 +
161 +src_install() {
162 + default
163 +
164 + # package installs .pc files
165 + find "${D}" -name '*.la' -delete || die
166 +}
167
168 diff --git a/sci-biology/libgtextutils/metadata.xml b/sci-biology/libgtextutils/metadata.xml
169 new file mode 100644
170 index 00000000000..138cb7705c0
171 --- /dev/null
172 +++ b/sci-biology/libgtextutils/metadata.xml
173 @@ -0,0 +1,12 @@
174 +<?xml version="1.0" encoding="UTF-8"?>
175 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
176 +<pkgmetadata>
177 + <maintainer type="person">
178 + <email>mmokrejs@×××××××××××××××.cz</email>
179 + <name>Martin Mokrejs</name>
180 + </maintainer>
181 + <maintainer type="project">
182 + <email>sci-biology@g.o</email>
183 + <name>Gentoo Biology Project</name>
184 + </maintainer>
185 +</pkgmetadata>