Magellan Linux

Annotation of /branches/magellan-next/core/lshw/lshw-02.15.b-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 8379 - (hide annotations) (download)
Fri Jul 15 11:05:51 2011 UTC (12 years, 11 months ago) by niro
File size: 1307 byte(s)
-removed deprecated patches
1 niro 8378 # $Id$
2    
3     PNAME="lshw"
4     PVER="02.15.b"
5     PBUILD="r1"
6    
7     SPLIT_PACKAGES="lshw lshw-gui"
8    
9     PCATEGORIE="sys-apps"
10    
11     HOMEPAGE="http://ezix.org/project/wiki/HardwareLiSter"
12    
13     SDEPEND=">= sys-apps/sed-4
14     >= x11-libs/gtk2+-2.24"
15    
16     SRCFILE="${PNAME}-B.${PVER/.b/}.tar.gz"
17     SRCDIR="${BUILDDIR}/${PNAME}-B.${PVER/.b/}"
18    
19 niro 8379 sminclude mbuild
20    
21 niro 8378 SRC_URI=(
22     http://ezix.org/software/files/${SRCFILE}
23     mirror://${PNAME}/${SRCFILE}
24     )
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     >= x11-libs/gtk2+-2.24"
40     }
41    
42     src_compile()
43     {
44     cd ${SRCDIR}
45    
46     # fix CFLAGS
47     sed -i "/^CXXFLAGS/s/-Os/${CXXFLAGS}/" src/Makefile || die
48     sed -i "/^CXXFLAGS/s/-Os/${CXXFLAGS}/" src/core/Makefile || die
49     sed -i "/^CXXFLAGS/s/-Os/${CXXFLAGS}/" src/gui/Makefile || die
50    
51     mmake || die
52     mmake gui || die
53     }
54    
55     src_install_lshw()
56     {
57     cd ${SRCDIR}
58    
59     mmake DESTDIR=${BINDIR} install || die
60     minstalldocs COPYING README docs/{Changelog,TODO,lshw.xsd,proc_usb_info.txt} || die
61     }
62    
63     src_install_lshw-gui()
64     {
65     cd ${SRCDIR}
66     mmake DESTDIR=${BINDIR} install-gui || die
67     }