Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/olsrd/
Date: Sat, 09 Oct 2021 04:30:46
Message-Id: 1633753749.b102d60d6af470bfd9a8463b86722df37316fda4.sam@gentoo
1 commit: b102d60d6af470bfd9a8463b86722df37316fda4
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Sat Oct 9 04:29:04 2021 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Sat Oct 9 04:29:09 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b102d60d
7
8 net-misc/olsrd: add 20210612 snapshot
9
10 Fixes build failure with >= bison 3.7.
11
12 Thanks-to: Christoph Loesc
13 Closes: https://bugs.gentoo.org/735572
14 Bug: https://bugs.gentoo.org/715392
15 Bug: https://bugs.gentoo.org/776742
16 Signed-off-by: Sam James <sam <AT> gentoo.org>
17
18 net-misc/olsrd/Manifest | 1 +
19 net-misc/olsrd/olsrd-0.9.8_p20210612.ebuild | 121 ++++++++++++++++++++++++++++
20 2 files changed, 122 insertions(+)
21
22 diff --git a/net-misc/olsrd/Manifest b/net-misc/olsrd/Manifest
23 index 48e954ea147..4c66dece256 100644
24 --- a/net-misc/olsrd/Manifest
25 +++ b/net-misc/olsrd/Manifest
26 @@ -1,2 +1,3 @@
27 DIST olsrd-0.9.6.1.tar.bz2 908871 BLAKE2B 180a30039607fd5c16676c62d0d1045bc5ce2a13675b34ca192f1f19127facb12428f6ba631e45fc42b191693a6ef987271745d769a74062ce682e1796b83dc9 SHA512 06e97c3fef6e2f24885fc96f9e68582523926188e4bbe9283c3add997c20f8cec1e691063d5cf6392e4e56dfa250c2cd8ac00035b47f56dbd2069b12b430255a
28 DIST olsrd-0.9.8.tar.gz 14416300 BLAKE2B 67477d9359686cb163221f5f354f330b38811e9e77bd71379e359bbfba2b55e917009ac537b845420a5bb73284ac83e0b91495e011c810f8169e4edb6bea940f SHA512 cf3066310c4ea644ba1f482e847aa073ad006000308bfa993cecda4ccf4e9919a9005680b3c1d98e34f0c13818213f208e8dc93c8b060eeaaac160fc3df4ce8c
29 +DIST olsrd-0.9.8_p20210612.tar.gz 14446761 BLAKE2B ef841fcf81ae25acb3c47d70f15e34c614b17c28688e0f718aa45ebabea68844f825a4187bbf5468daa4763c8a2b8c87f5f5a502ce0c5fde1b940f9aa3c6ca5e SHA512 466b762ea1f9ecc4ded3298700d1786b893d87fbcc2e457c75f5adfaaf543e6cea5ab2e63d34814a7c2f65cab895fb19c4cb5a7ec5347b13d0e18703a641126e
30
31 diff --git a/net-misc/olsrd/olsrd-0.9.8_p20210612.ebuild b/net-misc/olsrd/olsrd-0.9.8_p20210612.ebuild
32 new file mode 100644
33 index 00000000000..f106d0346a3
34 --- /dev/null
35 +++ b/net-misc/olsrd/olsrd-0.9.8_p20210612.ebuild
36 @@ -0,0 +1,121 @@
37 +# Copyright 1999-2021 Gentoo Authors
38 +# Distributed under the terms of the GNU General Public License v2
39 +
40 +EAPI=7
41 +
42 +inherit toolchain-funcs
43 +
44 +# Snapshot to fix build failure with >= bison 3.7
45 +# bug #735572
46 +MY_COMMIT="4973feb538b5b98b9d8ac2f8f474202f6d73de78"
47 +DESCRIPTION="An implementation of the Optimized Link State Routing protocol"
48 +HOMEPAGE="http://www.olsr.org/"
49 +SRC_URI="https://github.com/OLSR/olsrd/archive/${MY_COMMIT}.tar.gz -> ${P}.tar.gz"
50 +#SRC_URI="https://github.com/OLSR/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
51 +S="${WORKDIR}/${PN}-${MY_COMMIT}"
52 +
53 +LICENSE="BSD LGPL-2.1"
54 +SLOT="0"
55 +KEYWORDS="~amd64 ~x86"
56 +IUSE="gtk pud"
57 +
58 +DEPEND="
59 + gtk? (
60 + dev-libs/glib:2
61 + x11-libs/gdk-pixbuf:2
62 + x11-libs/gtk+:2
63 + )
64 + pud? ( sci-geosciences/gpsd )
65 +"
66 +RDEPEND="
67 + ${DEPEND}
68 +"
69 +BDEPEND="virtual/pkgconfig"
70 +
71 +PATCHES=(
72 + "${FILESDIR}"/${PN}-0.9.0.2-gtk.patch
73 +)
74 +
75 +src_prepare() {
76 + default
77 +
78 + # fix parallel make
79 + # respect AR
80 + # verbose build
81 + # fix default prefix, bug #453440
82 + sed -i \
83 + -e '/@echo "\[/d' \
84 + -e 's|$(MAKECMD)|$(MAKE)|g' \
85 + -e 's|@$(CC)|$(CC)|g' \
86 + -e 's|@ar |$(AR) |g' \
87 + -e '/^prefix/s:/usr/local:/usr:' \
88 + $( find -name 'Makefile*' ) || die
89 +
90 + # respect LDFLAGS
91 + sed -i \
92 + -e 's|$(CC)|& $(OLSRD_LDFLAGS)|g' \
93 + lib/pud/nmealib/Makefile lib/pud/wireformat/Makefile || die
94 +}
95 +
96 +src_configure() {
97 + if ! use pud; then
98 + sed -i -e '/^SUBDIRS/ s|pud||g' Makefile || die
99 + fi
100 +}
101 +
102 +src_compile() {
103 + tc-export PKG_CONFIG
104 +
105 + emake \
106 + CC="$(tc-getCC)" \
107 + LIBDIR="/usr/$(get_libdir)/${PN}" \
108 + OLSRD_LDFLAGS="${LDFLAGS}" \
109 + OS=linux \
110 + VERBOSE=1 \
111 + build_all
112 +
113 + if use gtk; then
114 + emake -C gui/linux-gtk LIBDIR="/usr/$(get_libdir)/${PN}" CC="$(tc-getCC)"
115 + fi
116 +}
117 +
118 +src_install() {
119 + emake \
120 + DESTDIR="${D}" \
121 + DOCDIR_OLSRD="${D}/usr/share/doc/${PF}" \
122 + LIBDIR="${D}/usr/$(get_libdir)/${PN}" \
123 + OS=linux \
124 + STRIP=true \
125 + install_all
126 +
127 + if use gtk; then
128 + emake -C gui/linux-gtk \
129 + DESTDIR="${D}" \
130 + LIBDIR="${D}/usr/$(get_libdir)/${PN}" \
131 + install
132 + fi
133 +
134 + doinitd "${FILESDIR}"/${PN}
135 +
136 + gzip -d \
137 + "${ED}"/usr/share/man/man5/olsrd.conf.5.gz \
138 + "${ED}"/usr/share/man/man8/olsrd.8.gz \
139 + || die
140 +
141 + dodoc CHANGELOG \
142 + valgrind-howto.txt files/olsrd.conf.default.rfc \
143 + files/olsrd.conf.default.lq \
144 + lib/arprefresh/README_ARPREFRESH \
145 + lib/bmf/README_BMF \
146 + lib/dot_draw/README_DOT_DRAW \
147 + lib/dyn_gw/README_DYN_GW \
148 + lib/dyn_gw_plain/README_DYN_GW_PLAIN \
149 + lib/httpinfo/README_HTTPINFO \
150 + lib/mini/README_MINI \
151 + lib/nameservice/README_NAMESERVICE \
152 + lib/pgraph/README_PGRAPH \
153 + lib/quagga/README_QUAGGA \
154 + lib/secure/README_SECURE \
155 + lib/txtinfo/README_TXTINFO \
156 + lib/watchdog/README_WATCHDOG
157 +}