Gentoo Archives: gentoo-commits

From: Patrice Clement <monsieurp@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/nmeap/, dev-libs/nmeap/files/
Date: Mon, 29 Oct 2018 23:15:26
Message-Id: 1540854894.a05299dd81c8b959f5590e975e8f1c170e84b6b8.monsieurp@gentoo
1 commit: a05299dd81c8b959f5590e975e8f1c170e84b6b8
2 Author: Conrad Kostecki <conrad <AT> kostecki <DOT> com>
3 AuthorDate: Sun Oct 28 18:13:17 2018 +0000
4 Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
5 CommitDate: Mon Oct 29 23:14:54 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a05299dd
7
8 dev-libs/nmeap: bump to EAPI=7.
9
10 Also updated metadata.xml and fixed a compiler warning.
11
12 Signed-off-by: Conrad Kostecki <conrad <AT> kostecki.com>
13 Package-Manager: Portage-2.3.51, Repoman-2.3.11
14 Closes: https://github.com/gentoo/gentoo/pull/10279
15 Signed-off-by: Patrice Clement <monsieurp <AT> gentoo.org>
16
17 .../files/nmeap-0.3-fix-unitialized-variable.patch | 11 ++++
18 dev-libs/nmeap/metadata.xml | 7 +--
19 dev-libs/nmeap/nmeap-0.3-r1.ebuild | 60 ++++++++++++++++++++++
20 3 files changed, 75 insertions(+), 3 deletions(-)
21
22 diff --git a/dev-libs/nmeap/files/nmeap-0.3-fix-unitialized-variable.patch b/dev-libs/nmeap/files/nmeap-0.3-fix-unitialized-variable.patch
23 new file mode 100644
24 index 00000000000..46dcbea6407
25 --- /dev/null
26 +++ b/dev-libs/nmeap/files/nmeap-0.3-fix-unitialized-variable.patch
27 @@ -0,0 +1,11 @@
28 +--- a/src/nmeap01.c 2005-05-06 20:29:41.000000000 +0200
29 ++++ b/src/nmeap01.c 2018-10-28 19:10:49.000000000 +0100
30 +@@ -282,7 +282,7 @@
31 + */
32 + int nmeap_process(nmeap_context_t *context)
33 + {
34 +- int id;
35 ++ int id = 0;
36 + int i;
37 + nmeap_sentence_t *s;
38 +
39
40 diff --git a/dev-libs/nmeap/metadata.xml b/dev-libs/nmeap/metadata.xml
41 index 10629cc31d6..8a6d20835c5 100644
42 --- a/dev-libs/nmeap/metadata.xml
43 +++ b/dev-libs/nmeap/metadata.xml
44 @@ -9,12 +9,13 @@
45 <email>proxy-maint@g.o</email>
46 <name>Proxy Maintainers</name>
47 </maintainer>
48 - <upstream>
49 - <remote-id type="sourceforge">nmeap</remote-id>
50 - </upstream>
51 <longdescription>
52 Extensible NMEA-0183 (GPS) data parser in standard C.
53 A directly linkable library intended for applications
54 that want to embed GPS support, like app-misc/lcd4linux.
55 </longdescription>
56 + <upstream>
57 + <bugs-to>https://sourceforge.net/p/nmeap/bugs/</bugs-to>
58 + <remote-id type="sourceforge">nmeap</remote-id>
59 + </upstream>
60 </pkgmetadata>
61
62 diff --git a/dev-libs/nmeap/nmeap-0.3-r1.ebuild b/dev-libs/nmeap/nmeap-0.3-r1.ebuild
63 new file mode 100644
64 index 00000000000..61aa260e3f1
65 --- /dev/null
66 +++ b/dev-libs/nmeap/nmeap-0.3-r1.ebuild
67 @@ -0,0 +1,60 @@
68 +# Copyright 1999-2018 Gentoo Authors
69 +# Distributed under the terms of the GNU General Public License v2
70 +
71 +EAPI="7"
72 +
73 +inherit toolchain-funcs
74 +
75 +DESCRIPTION="Extensible NMEA-0183 (GPS) data parser in standard C"
76 +HOMEPAGE="http://nmeap.sourceforge.net/"
77 +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
78 +
79 +LICENSE="BSD"
80 +SLOT="0"
81 +KEYWORDS="~amd64 ~ppc ~x86"
82 +IUSE="doc"
83 +
84 +DEPEND="doc? ( app-doc/doxygen )"
85 +
86 +PATCHES=( "${FILESDIR}/${P}-fix-unitialized-variable.patch" )
87 +
88 +src_prepare() {
89 + default
90 +
91 + # Repsect users CFLAGS for the static lib archive
92 + sed -i -e 's/CFLAGS =/CFLAGS +=/' -e 's/-g -O0 -Werror//' src/Makefile || die
93 +
94 + # Don't build test programs, as they are not needed
95 + sed -i -e '/TST/d' Makefile || die
96 +
97 + # Silent output of Doxygen and update it, since it is quite old
98 + if use doc; then
99 + sed -i -e 's/QUIET.*/QUIET = YES/' Doxyfile || die
100 + doxygen -u Doxyfile 2>/dev/null || die
101 + fi
102 +}
103 +
104 +src_compile() {
105 + local myemakeopts=(
106 + AR="$(tc-getAR)"
107 + CC="$(tc-getCC)"
108 + )
109 +
110 + emake "${myemakeopts[@]}"
111 +
112 + if use doc; then
113 + doxygen Doxyfile || die
114 + fi
115 +}
116 +
117 +src_install() {
118 + dolib.a lib/libnmeap.a
119 +
120 + doheader inc/nmeap.h inc/nmeap_def.h
121 +
122 + if use doc; then
123 + local HTML_DOCS=( "doc/tutorial.html" "doc/html" )
124 + fi
125 +
126 + einstalldocs
127 +}