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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Tue Dec 13 23:12:40 2011 UTC (2 years, 4 months ago) by ago
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +2 -2 lines
Stable for AMD64, wrt bug #392833

(Portage version: 2.1.10.39/cvs/Linux i686)

1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sys-apps/hwinfo/hwinfo-18.5.ebuild,v 1.4 2011/12/11 09:00:23 phajdan.jr 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}-2.1.src.rpm"
11
12 LICENSE="GPL-2"
13 SLOT="0"
14 KEYWORDS="amd64 ~ppc x86 ~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