blob: 022abd655a706a7707862093ebcf367ed4df0fb8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit toolchain-funcs
DESCRIPTION="library that provides an easy API to Linux serial ports"
HOMEPAGE="http://ezv24.sourceforge.net"
SRC_URI="mirror://sourceforge/ezv24/${P}.tar.gz"
LICENSE="GPL-2+"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~ppc sparc ~x86"
HTML_DOCS=( api-html/. )
PATCHES=(
"${FILESDIR}"/${P}-build.patch
"${FILESDIR}"/${P}-test.patch
)
src_prepare() {
default
tc-export AR CC RANLIB
sed -i -e 's:__LINUX__:__linux__:' *.c *.h || die
}
src_install() {
export NO_LDCONFIG="stupid"
emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" \
LIBDIR="${EPREFIX}/usr/$(get_libdir)" install
einstalldocs
find "${ED}" -name '*.a' -delete || die
}
|