app-admin/awscli: Bump to 1.37.9
[gentoo/gentoo.git] / net-dialup / linux-atm / linux-atm-2.5.2-r1.ebuild
blob7fe73566385bb36bb253d0ba8ab8ed9a7c49d84e
1 # Copyright 1999-2024 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
4 EAPI=8
6 inherit autotools flag-o-matic linux-info
8 DESCRIPTION="Tools for ATM"
9 HOMEPAGE="http://linux-atm.sourceforge.net/"
10 SRC_URI="https://downloads.sourceforge.net/${PN}/${P}.tar.gz"
12 LICENSE="GPL-2"
13 SLOT="0"
14 KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86"
16 BDEPEND="sys-devel/bison"
18 RESTRICT="test"
20 CONFIG_CHECK="~ATM"
22 PATCHES=(
23         "${FILESDIR}"/${P}-headers.patch
24         "${FILESDIR}"/${P}-linux-5.2-SIOCGSTAMP.patch
25         "${FILESDIR}"/${P}-linux-headers-5.19.patch
28 src_prepare() {
29         default
31         sed -i '/#define _LINUX_NETDEVICE_H/d' \
32                 src/arpd/*.c || die "sed command on arpd/*.c files failed"
34         eautoreconf
37 src_configure() {
38         # bug #944120
39         append-cflags -std=gnu17
40         append-flags -fno-strict-aliasing
41         export YACC=bison
42         econf
45 src_install() {
46         default
47         find "${ED}" -name '*.la' -delete || die
48         dodoc doc/README* doc/atm*