Contents of /trunk/todo/gkrellm/gkrellm-2.3.1-r1.smage2
Parent Directory | Revision Log
Revision 2316 -
(show annotations)
(download)
Thu Jul 9 19:35:49 2009 UTC (15 years, 3 months ago) by niro
File size: 2246 byte(s)
Thu Jul 9 19:35:49 2009 UTC (15 years, 3 months ago) by niro
File size: 2246 byte(s)
-moved to 'todo'
1 | # $Header: /magellan-cvs/smage/gkrellm/gkrellm-2.3.1-r1.smage2,v 1.1 2008/04/21 14:45:24 niro Exp $ |
2 | |
3 | PNAME="gkrellm" |
4 | PVER="2.3.1" |
5 | PBUILD="r1" |
6 | |
7 | PCATEGORIE="app-admin" |
8 | STATE="unstable" |
9 | |
10 | DESCRIPTION="GKrellM is a single process stack of system monitors." |
11 | HOMEPAGE="http://www.gkrellm.net/" |
12 | |
13 | DEPEND=">= dev-libs/openssl-0.9.8 |
14 | >= x11-libs/gtk2+-2.12 |
15 | >= x11-libs/pango-1.20" |
16 | |
17 | SDEPEND=">= sys-apps/sed-4 |
18 | >= sys-dev/gettext-0.17" |
19 | |
20 | SRCFILE="${PNAME}-${PVER}.tar.bz2" |
21 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
22 | |
23 | sminclude mtools xdg |
24 | |
25 | SRC_URI=( |
26 | http://members.dslextreme.com/users/billw/${PNAME}/${SRCFILE} |
27 | mirror://${PNAME}/${SRCFILE} |
28 | mirror://${PNAME}/gkrellmd.rc |
29 | ) |
30 | |
31 | src_prepare() |
32 | { |
33 | munpack ${SRCFILE} || die |
34 | cd ${SRCDIR} |
35 | |
36 | # enables nls support |
37 | sed -i "s:enable_nls=1:enable_nls=0:" Makefile || die |
38 | |
39 | # sets $INSTALLROOT to ${BINDIR}/usr instead of /usr/local |
40 | sed -i 's:INSTALLROOT ?= /usr/local:INSTALLROOT ?= ${BINDIR}/usr:' Makefile || die |
41 | |
42 | # fixes libdir |
43 | sed -i "s:\(PKGCONFIGDIR ?= \$(INSTALLROOT)/\)lib:\1$(mlibdir):" Makefile || die |
44 | sed -i -e "s:/usr/lib:/usr/$(mlibdir):" \ |
45 | -e "s:/usr/local/lib:/usr/local/$(mlibdir):" src/gkrellm.h || die |
46 | } |
47 | |
48 | src_compile() |
49 | { |
50 | cd ${SRCDIR} |
51 | PREFIX=/usr mmake || die |
52 | } |
53 | |
54 | src_install() |
55 | { |
56 | cd ${SRCDIR} |
57 | |
58 | make DESTDIR=${BINDIR} install \ |
59 | INSTALLDIR=${BINDIR}/usr/bin \ |
60 | MANDIR=${BINDIR}/usr/share/man/man1 \ |
61 | INCLUDEDIR=${BINDIR}/usr/include \ |
62 | LOCALEDIR=${BINDIR}/usr/share/locale \ |
63 | PKGCONFIGDIR=${BINDIR}/usr/$(mlibdir)/pkgconfig \ |
64 | || die |
65 | |
66 | # install bin and rename it (gkrellm version is 2) |
67 | minstallexec src/gkrellm /usr/bin/gkrellm2 || die |
68 | rm -f ${BINDIR}/usr/bin/gkrellm || die |
69 | |
70 | # install man-pages and rename them (gkrellm version is 2) |
71 | mv gkrellm.1 gkrellm2.1 || die |
72 | rm -f ${BINDIR}/usr/share/man/man1/* || die |
73 | minstallman *.1 || die |
74 | |
75 | # installs gkrellm server config |
76 | minstalletc server/gkrellmd.conf || die |
77 | |
78 | # installs html-doc-pages |
79 | minstallhtml *.html || die |
80 | |
81 | # install initscript |
82 | minstallrc gkrellmd.rc gkrellmd || die |
83 | |
84 | # install desktop icon |
85 | minstallpixmap src/icon.xpm gkrellm2.xpm |
86 | minstall_desktop_icon \ |
87 | --icon gkrellm2.xpm \ |
88 | --comment "GKrellM system monitor" \ |
89 | --categories System,Monitor \ |
90 | || die |
91 | |
92 | minstalldocs COPYRIGHT CREDITS Changelog* README || die |
93 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |