Magellan Linux

Annotation of /trunk/extras/lshw/lshw-02.17.b-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 19920 - (hide annotations) (download)
Fri Oct 25 09:04:52 2013 UTC (10 years, 7 months ago) by niro
File size: 1400 byte(s)
-moved to 'extras'
1 niro 19630 # $Id$
2    
3     PNAME="lshw"
4     PVER="02.17.b"
5     PBUILD="r1"
6    
7     SPLIT_PACKAGES="lshw lshw-gui"
8    
9     PCAT="sys-apps"
10     HOMEPAGE="http://ezix.org/project/wiki/HardwareLiSter"
11    
12     CLI_DEPEND=">= virtual/glibc
13     >= sys-libs/libstdc++-4.6"
14     GUI_DEPEND=">= x11-libs/gtk2+-2.24"
15    
16     SDEPEND=">= virtual/sed
17     ${CLI_DEPEND}
18     ${GUI_DEPEND}"
19    
20     SRCFILE="${PNAME}-B.${PVER/.b/}.tar.gz"
21     SRCDIR="${BUILDDIR}/${PNAME}-B.${PVER/.b/}"
22    
23     sminclude mbuild
24     msetfeature "!check"
25    
26     SRC_URI=(
27     http://ezix.org/software/files/${SRCFILE}
28     mirror://${PNAME}/${SRCFILE}
29     )
30    
31     UP2DATE="updatecmd ${HOMEPAGE} | lasttarball gz | sed 's:B.\(.*\):\1.b:'"
32    
33     split_info_lshw()
34     {
35     DESCRIPTION="lshw is a small tool to provide detailed information on the hardware configuration of a machine."
36     DEPEND="${CLI_DEPEND}"
37     }
38    
39     split_info_lshw-gui()
40     {
41     DESCRIPTION="The GTK2+ gui for lshw."
42     PCAT="x11-misc"
43     DEPEND="== sys-apps/lshw-${PVER}
44     ${GUI_DEPEND}"
45     }
46    
47     src_compile()
48     {
49     cd ${SRCDIR}
50    
51     # fix CFLAGS
52     sed -i "/^CXXFLAGS/s/-Os/${CXXFLAGS}/" src/Makefile || die
53     sed -i "/^CXXFLAGS/s/-Os/${CXXFLAGS}/" src/core/Makefile || die
54     sed -i "/^CXXFLAGS/s/-Os/${CXXFLAGS}/" src/gui/Makefile || die
55    
56     mmake || die
57     mmake gui || die
58     }
59    
60     src_install_lshw()
61     {
62     cd ${SRCDIR}
63    
64     mmake DESTDIR=${BINDIR} install || die
65     minstalldocs COPYING README docs/{Changelog,TODO,lshw.xsd,proc_usb_info.txt} || die
66     }
67    
68     src_install_lshw-gui()
69     {
70     cd ${SRCDIR}
71     mmake DESTDIR=${BINDIR} install-gui || die
72     }