Magellan Linux

Annotation of /branches/magellan-next/core/lshw/lshw-02.14.b-r5.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 6382 - (hide annotations) (download)
Mon Aug 23 08:18:19 2010 UTC (13 years, 10 months ago) by niro
File size: 1547 byte(s)
-fixed dependencies and added patch to fix compile issues
1 niro 6245 # $Id: lshw-02.14.b-r4.smage2 4975 2010-02-19 20:09:45Z niro $
2    
3     PNAME="lshw"
4     PVER="02.14.b"
5     PBUILD="r5"
6    
7     SPLIT_PACKAGES="lshw lshw-gui"
8    
9     PCATEGORIE="sys-apps"
10     STATE="unstable"
11    
12     HOMEPAGE="http://ezix.org/project/wiki/HardwareLiSter"
13    
14 niro 6382 SDEPEND=">= sys-apps/sed-4
15     >= x11-libs/gtk2+-2.20"
16 niro 6245
17     SRCFILE="${PNAME}-B.${PVER/.b/}.tar.gz"
18     SRCDIR="${BUILDDIR}/${PNAME}-B.${PVER/.b/}"
19    
20     SRC_URI=(
21     http://ezix.org/software/files/${SRCFILE}
22     mirror://${PNAME}/${SRCFILE}
23 niro 6382 mirror://${PNAME}/${PNAME}-${PVER}-gcc45.patch
24 niro 6245 )
25    
26     UP2DATE="updatecmd ${HOMEPAGE} | lasttarball gz | sed 's:B.\(.*\):\1.b:'"
27    
28     split_info_lshw()
29     {
30     DESCRIPTION="lshw is a small tool to provide detailed information on the hardware configuration of a machine."
31     DEPEND=">= virtual/glibc"
32     }
33    
34     split_info_lshw-gui()
35     {
36     DESCRIPTION="The GTK2+ gui for lshw."
37     PCATEGORIE="x11-misc"
38     DEPEND="== sys-apps/lshw-${PVER}
39 niro 6382 >= x11-libs/gtk2+-2.20"
40 niro 6245 }
41    
42     src_prepare()
43     {
44     munpack ${SRCFILE} || die
45 niro 6382 cd ${SRCDIR}
46    
47     # fixes gcc-4.5 compile issues
48     mpatch ${PNAME}-${PVER}-gcc45.patch || die
49 niro 6245 }
50    
51     src_compile()
52     {
53     cd ${SRCDIR}
54    
55     # fix CFLAGS
56     sed -i "/^CXXFLAGS/s/-Os/${CXXFLAGS}/" src/Makefile || die
57     sed -i "/^CXXFLAGS/s/-Os/${CXXFLAGS}/" src/core/Makefile || die
58     sed -i "/^CXXFLAGS/s/-Os/${CXXFLAGS}/" src/gui/Makefile || die
59    
60     mmake || die
61     mmake gui || die
62     }
63    
64     src_install_lshw()
65     {
66     cd ${SRCDIR}
67    
68     mmake DESTDIR=${BINDIR} install || die
69     minstalldocs COPYING README docs/{Changelog,TODO,lshw.xsd,proc_usb_info.txt} || die
70     }
71    
72     src_install_lshw-gui()
73     {
74     cd ${SRCDIR}
75     mmake DESTDIR=${BINDIR} install-gui || die
76     }