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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Tue Jun 8 21:37:59 2004 UTC (16 years, 5 months ago) by mr_bones_
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
clean older ebuilds

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

  ViewVC Help
Powered by ViewVC 1.1.20