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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.15 - (show annotations) (download)
Thu Aug 9 16:15:44 2007 UTC (13 years, 3 months ago) by rbu
Branch: MAIN
CVS Tags: HEAD
Changes since 1.14: +1 -1 lines
FILE REMOVED
Dropping unsupported version... goodbye after 3 years!
(Portage version: 2.1.2.11)

1 # Copyright 1999-2006 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.5.ebuild,v 1.14 2006/10/24 08:14:35 jokey Exp $
4
5 DESCRIPTION="Client/Server suite to drive all kinds of LCD (-like) devices"
6 HOMEPAGE="http://lcdproc.org/"
7 SRC_URI="mirror://sourceforge/lcdproc/${P}.tar.bz2"
8
9 LICENSE="GPL-2"
10 SLOT="0"
11 KEYWORDS="amd64 ppc ppc64 ~sparc x86"
12
13 IUSE="doc ncurses samba svga"
14
15 DEPEND=">=sys-apps/baselayout-1.6.4
16 >=sys-apps/sed-4
17 doc? ( >=app-text/docbook-sgml-utils-0.6.11-r2 )
18 ncurses? ( >=sys-libs/ncurses-5.3 )
19 svga? ( >=media-libs/svgalib-1.4.3 )"
20 RDEPEND=${DEPEND}
21
22 src_unpack() {
23 unpack ${A}
24 cd "${S}"
25
26 sed -i "889s:-O3:${CFLAGS}:" configure
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 newinitd "${FILESDIR}/${PV}-LCDd.initd" LCDd
98 newinitd "${FILESDIR}/${PV}-lcdproc.initd" lcdproc
99 }

  ViewVC Help
Powered by ViewVC 1.1.20