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

Contents of /app-misc/lcdproc/lcdproc-0.5.1_pre20061009.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Mon Oct 16 21:52:01 2006 UTC (14 years, 1 month ago) by jokey
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Version bump as 0.5.1 was released
(Portage version: 2.1.2_pre3-r2)
 (Signed Manifest commit)

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.5.1_pre20061009.ebuild,v 1.1 2006/10/11 21:16:26 jokey Exp $
4
5 inherit eutils flag-o-matic
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 SRC_URI="http://thetruth.de/files/gentoo/${P}.tar.gz"
11
12 LICENSE="GPL-2"
13 SLOT="0"
14 KEYWORDS="~amd64 ~ppc64 ~x86"
15
16 # general use keywords in first line, drivers in line 2
17 IUSE="doc debug ldap nfs samba seamless-hbars usb
18 g15 graphlcd irman lirc ncurses svga ula200 xosd"
19
20 DEPEND="
21 doc? ( app-text/xmlto )
22 ldap? ( net-nds/openldap )
23 usb? ( dev-libs/libusb )
24
25 graphlcd? ( app-misc/graphlcd-base app-misc/glcdprocdriver )
26 g15? ( app-misc/g15daemon dev-libs/libg15 >=dev-libs/libg15render-1.1.1 )
27 irman? ( media-libs/libirman )
28 lirc? ( app-misc/lirc )
29 ncurses? ( sys-libs/ncurses )
30 svga? ( media-libs/svgalib )
31 ula200? ( dev-embedded/libftdi dev-libs/libusb )
32 xosd? ( x11-libs/xosd x11-libs/libX11 x11-libs/libXext ) "
33 RDEPEND=${DEPEND}
34
35 USE_DRIVERS="curses g15 glcdlib irman lirc svga ula200 xosd"
36 EXTRA_DRIVERS="bayrad CFontz CFontz633 CFontzPacket CwLnx EyeboxOne \
37 glk hd44780 icp_a106 imon IOWarrior joy lb216 lcdm001 \
38 lcterm ms6931 mtc_s16209x MtxOrb NoritakeVFD pyramid sed1330 \
39 sed1520 serialVFD sli stv5730 t6963 text tyan "
40 ALL_DRIVERS="${USE_DRIVERS} ${EXTRA_DRIVERS}"
41
42
43 # compatibility with 1.4-ebuild format
44 LCDPROC_DRIVERS=${LCDPROC_DRIVERS//,/ }
45
46 # if no drivers or all are set, select the defaults
47 has all ${LCDPROC_DRIVERS} \
48 && LCDPROC_DRIVERS="${EXTRA_DRIVERS}"
49 [ -z "${LCDPROC_DRIVERS}" ] \
50 && LCDPROC_DRIVERS="${EXTRA_DRIVERS}"
51 has none ${LCDPROC_DRIVERS} \
52 && LCDPROC_DRIVERS=""
53
54 S="${WORKDIR}/lcdproc-CVS-current-20061009"
55
56 pkg_setup() {
57 echo
58 einfo "If you are updating from lcdproc-0.4, note that the setup of drivers has changed:"
59 einfo "The drivers curses, glcdlib, irman, lirc, svga, ula200 and xosd are controlled by use flags."
60 einfo "All other drivers are built by default, or in respect to the env variable"
61 einfo "LCDPROC_DRIVERS which can be a space separated list. Example:"
62 einfo " LCDPROC_DRIVERS=\"text CFontz\" emerge lcdproc"
63 einfo "You can also set this variable in your make.conf."
64 echo
65 einfo "Possible choices for LCDPROC_DRIVERS are:"
66 einfo " bayrad CFontz CFontz633 CFontzPacket CwLnx EyeboxOne glk "
67 einfo " hd44780 icp_a106 imon IOWarrior joy lb216 lcdm001 lcterm "
68 einfo " MD8800 ms6931 mtc_s16209x MtxOrb NoritakeVFD pyramid sed1330 "
69 einfo " sed1520 serialVFD sli stv5730 t6963 text tyan"
70 einfo " 'all' if you want to include all drivers (default)."
71 einfo " 'none' will not include any extra drivers."
72 echo
73
74 local FILTERED_DRIVERS
75 for driver in ${LCDPROC_DRIVERS}; do
76 if has ${driver} ${EXTRA_DRIVERS} ; then
77 FILTERED_DRIVERS="${FILTERED_DRIVERS} ${driver}"
78 else
79 eerror "The extra driver '${driver}' is not available or has to be enabled by a USE flag."
80 eerror "Please check your LCDPROC_DRIVERS-variable!"
81 echo
82 fi
83 done
84 LCDPROC_DRIVERS="${FILTERED_DRIVERS}"
85
86 # add use-flag specific drivers to LCDPROC_DRIVERS
87 use graphlcd && LCDPROC_DRIVERS="${LCDPROC_DRIVERS} glcdlib"
88 use g15 && LCDPROC_DRIVERS="${LCDPROC_DRIVERS} g15"
89 use irman && LCDPROC_DRIVERS="${LCDPROC_DRIVERS} irman"
90 use lirc && LCDPROC_DRIVERS="${LCDPROC_DRIVERS} lirc"
91 use ncurses && LCDPROC_DRIVERS="${LCDPROC_DRIVERS} curses"
92 use svga && LCDPROC_DRIVERS="${LCDPROC_DRIVERS} svga"
93 use ula200 && LCDPROC_DRIVERS="${LCDPROC_DRIVERS} ula200"
94 use xosd && LCDPROC_DRIVERS="${LCDPROC_DRIVERS} xosd"
95
96 einfo "The following drivers will be built: "
97 echo
98
99 for driver in ${ALL_DRIVERS}; do
100 has ${driver} ${LCDPROC_DRIVERS} && einfo $driver
101 if (! use usb) && (has ${driver} "CFontzPacket CwLnx pyramid"); then
102 ewarn "${driver} might not compile if you do not enable USE=\"usb\""
103 fi
104 done
105 }
106
107 src_unpack() {
108 unpack ${A}
109 cd "${S}"
110 epatch "${FILESDIR}/${PV}-LCDd-conf-driver-path.patch"
111 }
112
113 src_compile() {
114 # avoid executable stack as mentioned
115 # in http://www.gentoo.org/proj/en/hardened/gnu-stack.xml
116 append-ldflags -Wl,-z,noexecstack
117
118 # convert space separated LCDPROC_DRIVERS to comma separated COMMA_DRIVERS
119 local COMMA_DRIVERS
120 for driver in ${LCDPROC_DRIVERS}; do
121 if [ -z "${COMMA_DRIVERS}" ] ; then
122 COMMA_DRIVERS="${driver}"
123 else
124 COMMA_DRIVERS="${COMMA_DRIVERS},${driver}"
125 fi
126 done
127
128 econf \
129 $(use_enable debug) \
130 $(use_enable ldap) \
131 $(use_enable nfs stat-nfs) \
132 $(use_enable samba stat-smbfs ) \
133 $(use_enable seamless-hbars) \
134 $(use_enable usb libusb) \
135 "--enable-drivers=${COMMA_DRIVERS}" \
136 || die "configure failed"
137
138 emake || die "make failed"
139
140 if use doc; then
141 ebegin "Creating user documentation"
142 cd ${S}/docs/lcdproc-user
143 xmlto html lcdproc-user.docbook
144 eend 0
145 ebegin "Creating dev documentation"
146 cd ${S}/docs/lcdproc-dev
147 xmlto html lcdproc-dev.docbook
148 eend 0
149 fi
150 }
151
152 src_install() {
153 dosbin server/LCDd
154 dobin clients/lcdexec/lcdexec
155 dobin clients/lcdproc/lcdproc
156 dobin clients/lcdvc/lcdvc
157
158 insinto /usr/share/lcdproc/drivers
159 doins server/drivers/*.so
160
161 insinto /usr/share/lcdproc/clients
162 doins clients/examples/*.pl
163 doins clients/metar/lcdmetar.pl
164
165 insinto /etc
166 doins LCDd.conf
167 doins clients/lcdexec/lcdexec.conf
168 doins clients/lcdproc/lcdproc.conf
169 doins clients/lcdvc/lcdvc.conf
170
171 newinitd "${FILESDIR}/${PV}-LCDd.rc" LCDd
172 newinitd "${FILESDIR}/${PV}-lcdproc.rc" lcdproc
173
174 doman docs/*.1 docs/*.5 docs/*.8
175 dodoc README CREDITS ChangeLog INSTALL TODO
176 dodoc docs/README.* docs/*.txt
177
178 if use doc; then
179 insinto /usr/share/doc/${PF}/lcdproc-user
180 doins docs/lcdproc-user/*.html
181 insinto /usr/share/doc/${PF}/lcdproc-dev
182 doins docs/lcdproc-dev/*.html
183 fi
184 }

  ViewVC Help
Powered by ViewVC 1.1.20