Files
gentoo/app-misc/linuxspa/linuxspa-0.7.1-r2.ebuild
T
Michael Mair-Keimberger 2d29157cfa app-misc/linuxspa: EAPI 8 bump
Closes: https://github.com/gentoo/gentoo/pull/30618
Signed-off-by: Michael Mair-Keimberger <mmk@levelnine.at>
Signed-off-by: Florian Schmaus <flow@gentoo.org>
2023-04-16 22:00:53 +02:00

39 lines
832 B
Bash

# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit toolchain-funcs
MY_PN="LinuxSPA"
DESCRIPTION="Linux Serial Protocol Analyser"
HOMEPAGE="https://sourceforge.net/projects/serialsniffer/"
SRC_URI="mirror://sourceforge/serialsniffer/${MY_PN}-${PV}.tgz"
S="${WORKDIR}/${MY_PN}"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
PATCHES=( "${FILESDIR}/${P}-compile-fix.patch" )
src_prepare() {
default
sed -i Makefile \
-e 's| -o | $(LDFLAGS)&|g' \
|| die "sed Makefile"
}
src_compile() {
emake \
CC="$(tc-getCC)" \
CFLAGS="${CFLAGS} -Wall" \
LDFLAGS="${LDFLAGS}"
}
src_install() {
dobin LinuxSPA std232
dodoc ASCII_Filter.txt BCircuit.txt LinuxSPA.png READING_Materials.txt \
README TODO connector-1a.ps connector-2a.ps cooked.file raw.file
}