1 # Copyright 1999-2018 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 inherit multilib rpm toolchain-funcs
8 DESCRIPTION="Hardware detection tool used in SuSE Linux"
9 HOMEPAGE="https://www.opensuse.org/"
10 SRC_URI="http://download.opensuse.org/source/factory/repo/oss/suse/src/${P}-1.2.src.rpm"
14 KEYWORDS="amd64 ~arm ppc x86 ~amd64-linux ~x86-linux"
18 amd64? ( dev-libs/libx86emu )
19 x86? ( dev-libs/libx86emu )"
22 >=sys-kernel/linux-headers-2.6.17"
24 MAKEOPTS="${MAKEOPTS} -j1"
27 # Respect AR variable.
29 -e 's:ar r:$(AR) r:' \
30 src/{,isdn,ids,smp,hd}/Makefile || die
33 sed -i -e 's:$(CC) $(CFLAGS):$(CC) $(LDFLAGS) $(CFLAGS):' src/ids/Makefile || die
35 # Respect MAKE variable. Skip forced -pipe and -g. Respect LDFLAGS.
37 -e 's:make:$(MAKE):' \
39 -e 's:LDFLAGS.*=:LDFLAGS +=:' \
40 Makefile{,.common} || die
46 emake CC="$(tc-getCC)" RPM_OPT_FLAGS="${CFLAGS}"
50 emake DESTDIR="${ED}" LIBDIR="/usr/$(get_libdir)" install
52 dodoc changelog README*
54 insinto /usr/share/doc/${PF}/examples