Gentoo Archives: gentoo-commits

From: "Tim Harder (radhermit)" <radhermit@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-apps/hwinfo: hwinfo-20.0.ebuild ChangeLog
Date: Sun, 26 Aug 2012 19:35:56
Message-Id: 20120826193547.4BF2E2082A@flycatcher.gentoo.org
1 radhermit 12/08/26 19:35:47
2
3 Modified: ChangeLog
4 Added: hwinfo-20.0.ebuild
5 Log:
6 Version bump.
7
8 (Portage version: 2.2.0_alpha121/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.30 sys-apps/hwinfo/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/hwinfo/ChangeLog?rev=1.30&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/hwinfo/ChangeLog?rev=1.30&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/hwinfo/ChangeLog?r1=1.29&r2=1.30
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sys-apps/hwinfo/ChangeLog,v
20 retrieving revision 1.29
21 retrieving revision 1.30
22 diff -u -r1.29 -r1.30
23 --- ChangeLog 24 Aug 2012 07:17:05 -0000 1.29
24 +++ ChangeLog 26 Aug 2012 19:35:47 -0000 1.30
25 @@ -1,6 +1,11 @@
26 # ChangeLog for sys-apps/hwinfo
27 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/hwinfo/ChangeLog,v 1.29 2012/08/24 07:17:05 xmw Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/hwinfo/ChangeLog,v 1.30 2012/08/26 19:35:47 radhermit Exp $
30 +
31 +*hwinfo-20.0 (26 Aug 2012)
32 +
33 + 26 Aug 2012; Tim Harder <radhermit@g.o> +hwinfo-20.0.ebuild:
34 + Version bump.
35
36 24 Aug 2012; Michael Weber <xmw@g.o> hwinfo-19.1.ebuild:
37 ppc stable (bug 422173).
38
39
40
41 1.1 sys-apps/hwinfo/hwinfo-20.0.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/hwinfo/hwinfo-20.0.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/hwinfo/hwinfo-20.0.ebuild?rev=1.1&content-type=text/plain
45
46 Index: hwinfo-20.0.ebuild
47 ===================================================================
48 # Copyright 1999-2012 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/sys-apps/hwinfo/hwinfo-20.0.ebuild,v 1.1 2012/08/26 19:35:47 radhermit Exp $
51
52 EAPI=4
53 inherit multilib rpm toolchain-funcs
54
55 DESCRIPTION="hwinfo is the hardware detection tool used in SuSE Linux."
56 HOMEPAGE="http://www.opensuse.org/"
57 SRC_URI="http://download.opensuse.org/source/factory/repo/oss/suse/src/${P}-1.4.src.rpm"
58
59 LICENSE="GPL-2"
60 SLOT="0"
61 KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux"
62 IUSE=""
63
64 RDEPEND="amd64? ( dev-libs/libx86emu )
65 x86? ( dev-libs/libx86emu )"
66 DEPEND="${RDEPEND}
67 sys-devel/flex
68 >=sys-kernel/linux-headers-2.6.17"
69
70 MAKEOPTS="${MAKEOPTS} -j1"
71
72 src_prepare() {
73 # Respect AR variable.
74 sed -i \
75 -e 's:ar r:$(AR) r:' \
76 src/{,isdn,ids,smp,hd}/Makefile || die
77
78 # Avoid -I directories for dbus because HAL is obsolete.
79 sed -i -e '/CFLAGS/d' src/hd/Makefile || die
80 # Respect LDFLAGS.
81 sed -i -e 's:$(CC) -shared:& $(LDFLAGS):' src/Makefile || die
82 sed -i -e 's:$(CC) $(CFLAGS):$(CC) $(LDFLAGS) $(CFLAGS):' src/ids/Makefile || die
83
84 # Respect MAKE variable. Skip forced -pipe and -g. Respect LDFLAGS.
85 sed -i \
86 -e 's:make:$(MAKE):' \
87 -e 's:-pipe -g::' \
88 -e 's:LDFLAGS.*=:LDFLAGS +=:' \
89 Makefile{,.common} || die
90 }
91
92 src_compile() {
93 tc-export AR
94 emake CC="$(tc-getCC)" RPM_OPT_FLAGS="${CFLAGS}"
95 }
96
97 src_install() {
98 emake DESTDIR="${ED}" LIBDIR="/usr/$(get_libdir)" install
99
100 dodoc changelog README
101 doman doc/hwinfo.8
102 insinto /usr/share/doc/${PF}/examples
103 doins doc/example*.c
104 }