/[gentoo-x86]/sys-apps/hwinfo/hwinfo-19.1.ebuild
Gentoo

Contents of /sys-apps/hwinfo/hwinfo-19.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Sun Sep 23 08:29:34 2012 UTC (21 months, 2 weeks ago) by phajdan.jr
Branch: MAIN
Changes since 1.4: +2 -2 lines
x86 stable wrt bug #422173

(Portage version: 2.1.11.9/cvs/Linux i686)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sys-apps/hwinfo/hwinfo-19.1.ebuild,v 1.4 2012/08/24 07:17:05 xmw Exp $
4
5 EAPI=4
6 inherit multilib rpm toolchain-funcs
7
8 DESCRIPTION="hwinfo is the hardware detection tool used in SuSE Linux."
9 HOMEPAGE="http://www.opensuse.org/"
10 SRC_URI="http://download.opensuse.org/source/factory/repo/oss/suse/src/${P}-1.2.src.rpm"
11
12 LICENSE="GPL-2"
13 SLOT="0"
14 KEYWORDS="amd64 ppc x86 ~amd64-linux ~x86-linux"
15 IUSE=""
16
17 RDEPEND="amd64? ( dev-libs/libx86emu )
18 x86? ( dev-libs/libx86emu )"
19 DEPEND="${RDEPEND}
20 sys-devel/flex
21 >=sys-kernel/linux-headers-2.6.17"
22
23 MAKEOPTS="${MAKEOPTS} -j1"
24
25 src_prepare() {
26 # Respect AR variable.
27 sed -i \
28 -e 's:ar r:$(AR) r:' \
29 src/{,isdn,ids,smp,hd}/Makefile || die
30
31 # Avoid -I directories for dbus because HAL is obsolete.
32 sed -i -e '/CFLAGS/d' src/hd/Makefile || die
33 # Respect LDFLAGS.
34 sed -i -e 's:$(CC) -shared:& $(LDFLAGS):' src/Makefile || die
35 sed -i -e 's:$(CC) $(CFLAGS):$(CC) $(LDFLAGS) $(CFLAGS):' src/ids/Makefile || die
36
37 # Respect MAKE variable. Skip forced -pipe and -g. Respect LDFLAGS.
38 sed -i \
39 -e 's:make:$(MAKE):' \
40 -e 's:-pipe -g::' \
41 -e 's:LDFLAGS.*=:LDFLAGS +=:' \
42 Makefile{,.common} || die
43 }
44
45 src_compile() {
46 tc-export AR
47 emake CC="$(tc-getCC)" RPM_OPT_FLAGS="${CFLAGS}"
48 }
49
50 src_install() {
51 emake DESTDIR="${ED}" LIBDIR="/usr/$(get_libdir)" install
52
53 dodoc changelog README
54 doman doc/hwinfo.8
55 insinto /usr/share/doc/${PF}/examples
56 doins doc/example*.c
57 }

  ViewVC Help
Powered by ViewVC 1.1.20