/[gentoo-x86]/app-misc/lcdproc/lcdproc-0.4.4-r1.ebuild
Gentoo

Contents of /app-misc/lcdproc/lcdproc-0.4.4-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.10 - (show annotations) (download)
Sun Aug 6 01:56:06 2006 UTC (14 years, 4 months ago) by chriswhite
Branch: MAIN
CVS Tags: HEAD
Changes since 1.9: +1 -1 lines
FILE REMOVED
Punted insecure versions for bug #140498.
(Portage version: 2.1.1_pre4-r2)
 (Signed Manifest commit)

1 # Copyright 1999-2005 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-misc/lcdproc/lcdproc-0.4.4-r1.ebuild,v 1.9 2005/01/01 15:10:34 eradicator Exp $
4
5 inherit eutils
6
7 DESCRIPTION="Client/Server suite to drive all kinds of LCD (-like) devices"
8 HOMEPAGE="http://lcdproc.org/"
9 SRC_URI="mirror://sourceforge/lcdproc/${P}.tar.bz2"
10
11 LICENSE="GPL-2"
12 SLOT="0"
13 KEYWORDS="x86 amd64"
14 IUSE="doc ncurses samba svga"
15
16 DEPEND=">=sys-apps/baselayout-1.6.4
17 >=sys-apps/sed-4
18 doc? ( >=app-text/docbook-sgml-utils-0.6.11-r2 )
19 ncurses? ( >=sys-libs/ncurses-5.3 )
20 svga? ( >=media-libs/svgalib-1.4.3 )"
21
22 src_unpack() {
23 unpack ${A} ; cd ${S}
24
25 sed -i "889s:-O3:${CFLAGS}:" configure
26 epatch ${FILESDIR}/${P}-security.patch
27 }
28
29 src_compile() {
30
31 # By default, all drivers that are supported by the given plattform/hardware
32 # are compiled (of course respecting the existing USE flags). If the
33 # LCDPROC_DRIVERS environment variable is set to a comma separated list, only
34 # the specified drivers will be compiled.
35 # Example:
36 #
37 # env LCDPROC_DRIVERS="curses,CFontz" emerge lcdproc
38 #
39 # NOTE: The ebuild still respects your USE variable and will not install any
40 # additional packages unless the corresponding USE flag is set!
41 # You might have to alter it if e.g. ncurses is normally not part of your
42 # USE variable.
43 # Example:
44 #
45 # env USE="$USE ncurses" LCDPROC_DRIVERS="curses,CFontz" emerge lcdproc
46
47 local myconf
48
49 myconf="--enable-drivers=mtxorb,cfontz,cwlnx,text,lb216,"
50 myconf="${myconf}hd44780,joy,irman,lircin,bayrad,glk,stv5730,"
51 myconf="${myconf}stv5730,sed1330,sed1520,lcdm001,"
52 myconf="${myconf}t6963,wirz-sli,sgx120"
53
54 use ncurses && myconf="${myconf},curses"
55 use svga && myconf="${myconf},svgalib"
56
57 [ x"${LCDPROC_DRIVERS}" = x ] || \
58 myconf="--enable-drivers=${LCDPROC_DRIVERS}"
59
60 use samba && myconf="${myconf} --enable-stat-smbfs"
61 myconf="${myconf} --enable-stat-nfs"
62
63 econf ${myconf} || die
64 emake || die
65
66 if use doc; then
67 cd ${S}/docs/lcdproc-user
68 docbook2html lcdproc-user.docbook
69 fi
70 }
71
72 src_install() {
73 dosbin server/LCDd
74 dobin clients/lcdproc/lcdproc
75
76 doman docs/lcdproc.1 docs/LCDd.8
77
78 dodoc README ChangeLog INSTALL
79
80 if use doc; then
81 insinto /usr/share/doc/${PF}/lcdproc-user
82 doins docs/lcdproc-user/*.html
83 fi
84
85 docinto olddocs
86 dodoc docs/README.dg* docs/*.txt
87
88 insinto /usr/share/doc/${PF}/clients/examples
89 doins clients/examples/*.pl
90 insinto /usr/share/doc/${PF}/clients/headlines
91 doins clients/headlines/lcdheadlines
92
93 insinto /etc
94 doins LCDd.conf
95 doins scripts/lcdproc.conf
96
97 exeinto /etc/init.d
98 doexe ${FILESDIR}/LCDd
99 doexe ${FILESDIR}/lcdproc
100 }

  ViewVC Help
Powered by ViewVC 1.1.20