Contents of /trunk/core/hwinfo/hwinfo-15.3-r1.smage2
Parent Directory | Revision Log
Revision 28 -
(show annotations)
(download)
Fri Oct 10 23:25:33 2008 UTC (15 years, 11 months ago) by niro
File size: 1496 byte(s)
Fri Oct 10 23:25:33 2008 UTC (15 years, 11 months ago) by niro
File size: 1496 byte(s)
- moved to 'core'
1 | # $Header: /magellan-cvs/smage/hwinfo/hwinfo-13.41-r4.smage2,v 1.1 2008/04/09 21:55:50 niro Exp $ |
2 | |
3 | PNAME="hwinfo" |
4 | PVER="15.3" |
5 | PBUILD="r1" |
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.10 |
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}-${PVER}-debian-all-1.patch |
26 | mirror://${PNAME}/${PNAME}-13.41-remove-sbin.patch |
27 | ) |
28 | |
29 | UP2DATE="updatecmd http://ftp.de.debian.org/debian/pool/main/h/${PNAME} | grep .tar.gz | sed -n 's/.*_\(.*\).orig.*/\1/;$ p'" |
30 | |
31 | src_prepare() |
32 | { |
33 | munpack ${SRCFILE} || die |
34 | cd ${SRCDIR} |
35 | |
36 | # apply debian patches |
37 | mpatch ${PNAME}-${PVER}-debian-all-1.patch || die |
38 | |
39 | # remove empty $(destdir)/sbin from makefile |
40 | mpatch ${PNAME}-13.41-remove-sbin.patch || die |
41 | } |
42 | |
43 | src_compile() |
44 | { |
45 | cd ${SRCDIR} |
46 | mmake -j1 EXTRA_FLAGS="${CFLAGS}" || die |
47 | } |
48 | |
49 | src_install() |
50 | { |
51 | cd ${SRCDIR} |
52 | mmake DESTDIR=${BINDIR} install || die |
53 | |
54 | # respect multilib |
55 | if [[ $(mlibdir) != lib ]] |
56 | then |
57 | mv ${BINDIR}/usr/lib ${BINDIR}/usr/$(mlibdir) || die |
58 | # fix pkgconfig file |
59 | sed -i "s:/usr/lib:/usr/$(mlibdir):g" ${BINDIR}/usr/$(mlibdir)/pkgconfig/hwinfo.pc || die |
60 | fi |
61 | |
62 | minstallman doc/hwinfo.8 || die |
63 | minstalldocs Changelog COPYING README VERSION || die |
64 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |