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

Contents of /app-misc/lcdproc/lcdproc-0.4.3-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download)
Tue Jun 8 21:37:59 2004 UTC (16 years, 6 months ago) by mr_bones_
Branch: MAIN
CVS Tags: HEAD
Changes since 1.7: +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.3-r2.ebuild,v 1.7 2004/04/06 04:19:50 vapier 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.gz"
10
11 LICENSE="GPL-2"
12 SLOT="0"
13 KEYWORDS="x86 amd64"
14 IUSE="doc ncurses 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} || die
24 cd ${S}
25
26 sed -i "889s:-O3:${CFLAGS}:" configure
27
28 # fix a few bugs ;)
29 epatch ${FILESDIR}/${P}-gentoo.diff
30 }
31
32 src_compile() {
33 # By default, all drivers that are supported by the given plattform/hardware
34 # are compiled (of course respecting the existing USE flags). If the
35 # LCDPROC_DRIVERS environment variable is set to a comma separated list, only
36 # the specified drivers will be compiled.
37 # Example:
38 #
39 # env LCDPROC_DRIVERS="curses,CFontz" emerge lcdproc
40 #
41 # NOTE: The ebuild still respects your USE variable and will not install any
42 # additional packages unless the corresponding USE flag is set!
43 # You might have to alter it if e.g. ncurses is normally not part of your
44 # USE variable.
45 # Example:
46 #
47 # env USE="$USE ncurses" LCDPROC_DRIVERS="curses,CFontz" emerge lcdproc
48
49 local myconf
50
51 myconf="--enable-drivers=mtxorb,cfontz,text,lb216,hd44780,joy,irman,lircin,"
52 myconf="${myconf}bayrad,glk,stv5730,sed1330,sed1520,lcdm001,t6963"
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