Magellan Linux

Annotation of /trunk/core/lshw/lshw-02.14.b-r4.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4975 - (hide annotations) (download)
Fri Feb 19 20:09:45 2010 UTC (14 years, 4 months ago) by niro
File size: 1466 byte(s)
-rebuild, SPLIT_PACKAGES fixups
1 niro 4975 # $Id$
2    
3     PNAME="lshw"
4     PVER="02.14.b"
5     PBUILD="r4"
6    
7     SPLIT_PACKAGES="lshw lshw-gui"
8    
9     PCATEGORIE="sys-apps"
10     STATE="unstable"
11    
12     #DESCRIPTION="lshw is a small tool to provide detailed information on the hardware configuration of a machine."
13     HOMEPAGE="http://ezix.org/project/wiki/HardwareLiSter"
14    
15     DEPEND=">= virtual/glibc"
16     SDEPEND=">= sys-apps/sed-4"
17    
18     SRCFILE="${PNAME}-B.${PVER/.b/}.tar.gz"
19     SRCDIR="${BUILDDIR}/${PNAME}-B.${PVER/.b/}"
20    
21     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.18"
40     }
41    
42     src_prepare()
43     {
44     munpack ${SRCFILE} || die
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     }

Properties

Name Value
svn:keywords Id