Gentoo Archives: gentoo-commits

From: "Robin H. Johnson (robbat2)" <robbat2@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-apps/hwinfo: hwinfo-16.0.ebuild ChangeLog
Date: Mon, 01 Feb 2010 06:59:04
Message-Id: E1NbqFN-0003aU-HD@stork.gentoo.org
1 robbat2 10/02/01 06:58:57
2
3 Modified: ChangeLog
4 Added: hwinfo-16.0.ebuild
5 Log:
6 Version bump per bug #266745. Avoid kernel header issues per bug #236449. I know the last part of the build is forced non-parallel. It is not trivially fixable. Tell repoman to get lost.
7 (Portage version: 2.2_rc61/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.11 sys-apps/hwinfo/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/hwinfo/ChangeLog?rev=1.11&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/hwinfo/ChangeLog?rev=1.11&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/hwinfo/ChangeLog?r1=1.10&r2=1.11
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/sys-apps/hwinfo/ChangeLog,v
19 retrieving revision 1.10
20 retrieving revision 1.11
21 diff -p -w -b -B -u -u -r1.10 -r1.11
22 --- ChangeLog 16 Jul 2008 12:59:19 -0000 1.10
23 +++ ChangeLog 1 Feb 2010 06:58:56 -0000 1.11
24 @@ -1,6 +1,14 @@
25 # ChangeLog for sys-apps/hwinfo
26 -# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/hwinfo/ChangeLog,v 1.10 2008/07/16 12:59:19 nixnut Exp $
28 +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
29 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/hwinfo/ChangeLog,v 1.11 2010/02/01 06:58:56 robbat2 Exp $
30 +
31 +*hwinfo-16.0 (01 Feb 2010)
32 +
33 + 01 Feb 2010; Robin H. Johnson <robbat2@g.o> +hwinfo-16.0.ebuild,
34 + +files/hwinfo-16.0-parallel-fixes.patch:
35 + Version bump per bug #266745. Avoid kernel header issues per bug #236449.
36 + I know the last part of the build is forced non-parallel. It is not
37 + trivially fixable. Tell repoman to get lost.
38
39 16 Jul 2008; nixnut <nixnut@g.o> hwinfo-13.28.ebuild:
40 Stable on ppc wrt bug 231667
41
42
43
44 1.1 sys-apps/hwinfo/hwinfo-16.0.ebuild
45
46 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/hwinfo/hwinfo-16.0.ebuild?rev=1.1&view=markup
47 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/hwinfo/hwinfo-16.0.ebuild?rev=1.1&content-type=text/plain
48
49 Index: hwinfo-16.0.ebuild
50 ===================================================================
51 # Copyright 1999-2010 Gentoo Foundation
52 # Distributed under the terms of the GNU General Public License v2
53 # $Header: /var/cvsroot/gentoo-x86/sys-apps/hwinfo/hwinfo-16.0.ebuild,v 1.1 2010/02/01 06:58:56 robbat2 Exp $
54
55 EAPI=2
56 inherit eutils
57
58 DESCRIPTION="hwinfo is the hardware detection tool used in SuSE Linux."
59 HOMEPAGE="http://www.suse.com"
60 DEBIAN_PV="2"
61 DEBIAN_BASE_URI="mirror://debian/pool/main/${PN:0:1}/${PN}/"
62 SRC_URI="${DEBIAN_BASE_URI}/${PN}_${PV}.orig.tar.gz
63 ${DEBIAN_BASE_URI}/${PN}_${PV}-${DEBIAN_PV}.diff.gz"
64 LICENSE="GPL-2"
65 SLOT="0"
66 KEYWORDS="~amd64 ~ppc ~x86"
67 IUSE=""
68 RDEPEND=">=sys-fs/sysfsutils-2
69 sys-apps/hal
70 sys-apps/dbus"
71 # this package won't work on *BSD
72 DEPEND="${RDEPEND}
73 >=sys-kernel/linux-headers-2.6.17"
74
75 src_unpack (){
76 unpack ${PN}_${PV}.orig.tar.gz
77 }
78
79 src_prepare() {
80 EPATCH_OPTS="-p1 -d ${S}" epatch "${DISTDIR}"/${PN}_${PV}-${DEBIAN_PV}.diff.gz
81 cd "${S}"
82 for i in $(<"${S}"/debian/patches/series) ; do
83 EPATCH_SUFFIX="" EPATCH_FORCE="yes" epatch "${S}"/debian/patches/${i}
84 done
85 EPATCH_OPTS="-p1 -d ${S}" epatch "${FILESDIR}"/${PN}-13.11-makefile-fixes.patch
86 EPATCH_OPTS="-p1 -d ${S}" epatch "${FILESDIR}"/${PN}-16.0-parallel-fixes.patch
87 #sed -i -e "s,^LIBS[ \t]*= -lhd,LIBS = -lhd -lsysfs," ${S}/Makefile
88 #sed -i -e "s,^LIBDIR[ \t]*= /usr/lib$,LIBDIR = /usr/$(get_libdir)," ${S}/Makefile
89 sed -i -e 's,make,$(MAKE),g' "${S}"/Makefile "${S}"/Makefile.common
90 sed -i -e '/^touch:/s,$, $(LIBHD),g' "${S}"/src/Makefile
91 sed -i -e '/^hw[a-z]\+:.*$(LIBHD)/s,$, subdirs ranlib,g' "${S}"/Makefile
92 echo '$(LIBHD): subdirs' >>"${S}"/Makefile
93 for i in src/{,ids,hd,isdn,isdn/cdb,int10,smp} ; do
94 echo 'objects: $(OBJS) $(LIBHD)' >>"${S}"/${i}/Makefile
95 echo '$(OBJS): subdirs' >>"${S}"/${i}/Makefile
96 echo 'libs: $(LIBHD) subdirs $(OBJS)' >>"${S}"/${i}/Makefile
97 done
98
99 echo 'libs:' >>"${S}"/src/x86emu/Makefile
100
101 echo 'libs: subdirs' >>"${S}"/Makefile
102 echo 'ranlib: $(LIBHD) subdirs' >>"${S}"/Makefile
103 echo -e "\tranlib \$(LIBHD)" >>"${S}"/Makefile
104 }
105
106 src_compile(){
107 # build is NOT parallel safe, and the build system blows goats
108 einfo "ISDN CDB pass"
109 emake EXTRA_FLAGS="${CFLAGS}" -C 'src/isdn/cdb' || die "emake failed"
110 einfo "LIBS pass"
111 emake EXTRA_FLAGS="${CFLAGS}" libs || die "emake failed"
112 einfo "FINAL pass"
113 emake -j1 EXTRA_FLAGS="${CFLAGS}" || die "emake failed"
114 }
115
116 src_install() {
117 emake install DESTDIR="${D}" || die
118 [[ "$(get_libdir)" != "lib" ]] && mv "${D}"/usr/lib "${D}/usr/$(get_libdir)"
119 dodoc VERSION README
120 doman doc/hwinfo.8
121 }