/[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.6 - (hide annotations) (download)
Wed May 28 10:19:55 2014 UTC (3 years, 3 months ago) by jlec
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +3 -3 lines
sys-apps/hwinfo: Version Bump

(Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key B9D4F231BD1558AB!)

1 jlec 1.6 # Copyright 1999-2014 Gentoo Foundation
2 radhermit 1.1 # Distributed under the terms of the GNU General Public License v2
3 jlec 1.6 # $Header: /var/cvsroot/gentoo-x86/sys-apps/hwinfo/hwinfo-19.1.ebuild,v 1.5 2012/09/23 08:29:34 phajdan.jr Exp $
4 radhermit 1.1
5     EAPI=4
6     inherit multilib rpm toolchain-funcs
7    
8 jlec 1.6 DESCRIPTION="hardware detection tool used in SuSE Linux"
9 radhermit 1.1 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 phajdan.jr 1.5 KEYWORDS="amd64 ppc x86 ~amd64-linux ~x86-linux"
15 radhermit 1.1 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