diff options
author | Robert Buchholz <rbu@gentoo.org> | 2007-02-24 23:20:16 +0000 |
---|---|---|
committer | Robert Buchholz <rbu@gentoo.org> | 2007-02-24 23:20:16 +0000 |
commit | c4c6ece36a1bcf8598afb988905a9dc786bbb3b9 (patch) | |
tree | 3ec40f14b03ca4700ddde7f913b8d5b762b832b1 /app-misc | |
parent | Oops, forgot to change keywords... (diff) | |
download | gentoo-2-c4c6ece36a1bcf8598afb988905a9dc786bbb3b9.tar.gz gentoo-2-c4c6ece36a1bcf8598afb988905a9dc786bbb3b9.tar.bz2 gentoo-2-c4c6ece36a1bcf8598afb988905a9dc786bbb3b9.zip |
Long awaited version bump and amd64 keyword
(Portage version: 2.1.2-r9)
Diffstat (limited to 'app-misc')
-rw-r--r-- | app-misc/lcd4linux/ChangeLog | 8 | ||||
-rw-r--r-- | app-misc/lcd4linux/files/digest-lcd4linux-0.10.1_rc1 | 3 | ||||
-rw-r--r-- | app-misc/lcd4linux/files/lcd4linux-0.10.1_rc1.initd | 23 | ||||
-rw-r--r-- | app-misc/lcd4linux/lcd4linux-0.10.1_rc1.ebuild | 168 |
4 files changed, 201 insertions, 1 deletions
diff --git a/app-misc/lcd4linux/ChangeLog b/app-misc/lcd4linux/ChangeLog index f694c320ada5..d8e5e728cd0b 100644 --- a/app-misc/lcd4linux/ChangeLog +++ b/app-misc/lcd4linux/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for app-misc/lcd4linux # Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-misc/lcd4linux/ChangeLog,v 1.22 2007/02/18 23:02:56 rbu Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-misc/lcd4linux/ChangeLog,v 1.23 2007/02/24 23:20:16 rbu Exp $ + +*lcd4linux-0.10.1_rc1 (24 Feb 2007) + + 24 Feb 2007; Robert Buchholz <rbu@gentoo.org> + +files/lcd4linux-0.10.1_rc1.initd, +lcd4linux-0.10.1_rc1.ebuild: + Long awaited version bump and amd64 keyword *lcd4linux-0.10.0-r1 (18 Feb 2007) diff --git a/app-misc/lcd4linux/files/digest-lcd4linux-0.10.1_rc1 b/app-misc/lcd4linux/files/digest-lcd4linux-0.10.1_rc1 new file mode 100644 index 000000000000..d615233dda57 --- /dev/null +++ b/app-misc/lcd4linux/files/digest-lcd4linux-0.10.1_rc1 @@ -0,0 +1,3 @@ +MD5 dbc53fc94ae725ca5944b7a94ed52f8b lcd4linux-0.10.1-RC1.tar.gz 341984 +RMD160 8b720f91dd63bfba7dc53a4eabb1151fdd879785 lcd4linux-0.10.1-RC1.tar.gz 341984 +SHA256 e52b3128b5cbde436309dd5a7392f47509310aa353f68fe5e0bd0aaef9b0ee6a lcd4linux-0.10.1-RC1.tar.gz 341984 diff --git a/app-misc/lcd4linux/files/lcd4linux-0.10.1_rc1.initd b/app-misc/lcd4linux/files/lcd4linux-0.10.1_rc1.initd new file mode 100644 index 000000000000..bea426839471 --- /dev/null +++ b/app-misc/lcd4linux/files/lcd4linux-0.10.1_rc1.initd @@ -0,0 +1,23 @@ +#!/sbin/runscript +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-misc/lcd4linux/files/lcd4linux-0.10.1_rc1.initd,v 1.1 2007/02/24 23:20:16 rbu Exp $ + +PIDFILE=/var/run/lcd4linux.pid +DAEMON=/usr/bin/lcd4linux + +depend() { + use net +} + +start() { + ebegin "Starting lcd4linux" + start-stop-daemon --start --quiet --pidfile ${PIDFILE} --exec ${DAEMON} + eend $? "Failed to start lcd4linux. Did you remember to set up /etc/lcd4linux.conf?" +} + +stop() { + ebegin "Stopping lcd4linux" + start-stop-daemon --stop --quiet --oknodo --exec ${DAEMON} --pidfile ${PIDFILE} + eend $? +} diff --git a/app-misc/lcd4linux/lcd4linux-0.10.1_rc1.ebuild b/app-misc/lcd4linux/lcd4linux-0.10.1_rc1.ebuild new file mode 100644 index 000000000000..9081af4f14de --- /dev/null +++ b/app-misc/lcd4linux/lcd4linux-0.10.1_rc1.ebuild @@ -0,0 +1,168 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-misc/lcd4linux/lcd4linux-0.10.1_rc1.ebuild,v 1.1 2007/02/24 23:20:16 rbu Exp $ + +inherit eutils multilib + +MY_P=${P/_rc/-RC} + +DESCRIPTION="Shows system and ISDN information on an external display or in a X11 window" +HOMEPAGE="http://ssl.bulix.org/projects/${PN}" +SRC_URI="http://ssl.bulix.org/projects/lcd4linux/attachment/wiki/Download/${MY_P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86 ~amd64" + +IUSE="mysql python iconv mpd" + +# The following array holds the USE_EXPANDed keywords +IUSE_LCD_DEVICES=(beckmannegle bwct cfontz ncurses cwlinux + ea232 g15 hd44780 hd44780i2c lcd2usb + lcdlinux lcdterm ledmatrix lph7508 m50530 + mtxorb milfordbpk noritake null picolcd + png ppm routerboard serdisplib simplelcd + t6963 trefon usbhub usblcd wincor + X) + +# Iterate through the array and add the lcd_devices_* that we support +NUM_DEVICES=${#IUSE_LCD_DEVICES[@]} +index=0 +while [ "${index}" -lt "${NUM_DEVICES}" ] ; do + IUSE="${IUSE} lcd_devices_${IUSE_LCD_DEVICES[$index]}" + let "index = ${index} + 1" +done + +DEPEND=" + mysql? ( virtual/mysql ) + python? ( dev-lang/python ) + iconv? ( virtual/libiconv ) + mpd? ( media-libs/libmpd ) + + lcd_devices_bwct? ( dev-libs/libusb ) + lcd_devices_g15? ( dev-libs/libusb ) + lcd_devices_lcd2usb? ( dev-libs/libusb ) + lcd_devices_picolcd? ( dev-libs/libusb ) + lcd_devices_trefon? ( dev-libs/libusb ) + lcd_devices_usbhub? ( dev-libs/libusb ) + lcd_devices_usblcd? ( dev-libs/libusb ) + lcd_devices_ncurses? ( sys-libs/ncurses ) + lcd_devices_noritake? ( media-libs/gd ) + lcd_devices_t6963? ( media-libs/gd ) + lcd_devices_png? ( media-libs/libpng media-libs/gd ) + lcd_devices_X? ( x11-libs/libX11 media-libs/gd ) + lcd_devices_serdisplib? ( dev-libs/serdisplib media-libs/gd )" + + +S="${WORKDIR}/${MY_P}" + +pkg_setup() { + echo + elog "If you wish to compile only specific plugins, please use" + elog "the LCD4LINUX_PLUGINS environment variable. Plugins must be comma separated and can be either of:" + elog "apm cpuinfo diskstats dvb exec file ic_sensors imon isdn kvv loadavg meminfo netdev pop3 ppp proc_stat seti statfs uname uptime wireless" + echo +} + +src_compile() { + # This array contains the driver names required by configure --with-drivers= + # The positions must be the same as the corresponding use_expand flags + local DEVICE_DRIVERS=(BeckmannEgle BWCT CrystalFontz Curses Cwlinux + EA232graphic G15 HD44780 HD44780-I2C LCD2USB + LCDLinux LCDTerm LEDMatrix LPH7508 M50530 + MatrixOrbital MilfordInstruments Noritake NULL picoLCD + PNG PPM RouterBoard serdisplib SimpleLCD + T6963 Trefon USBHUB USBLCD WincorNixdorf + X11) + # We're missing 'LUIse' as libluise is not open source. Contacted their upstream about it. + + local myconf myp + + # plugins + if [ -n "$LCD4LINUX_PLUGINS" ]; then + myp="$LCD4LINUX_PLUGINS" + else + myp="all" + fi + use iconv || myp="${myp},!iconv" + use mpd || myp="${myp},!mpd" + use mysql || myp="${myp},!mysql" + use python || myp="${myp},!python" + elog "Active plugins: ${myp}" + + # Generate comma separated list of drivers + local COMMA_DRIVERS + local FIRST_DRIVER + local index=0 + local driver + + while [ "${index}" -lt "${NUM_DEVICES}" ] ; do + if use "lcd_devices_${IUSE_LCD_DEVICES[$index]}" ; then + driver=${DEVICE_DRIVERS[$index]} + if [ -z ${COMMA_DRIVERS} ] ; then + # First in the list + COMMA_DRIVERS="${driver}" + FIRST_DRIVER="${driver}" + else + # Second, third, ... include a comma at the front + COMMA_DRIVERS="${COMMA_DRIVERS},${driver}" + fi + fi + let "index = ${index} + 1" + done + + # activate at least one driver + if [ -z ${COMMA_DRIVERS} ] ; then + COMMA_DRIVERS="NULL" + fi + + # workaround the build failing because of b0rked settings + if use lcd_devices_hd44780 && use lcd_devices_hd44780i2c ; then + echo + ewarn "Disabling hd44780 LCD_DEVICE as hd44780i2c is set!" + echo + COMMA_DRIVERS="${COMMA_DRIVERS},!HD44780" + fi + + # avoid package brokenness + if use lcd_devices_X ; then + myconf="--x-libraries=/usr/$(get_libdir) --x-include=/usr/include" + else + myconf="--without-x" + fi + + econf \ + --sysconfdir=/etc/lcd4linux \ + --with-drivers="${COMMA_DRIVERS}" \ + --with-plugins="${myp}" \ + $(use_with python) \ + ${myconf} \ + || die "econf failed" + + sed -i.orig -e 's/-L -lX11/ -lX11 /g' Makefile || die "sed fixup failed" + + emake || die "make failed" +} + +src_install() { + emake DESTDIR="${D}" install || die "make install failed" + + dodoc README ChangeLog + + newinitd "${FILESDIR}/${P}.initd" ${PN} + + insinto /etc + insopts -o root -g root -m 0600 + newins lcd4linux.conf.sample lcd4linux.conf +} + +pkg_postinst() { + if use lcd_devices_lcdlinux; then + echo + ewarn "To actually use the lcd-linux devices, you will need to install the lcd-linux kernel module." + ewarn "You can either do that yourself, see http://lcd-linux.sf.net or " + ewarn "checkout http://overlays.gentoo.org/dev/jokey/browser/trunk and emerge app-misc/lcd-linux" + echo + fi + ewarn "If you are upgrading, please note that the default config file was moved to /etc/lcd4linux.conf" +} |