diff options
author | 2015-08-08 13:49:04 -0700 | |
---|---|---|
committer | 2015-08-08 17:38:18 -0700 | |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /app-misc/lcdproc | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'app-misc/lcdproc')
-rw-r--r-- | app-misc/lcdproc/Manifest | 4 | ||||
-rw-r--r-- | app-misc/lcdproc/files/0.5.1-LCDd.initd | 22 | ||||
-rw-r--r-- | app-misc/lcdproc/files/0.5.1-lcdproc.initd | 21 | ||||
-rw-r--r-- | app-misc/lcdproc/files/0.5.2-r2-lcdproc.initd | 22 | ||||
-rw-r--r-- | app-misc/lcdproc/lcdproc-0.5.2-r1.ebuild | 184 | ||||
-rw-r--r-- | app-misc/lcdproc/lcdproc-0.5.5.ebuild | 192 | ||||
-rw-r--r-- | app-misc/lcdproc/lcdproc-0.5.6-r1.ebuild | 196 | ||||
-rw-r--r-- | app-misc/lcdproc/metadata.xml | 29 |
8 files changed, 670 insertions, 0 deletions
diff --git a/app-misc/lcdproc/Manifest b/app-misc/lcdproc/Manifest new file mode 100644 index 000000000000..1f2bed5a72da --- /dev/null +++ b/app-misc/lcdproc/Manifest @@ -0,0 +1,4 @@ +DIST lcdproc-0.5.2-patches.tar.gz 6571 SHA256 b578bbb2e0e1adabfd8eda2101d9023652c8d3c112d7dc78fb77026d5f2db13d SHA512 d872099e524ed99525b642783d413f0cbff68aceb30857a4b7078390be9f98aa3acfa23c72e4455802376bc1bedb20019fa8a79e97066e2a1e97b5d68fbcd975 WHIRLPOOL ab515ad64770c96b72e7ed71809bcfe371600547da6fcd1253cc65a22baca79393a14ef815552b74e0d388c263635f1d2a4200f46646ffe925a31217327b915f +DIST lcdproc-0.5.2.tar.gz 822695 SHA256 3261910dd9155229a2a6067c82ec4cca0d7900420f2d74c87a24b41b9b961036 SHA512 e21a1f2d3d5f53aa09477e9aea1f9685c1fe224a8f79f15d0d032214de211c51619a9eea9183743c024859349d481fe35d7999cc51e0de81dc2fa8e0c85d7a5d WHIRLPOOL 0d09e9aa6b8e55a00b96a5ace3749fec100130d91008dfaae3b011f8d352716cf64aa77be866ca4fb1c1d1b434bb0b91307b14ff2a36b28de8b71f9afcb58698 +DIST lcdproc-0.5.5.tar.gz 946206 SHA256 b136b47d7bf585a003334f432d8730a36ef5ed1cd520084b919667d825e48d42 SHA512 42500188adb018547db4db4a472dded478a03f19974843865e07a466870fbca409b4259b57366b7dfdd4a5fd444a89c1930032d1127ae036128dbd9279a24b29 WHIRLPOOL 1ba4728b6ee24dd32bbf24f80434c836a78cc4ab196088daa882ef10796b284d4659283b3d891117d46f2beb450d3f6b2ca9d0d686fb5fe291b192ab2dc106e3 +DIST lcdproc-0.5.6.tar.gz 998996 SHA256 bd2f43c30ff43b30f43110abe6b4a5bc8e0267cb9f57fa97cc5e5ef9488b984a SHA512 7c506b4691c8544855dadf939863672230c3e0903bbe4bbde82df04ff932f818cdc406c5b159554ec155d0c46fff23d435121298f4e19bac73658b121c6b8220 WHIRLPOOL 79c2c46e56092b121a24458127b28c9e10b232825f58a1fef6e42a940687ce4a3950a9007c907eb28706e56971c4a99cdba3b9c1745d2c6cf9dedf49451bc16f diff --git a/app-misc/lcdproc/files/0.5.1-LCDd.initd b/app-misc/lcdproc/files/0.5.1-LCDd.initd new file mode 100644 index 000000000000..8bc9f8eee08c --- /dev/null +++ b/app-misc/lcdproc/files/0.5.1-LCDd.initd @@ -0,0 +1,22 @@ +#!/sbin/runscript +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +depend() { + use net + use g15daemon +} + +start() { + ebegin "Starting LCDd" + start-stop-daemon --start --quiet -m --pidfile /var/run/LCDd.pid \ + --background --exec /usr/sbin/LCDd -- -s 1 -f + eend $? "Failed to start LCDd. Did you remember to set a driver in /etc/LCDd.conf? See syslog for details." +} + +stop() { + ebegin "Stopping LCDd" + start-stop-daemon --stop --quiet --pidfile /var/run/LCDd.pid + eend $? +} diff --git a/app-misc/lcdproc/files/0.5.1-lcdproc.initd b/app-misc/lcdproc/files/0.5.1-lcdproc.initd new file mode 100644 index 000000000000..8cc979a53209 --- /dev/null +++ b/app-misc/lcdproc/files/0.5.1-lcdproc.initd @@ -0,0 +1,21 @@ +#!/sbin/runscript +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +depend(){ + use LCDd +} + +start() { + ebegin "Starting lcdproc" + start-stop-daemon --start --background \ + --exec /usr/bin/lcdproc + eend $? +} + +stop() { + ebegin "Stopping lcdproc" + start-stop-daemon --stop --exec /usr/bin/lcdproc + eend $? +} diff --git a/app-misc/lcdproc/files/0.5.2-r2-lcdproc.initd b/app-misc/lcdproc/files/0.5.2-r2-lcdproc.initd new file mode 100644 index 000000000000..ecb98f8135aa --- /dev/null +++ b/app-misc/lcdproc/files/0.5.2-r2-lcdproc.initd @@ -0,0 +1,22 @@ +#!/sbin/runscript +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +depend(){ + use LCDd + after ntp-client +} + +start() { + ebegin "Starting lcdproc" + start-stop-daemon --start --background \ + --exec /usr/bin/lcdproc + eend $? +} + +stop() { + ebegin "Stopping lcdproc" + start-stop-daemon --stop --exec /usr/bin/lcdproc + eend $? +} diff --git a/app-misc/lcdproc/lcdproc-0.5.2-r1.ebuild b/app-misc/lcdproc/lcdproc-0.5.2-r1.ebuild new file mode 100644 index 000000000000..9dfa05d2360f --- /dev/null +++ b/app-misc/lcdproc/lcdproc-0.5.2-r1.ebuild @@ -0,0 +1,184 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +WANT_AUTOMAKE="1.9" +inherit eutils autotools multilib + +DESCRIPTION="Client/Server suite to drive all kinds of LCD (-like) devices" +HOMEPAGE="http://lcdproc.org/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz + mirror://gentoo/${P}-patches.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc ppc64 x86" + +IUSE="doc debug nfs samba seamless-hbars usb lirc irman joystick" + +# The following array holds the USE_EXPANDed keywords +IUSE_LCD_DEVICES=(ncurses bayrad cfontz cfontz633 cfontzpacket + cwlinux eyeboxone g15 graphlcd glk + hd44780 icpa106 imon iowarrior + lb216 lcdm001 lcterm + md8800 ms6931 mtcs16209x mtxorb noritakevfd + pyramid sed1330 sed1520 serialvfd sli + stv5730 svga t6963 text tyan + ula200 xosd ea65 picolcd serialpos ) + +# 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 + +RDEPEND=" + usb? ( =virtual/libusb-0* ) + lirc? ( app-misc/lirc ) + irman? ( media-libs/libirman ) + + lcd_devices_graphlcd? ( app-misc/graphlcd-base app-misc/glcdprocdriver ) + lcd_devices_g15? ( dev-libs/libg15 >=dev-libs/libg15render-1.1.1 ) + lcd_devices_ncurses? ( sys-libs/ncurses ) + lcd_devices_svga? ( media-libs/svgalib ) + lcd_devices_ula200? ( >=dev-embedded/libftdi-0.7 =virtual/libusb-0* ) + lcd_devices_xosd? ( x11-libs/xosd x11-libs/libX11 x11-libs/libXext ) + lcd_devices_cfontzpacket? ( =virtual/libusb-0* ) + lcd_devices_cwlinux? ( =virtual/libusb-0* ) + lcd_devices_pyramid? ( =virtual/libusb-0* ) + lcd_devices_picolcd? ( =virtual/libusb-0* )" +DEPEND="${RDEPEND} + doc? ( app-text/xmlto )" +RDEPEND="${RDEPEND} + lcd_devices_g15? ( app-misc/g15daemon )" + +pkg_setup() { + if [ -n "${LCDPROC_DRIVERS}" ] ; then + ewarn "Setting the drivers to compile via LCDPROC_DRIVERS is not supported anymore." + ewarn "Please use LCD_DEVICES now and see emerge -pv output for the options." + fi +} + +src_unpack() { + unpack ${A} + cd "${S}" + + epatch "${WORKDIR}/${P}-patches/${PV}-picolcd.patch" + + sed -i "79s:server/drivers:/usr/$(get_libdir)/lcdproc:" LCDd.conf + einfo "Patching LCDd.conf to use DriverPath=/usr/$(get_libdir)/lcdproc/" + + eautoreconf +} + +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=(curses bayrad CFontz CFontz633 CFontzPacket + CwLnx EyeboxOne g15 glcdlib glk + hd44780 icp_a106 imon IOWarrior + lb216 lcdm001 lcterm + MD8800 ms6931 mtc_s16209x MtxOrb NoritakeVFD + pyramid sed1330 sed1520 serialVFD sli + stv5730 svga t6963 text tyan + ula200 xosd ea65 picolcd serialPOS) + + # Generate comma separated list of drivers + COMMA_DRIVERS="" + FIRST_DRIVER="" + local index=0 + + while [ "${index}" -lt "${NUM_DEVICES}" ] ; do + if use "lcd_devices_${IUSE_LCD_DEVICES[${index}]}" ; then + append-driver "${DEVICE_DRIVERS[${index}]}" + fi + let "index = ${index} + 1" + done + + # Append the not-lcd-drivers (input) + use lirc && append-driver "lirc" + use irman && append-driver "irman" + use joystick && append-driver "joy" + + if [ -z "${COMMA_DRIVERS}" ] ; then + ewarn "You are compiling LCDd without support for any LCD drivers at all." + else + # Patch the config to contain a driver that is actually installed instead of the default + elog "Compiling the following drivers for LCDd: ${COMMA_DRIVERS}" + elog "Setting Driver=${FIRST_DRIVER} in LCDd.conf" + sed -i "44s:curses:${FIRST_DRIVER}:" LCDd.conf + fi + + local ENABLEUSB + if use lcd_devices_cfontzpacket || use lcd_devices_cwlinux || use lcd_devices_pyramid; then + ENABLEUSB="--enable-libusb" + else + ENABLEUSB="$(use_enable usb libusb)" + fi + + econf \ + $(use_enable debug) \ + $(use_enable nfs stat-nfs) \ + $(use_enable samba stat-smbfs ) \ + $(use_enable seamless-hbars) \ + ${ENABLEUSB} \ + "--enable-drivers=${COMMA_DRIVERS}" \ + || die "configure failed" + + emake || die "make failed" + + if use doc; then + ebegin "Creating user documentation" + cd "${S}"/docs/lcdproc-user + xmlto html --skip-validation lcdproc-user.docbook + eend $? + + ebegin "Creating dev documentation" + cd "${S}"/docs/lcdproc-dev + xmlto html --skip-validation lcdproc-dev.docbook + eend $? + fi +} + +append-driver() { + [[ -z $* ]] && return 0 + if [ -z "${COMMA_DRIVERS}" ] ; then + # First in the list + COMMA_DRIVERS="$*" + FIRST_DRIVER="$*" + else + # Second, third, ... include a comma at the front + COMMA_DRIVERS="${COMMA_DRIVERS},$*" + fi + return 0 +} + +src_install() { + emake DESTDIR="${D}" install || die "make install failed" + + # move example clients installed to /usr/bin + rm -f "${D}"/usr/bin/{tail,lcdmetar,iosock,fortune,x11amp}.pl + insinto /usr/share/lcdproc/clients + doins clients/examples/*.pl + doins clients/metar/ + + newinitd "${FILESDIR}/0.5.1-LCDd.initd" LCDd + newinitd "${FILESDIR}/0.5.1-lcdproc.initd" lcdproc + + dodoc README CREDITS ChangeLog INSTALL TODO + dodoc docs/README.* docs/*.txt + + if use doc; then + insinto /usr/share/doc/${PF}/lcdproc-user + doins docs/lcdproc-user/*.html + insinto /usr/share/doc/${PF}/lcdproc-dev + doins docs/lcdproc-dev/*.html + fi +} + +pkg_postinst() { + ewarn "IMPORTANT: Please update your /etc/LCDd.conf" + ewarn "As of lcdproc-0.5.1-r2, the DriverPath changed from /usr/share/lcdproc to /usr/$(get_libdir)/lcdproc ." +} diff --git a/app-misc/lcdproc/lcdproc-0.5.5.ebuild b/app-misc/lcdproc/lcdproc-0.5.5.ebuild new file mode 100644 index 000000000000..173312be0673 --- /dev/null +++ b/app-misc/lcdproc/lcdproc-0.5.5.ebuild @@ -0,0 +1,192 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 +inherit multilib versionator + +MY_PV=$(replace_version_separator 3 '-') +MY_P=${PN}-${MY_PV} +S=${WORKDIR}/${MY_P} + +DESCRIPTION="Client/Server suite to drive all kinds of LCD (-like) devices" +HOMEPAGE="http://lcdproc.org/" +SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" + +IUSE="doc debug hid nfs samba seamless-hbars usb lirc irman joystick ftdi" + +# The following array holds the USE_EXPANDed keywords +IUSE_LCD_DEVICES=(ncurses bayrad cfontz cfontz633 cfontzpacket + cwlinux eyeboxone g15 graphlcd glk + hd44780 icpa106 imon imonlcd iowarrior + lb216 lcdm001 lcterm + md8800 mdm166a ms6931 mtcs16209x mtxorb noritakevfd + pyramid sed1330 sed1520 serialvfd sli + stv5730 SureElec svga t6963 text tyan + ula200 xosd ea65 picolcd serialpos + i2500vfd irtrans lis shuttlevfd ) + +# 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 + +REQUIRED_USE="lcd_devices_mdm166a? ( hid )" + +RDEPEND=" + usb? ( virtual/libusb:0 ) + ftdi? ( dev-embedded/libftdi ) + lirc? ( app-misc/lirc ) + irman? ( media-libs/libirman ) + hid? ( >=dev-libs/libhid-0.2.16 ) + + lcd_devices_graphlcd? ( app-misc/graphlcd-base app-misc/glcdprocdriver ) + lcd_devices_g15? ( dev-libs/libg15 dev-libs/libg15render ) + lcd_devices_ncurses? ( sys-libs/ncurses ) + lcd_devices_svga? ( media-libs/svgalib ) + lcd_devices_ula200? ( dev-embedded/libftdi ) + lcd_devices_xosd? ( x11-libs/xosd x11-libs/libX11 x11-libs/libXext ) + lcd_devices_cfontzpacket? ( virtual/libusb:0 ) + lcd_devices_cwlinux? ( virtual/libusb:0 ) + lcd_devices_pyramid? ( virtual/libusb:0 ) + lcd_devices_picolcd? ( virtual/libusb:0 ) + lcd_devices_i2500vfd? ( dev-embedded/libftdi ) + lcd_devices_lis? ( dev-embedded/libftdi virtual/libusb:0 ) + lcd_devices_shuttlevfd? ( virtual/libusb:0 )" +DEPEND="${RDEPEND} + doc? ( app-text/xmlto + app-text/docbook-xml-dtd:4.5 )" +RDEPEND="${RDEPEND} + lcd_devices_g15? ( app-misc/g15daemon )" + +pkg_setup() { + if [ -n "${LCDPROC_DRIVERS}" ] ; then + ewarn "Setting the drivers to compile via LCDPROC_DRIVERS is not supported anymore." + ewarn "Please use LCD_DEVICES now and see emerge -pv output for the options." + fi +} + +src_prepare() { + sed -i "37s:server/drivers:/usr/$(get_libdir)/lcdproc:" LCDd.conf || die + einfo "Patching LCDd.conf to use DriverPath=/usr/$(get_libdir)/lcdproc/" +} + +src_configure() { + # 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=(curses bayrad CFontz CFontz633 CFontzPacket + CwLnx EyeboxOne g15 glcdlib glk + hd44780 icp_a106 imon imonlcd IOWarrior + lb216 lcdm001 lcterm + MD8800 mdm166a ms6931 mtc_s16209x MtxOrb NoritakeVFD + pyramid sed1330 sed1520 serialVFD sli + stv5730 SureElec svga t6963 text tyan + ula200 xosd ea65 picolcd serialPOS + i2500vfd irtrans lis shuttleVFD ) + + # Generate comma separated list of drivers + COMMA_DRIVERS="" + FIRST_DRIVER="" + local index=0 + + while [ "${index}" -lt "${NUM_DEVICES}" ] ; do + if use "lcd_devices_${IUSE_LCD_DEVICES[${index}]}" ; then + append-driver "${DEVICE_DRIVERS[${index}]}" + fi + let "index = ${index} + 1" + done + + # Append the not-lcd-drivers (input) + use lirc && append-driver "lirc" + use irman && append-driver "irman" + use joystick && append-driver "joy" + + if [ -z "${COMMA_DRIVERS}" ] ; then + ewarn "You are compiling LCDd without support for any LCD drivers at all." + else + # Patch the config to contain a driver that is actually installed instead of the default + elog "Compiling the following drivers for LCDd: ${COMMA_DRIVERS}" + elog "Setting Driver=${FIRST_DRIVER} in LCDd.conf" + sed -i "53s:curses:${FIRST_DRIVER}:" LCDd.conf || die + fi + + local EXTRA_CONF + if use lcd_devices_cfontzpacket || use lcd_devices_cwlinux || use lcd_devices_pyramid || \ + use lcd_devices_picolcd || use lcd_devices_lis || use lcd_devices_shuttlevfd ; then + EXTRA_CONF="--enable-libusb" + else + EXTRA_CONF="$(use_enable usb libusb)" + fi + + if use lcd_devices_ula200 || use lcd_devices_i2500vfd || use lcd_devices_lis ; then + EXTRA_CONF="${EXTRA_CONF} --enable-libftdi" + else + EXTRA_CONF="${EXTRA_CONF} $(use_enable ftdi libftdi)" + fi + + econf --enable-extra-charmaps \ + $(use_enable debug) \ + $(use_enable nfs stat-nfs) \ + $(use_enable samba stat-smbfs ) \ + $(use_enable seamless-hbars) \ + ${EXTRA_CONF} \ + "--enable-drivers=${COMMA_DRIVERS}" +} + +src_compile() { + default + + if use doc; then + ebegin "Creating user documentation" + cd "${S}"/docs/lcdproc-user + xmlto html --skip-validation lcdproc-user.docbook + eend $? + + ebegin "Creating dev documentation" + cd "${S}"/docs/lcdproc-dev + xmlto html --skip-validation lcdproc-dev.docbook + eend $? + fi +} + +append-driver() { + [[ -z $* ]] && return 0 + if [ -z "${COMMA_DRIVERS}" ] ; then + # First in the list + COMMA_DRIVERS="$*" + FIRST_DRIVER="$*" + else + # Second, third, ... include a comma at the front + COMMA_DRIVERS="${COMMA_DRIVERS},$*" + fi + return 0 +} + +src_install() { + emake DESTDIR="${D}" install + + # move example clients installed to /usr/bin + rm -f "${D}"/usr/bin/{tail,lcdmetar,iosock,fortune,x11amp}.pl + insinto /usr/share/lcdproc/clients + doins clients/examples/*.pl + doins clients/metar/*.pl + + newinitd "${FILESDIR}/0.5.1-LCDd.initd" LCDd + newinitd "${FILESDIR}/0.5.2-r2-lcdproc.initd" lcdproc + + dodoc README CREDITS ChangeLog INSTALL TODO + + if use doc; then + insinto /usr/share/doc/${PF}/lcdproc-user + doins docs/lcdproc-user/*.html + insinto /usr/share/doc/${PF}/lcdproc-dev + doins docs/lcdproc-dev/*.html + fi +} diff --git a/app-misc/lcdproc/lcdproc-0.5.6-r1.ebuild b/app-misc/lcdproc/lcdproc-0.5.6-r1.ebuild new file mode 100644 index 000000000000..bd5e8a1e2ddd --- /dev/null +++ b/app-misc/lcdproc/lcdproc-0.5.6-r1.ebuild @@ -0,0 +1,196 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit multilib versionator + +MY_PV=$(replace_version_separator 3 '-') +MY_P=${PN}-${MY_PV} +S=${WORKDIR}/${MY_P} + +DESCRIPTION="Client/Server suite to drive all kinds of LCD (-like) devices" +HOMEPAGE="http://lcdproc.org/" +SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" + +IUSE="debug doc ftdi hid irman joystick lirc nfs png samba seamless-hbars truetype usb" + +# The following array holds the USE_EXPANDed keywords +IUSE_LCD_DEVICES=(ncurses bayrad cfontz cfontzpacket + cwlinux eyeboxone g15 graphlcd glk + hd44780 icpa106 imon imonlcd iowarrior + lb216 lcdm001 lcterm + md8800 mdm166a ms6931 mtcs16209x mtxorb noritakevfd + pyramid sdeclcd sed1330 sed1520 serialvfd sli + stv5730 SureElec svga t6963 text tyan + ula200 vlsys_m428 xosd ea65 picolcd serialpos + i2500vfd irtrans lis shuttlevfd ) + +# 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 + +REQUIRED_USE="lcd_devices_mdm166a? ( hid )" + +RDEPEND=" + ftdi? ( dev-embedded/libftdi ) + hid? ( >=dev-libs/libhid-0.2.16 ) + irman? ( media-libs/libirman ) + lirc? ( app-misc/lirc ) + png? ( media-libs/libpng:0 ) + truetype? ( media-libs/freetype:2 ) + usb? ( virtual/libusb:0 ) + + lcd_devices_graphlcd? ( app-misc/graphlcd-base app-misc/glcdprocdriver dev-libs/serdisplib ) + lcd_devices_g15? ( dev-libs/libg15 dev-libs/libg15render ) + lcd_devices_ncurses? ( sys-libs/ncurses ) + lcd_devices_svga? ( media-libs/svgalib ) + lcd_devices_ula200? ( dev-embedded/libftdi ) + lcd_devices_xosd? ( x11-libs/xosd x11-libs/libX11 x11-libs/libXext ) + lcd_devices_cfontzpacket? ( virtual/libusb:0 ) + lcd_devices_cwlinux? ( virtual/libusb:0 ) + lcd_devices_pyramid? ( virtual/libusb:0 ) + lcd_devices_picolcd? ( virtual/libusb:0 ) + lcd_devices_i2500vfd? ( dev-embedded/libftdi ) + lcd_devices_lis? ( dev-embedded/libftdi virtual/libusb:0 ) + lcd_devices_shuttlevfd? ( virtual/libusb:0 )" +DEPEND="${RDEPEND} + doc? ( app-text/xmlto + app-text/docbook-xml-dtd:4.5 )" +RDEPEND="${RDEPEND} + lcd_devices_g15? ( app-misc/g15daemon )" + +pkg_setup() { + if [ -n "${LCDPROC_DRIVERS}" ] ; then + ewarn "Setting the drivers to compile via LCDPROC_DRIVERS is not supported anymore." + ewarn "Please use LCD_DEVICES now and see emerge -pv output for the options." + fi +} + +src_prepare() { + sed -i "37s:server/drivers:/usr/$(get_libdir)/lcdproc:" LCDd.conf || die + einfo "Patching LCDd.conf to use DriverPath=/usr/$(get_libdir)/lcdproc/" +} + +src_configure() { + # 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=(curses bayrad CFontz CFontzPacket + CwLnx EyeboxOne g15 glcd,glcdlib glk + hd44780 icp_a106 imon imonlcd IOWarrior + lb216 lcdm001 lcterm + MD8800 mdm166a ms6931 mtc_s16209x MtxOrb NoritakeVFD + pyramid sdeclcd sed1330 sed1520 serialVFD sli + stv5730 SureElec svga t6963 text tyan + ula200 vlsys_m428 xosd ea65 picolcd serialPOS + i2500vfd irtrans lis shuttleVFD ) + + # Generate comma separated list of drivers + COMMA_DRIVERS="" + FIRST_DRIVER="" + local index=0 + + while [ "${index}" -lt "${NUM_DEVICES}" ] ; do + if use "lcd_devices_${IUSE_LCD_DEVICES[${index}]}" ; then + append-driver "${DEVICE_DRIVERS[${index}]}" + fi + let "index = ${index} + 1" + done + + # Append the not-lcd-drivers (input) + use lirc && append-driver "lirc" + use irman && append-driver "irman" + use joystick && append-driver "joy" + + if [ -z "${COMMA_DRIVERS}" ] ; then + ewarn "You are compiling LCDd without support for any LCD drivers at all." + else + # Patch the config to contain a driver that is actually installed instead of the default + elog "Compiling the following drivers for LCDd: ${COMMA_DRIVERS}" + elog "Setting Driver=${FIRST_DRIVER} in LCDd.conf" + sed -i "53s:curses:${FIRST_DRIVER}:" LCDd.conf || die + fi + + local EXTRA_CONF + if use lcd_devices_cfontzpacket || use lcd_devices_cwlinux || use lcd_devices_pyramid || \ + use lcd_devices_picolcd || use lcd_devices_lis || use lcd_devices_shuttlevfd ; then + EXTRA_CONF="--enable-libusb" + else + EXTRA_CONF="$(use_enable usb libusb)" + fi + + if use lcd_devices_ula200 || use lcd_devices_i2500vfd || use lcd_devices_lis ; then + EXTRA_CONF="${EXTRA_CONF} --enable-libftdi" + else + EXTRA_CONF="${EXTRA_CONF} $(use_enable ftdi libftdi)" + fi + + econf --enable-extra-charmaps \ + $(use_enable debug) \ + $(use_enable nfs stat-nfs) \ + $(use_enable png libpng) \ + $(use_enable samba stat-smbfs ) \ + $(use_enable seamless-hbars) \ + $(use_enable truetype freetype) \ + ${EXTRA_CONF} \ + "--enable-drivers=${COMMA_DRIVERS}" +} + +src_compile() { + default + + if use doc; then + ebegin "Creating user documentation" + cd "${S}"/docs/lcdproc-user + xmlto html --skip-validation lcdproc-user.docbook + eend $? + + ebegin "Creating dev documentation" + cd "${S}"/docs/lcdproc-dev + xmlto html --skip-validation lcdproc-dev.docbook + eend $? + fi +} + +append-driver() { + [[ -z $* ]] && return 0 + if [ -z "${COMMA_DRIVERS}" ] ; then + # First in the list + COMMA_DRIVERS="$*" + FIRST_DRIVER="$*" + else + # Second, third, ... include a comma at the front + COMMA_DRIVERS="${COMMA_DRIVERS},$*" + fi + return 0 +} + +src_install() { + emake DESTDIR="${D}" install + + # move example clients installed to /usr/bin + rm -f "${D}"/usr/bin/{tail,lcdmetar,iosock,fortune,x11amp}.pl + insinto /usr/share/lcdproc/clients + doins clients/examples/*.pl + doins clients/metar/*.pl + + newinitd "${FILESDIR}/0.5.1-LCDd.initd" LCDd + newinitd "${FILESDIR}/0.5.2-r2-lcdproc.initd" lcdproc + + dodoc README CREDITS ChangeLog INSTALL TODO + + if use doc; then + insinto /usr/share/doc/${PF}/lcdproc-user + doins docs/lcdproc-user/*.html + insinto /usr/share/doc/${PF}/lcdproc-dev + doins docs/lcdproc-dev/*.html + fi +} diff --git a/app-misc/lcdproc/metadata.xml b/app-misc/lcdproc/metadata.xml new file mode 100644 index 000000000000..8cbb4937167a --- /dev/null +++ b/app-misc/lcdproc/metadata.xml @@ -0,0 +1,29 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>xmw@gentoo.org</email> + <name>Michael Weber</name> + </maintainer> + <longdescription lang="en"> + LCDproc is a piece of software that displays real-time system information + from your Linux/*BSD box on a LCD. The server supports several serial + devices: Matrix Orbital, CrystalFontz, Bayrad, LB216, LCDM001 + (kernelconcepts.de), Wirz-SLI, Cwlinux(.com) and PIC-an-LCD; and some + devices connected to the LPT port: HD44780, STV5730, T6963, SED1520 and + SED1330. Various clients are available that display things like CPU load, + system load, memory usage, uptime, and a lot more. +</longdescription> + <use> + <flag name="hid">Enable HID support using libhid</flag> + <flag name="irman">Enable support for IRMan (<pkg>media-libs/libirman</pkg>)</flag> + <flag name="nfs">Adds support for NFS file system</flag> + <flag name="seamless-hbars">Try to avoid gaps in horizontal bars</flag> + <flag name="ftdi">Enable support for FTDI connections in some selected LCD_DEVICES (currently hd44780)</flag> + <flag name="lcd_devices_sdeclcd">Enable support for VLSYS M428 display</flag> + <flag name="lcd_devices_vlsys_m428">Enable support for VLSYS M428 display</flag> + </use> + <upstream> + <remote-id type="sourceforge">lcdproc</remote-id> + </upstream> +</pkgmetadata> |