Magellan Linux

Contents of /branches/magellan-next/core/lshw/lshw-02.15.b-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 9768 - (show annotations) (download)
Tue Jan 10 22:26:37 2012 UTC (12 years, 5 months ago) by niro
File size: 1394 byte(s)
-added missing libstdc++ dependency
1 # $Id$
2
3 PNAME="lshw"
4 PVER="02.15.b"
5 PBUILD="r2"
6
7 SPLIT_PACKAGES="lshw lshw-gui"
8
9 PCATEGORIE="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=">= sys-apps/sed-4
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
25 SRC_URI=(
26 http://ezix.org/software/files/${SRCFILE}
27 mirror://${PNAME}/${SRCFILE}
28 )
29
30 UP2DATE="updatecmd ${HOMEPAGE} | lasttarball gz | sed 's:B.\(.*\):\1.b:'"
31
32 split_info_lshw()
33 {
34 DESCRIPTION="lshw is a small tool to provide detailed information on the hardware configuration of a machine."
35 DEPEND="${CLI_DEPEND}"
36 }
37
38 split_info_lshw-gui()
39 {
40 DESCRIPTION="The GTK2+ gui for lshw."
41 PCATEGORIE="x11-misc"
42 DEPEND="== sys-apps/lshw-${PVER}
43 ${GUI_DEPEND}"
44 }
45
46 src_compile()
47 {
48 cd ${SRCDIR}
49
50 # fix CFLAGS
51 sed -i "/^CXXFLAGS/s/-Os/${CXXFLAGS}/" src/Makefile || die
52 sed -i "/^CXXFLAGS/s/-Os/${CXXFLAGS}/" src/core/Makefile || die
53 sed -i "/^CXXFLAGS/s/-Os/${CXXFLAGS}/" src/gui/Makefile || die
54
55 mmake || die
56 mmake gui || die
57 }
58
59 src_install_lshw()
60 {
61 cd ${SRCDIR}
62
63 mmake DESTDIR=${BINDIR} install || die
64 minstalldocs COPYING README docs/{Changelog,TODO,lshw.xsd,proc_usb_info.txt} || die
65 }
66
67 src_install_lshw-gui()
68 {
69 cd ${SRCDIR}
70 mmake DESTDIR=${BINDIR} install-gui || die
71 }