Contents of /trunk/core/hwinfo/hwinfo-15.3-r3.smage2
Parent Directory | Revision Log
Revision 1500 -
(show annotations)
(download)
Sat May 9 13:18:39 2009 UTC (15 years, 4 months ago) by niro
File size: 1567 byte(s)
Sat May 9 13:18:39 2009 UTC (15 years, 4 months ago) by niro
File size: 1567 byte(s)
-typo
1 | # $Id$ |
2 | |
3 | PNAME="hwinfo" |
4 | PVER="15.3" |
5 | PBUILD="r3" |
6 | |
7 | PCATEGORIE="sys-apps" |
8 | STATE="unstable" |
9 | |
10 | DESCRIPTION="hwinfo is the hardware detection tool used in SuSE Linux." |
11 | HOMEPAGE="http://www.suse.com/" |
12 | |
13 | DEPEND=">= sys-fs/sysfsutils-2 |
14 | >= sys-apps/hal-0.5.11 |
15 | >= sys-apps/dbus-1.2" |
16 | |
17 | SRCFILE="${PNAME}_${PVER}.orig.tar.gz" |
18 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
19 | |
20 | sminclude mtools |
21 | |
22 | SRC_URI=( |
23 | http://ftp.de.debian.org/debian/pool/main/h/${PNAME}/${SRCFILE} |
24 | mirror://${PNAME}/${SRCFILE} |
25 | mirror://${PNAME}/${PNAME}-13.41-debian-all-1.patch |
26 | mirror://${PNAME}/${PNAME}-13.41-remove-sbin.patch |
27 | mirror://${PNAME}/${PNAME}-${PVER}-fix-headers.patch |
28 | ) |
29 | |
30 | UP2DATE="updatecmd http://ftp.de.debian.org/debian/pool/main/h/${PNAME} | grep .tar.gz | sed -n 's/.*_\(.*\).orig.*/\1/;$ p'" |
31 | |
32 | src_prepare() |
33 | { |
34 | munpack ${SRCFILE} || die |
35 | cd ${SRCDIR} |
36 | |
37 | # apply debian patches |
38 | mpatch ${PNAME}-13.41-debian-all-1.patch || die |
39 | |
40 | # remove empty $(destdir)/sbin from makefile |
41 | mpatch ${PNAME}-13.41-remove-sbin.patch || die |
42 | |
43 | # fix missing headers on x86 with newer glibc/linux-headers |
44 | mpatch ${PNAME}-${PVER}-fix-headers.patch || die |
45 | } |
46 | |
47 | src_compile() |
48 | { |
49 | cd ${SRCDIR} |
50 | mmake -j1 EXTRA_FLAGS="${CFLAGS}" || die |
51 | } |
52 | |
53 | src_install() |
54 | { |
55 | cd ${SRCDIR} |
56 | mmake DESTDIR=${BINDIR} install || die |
57 | |
58 | # respect multilib |
59 | if [[ $(mlibdir) != lib ]] |
60 | then |
61 | mv ${BINDIR}/usr/lib ${BINDIR}/usr/$(mlibdir) || die |
62 | # fix pkgconfig file |
63 | sed -i "s:/usr/lib:/usr/$(mlibdir):g" ${BINDIR}/usr/$(mlibdir)/pkgconfig/hwinfo.pc || die |
64 | fi |
65 | |
66 | minstallman doc/hwinfo.8 || die |
67 | minstalldocs Changelog COPYING README VERSION || die |
68 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |