summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2006-05-25 09:18:43 +0000
committerRobin H. Johnson <robbat2@gentoo.org>2006-05-25 09:18:43 +0000
commitc07adf54e89d5c87dbf883e703c5e3ea5782700a (patch)
treeadde597107816c5369c59f47c8da225ef55e2368 /app-misc
parentMarked stable on hppa (bug #98593). (diff)
downloadgentoo-2-c07adf54e89d5c87dbf883e703c5e3ea5782700a.tar.gz
gentoo-2-c07adf54e89d5c87dbf883e703c5e3ea5782700a.tar.bz2
gentoo-2-c07adf54e89d5c87dbf883e703c5e3ea5782700a.zip
Major ebuild revamp, partly based on submission in bug #100976.
(Portage version: 2.1_rc2)
Diffstat (limited to 'app-misc')
-rw-r--r--app-misc/lcd4linux/ChangeLog10
-rw-r--r--app-misc/lcd4linux/files/digest-lcd4linux-0.10.03
-rw-r--r--app-misc/lcd4linux/lcd4linux-0.10.0.ebuild108
3 files changed, 119 insertions, 2 deletions
diff --git a/app-misc/lcd4linux/ChangeLog b/app-misc/lcd4linux/ChangeLog
index cf00fecbc2cd..229c131d89f8 100644
--- a/app-misc/lcd4linux/ChangeLog
+++ b/app-misc/lcd4linux/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for app-misc/lcd4linux
-# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-misc/lcd4linux/ChangeLog,v 1.14 2005/01/01 15:10:20 eradicator Exp $
+# Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-misc/lcd4linux/ChangeLog,v 1.15 2006/05/25 09:18:43 robbat2 Exp $
+
+*lcd4linux-0.10.0 (25 May 2006)
+
+ 25 May 2006; Robin H. Johnson <robbat2@gentoo.org>
+ +lcd4linux-0.10.0.ebuild:
+ Major ebuild revamp, partly based on submission in bug #100976.
01 Jun 2004; Aron Griffis <agriffis@gentoo.org> lcd4linux-0.9.11.ebuild,
lcd4linux-0.9.9.ebuild:
diff --git a/app-misc/lcd4linux/files/digest-lcd4linux-0.10.0 b/app-misc/lcd4linux/files/digest-lcd4linux-0.10.0
new file mode 100644
index 000000000000..de6c25a79ec2
--- /dev/null
+++ b/app-misc/lcd4linux/files/digest-lcd4linux-0.10.0
@@ -0,0 +1,3 @@
+MD5 b7fb1c24b940482cd730cf212d1b5062 lcd4linux-0.10.0.tar.gz 294851
+RMD160 98f810297de3d746d559998516b83a2939fc8568 lcd4linux-0.10.0.tar.gz 294851
+SHA256 0b880d4baf612e5689d3b97d7c699df864cdb690b354eadd2a3d4e341511e909 lcd4linux-0.10.0.tar.gz 294851
diff --git a/app-misc/lcd4linux/lcd4linux-0.10.0.ebuild b/app-misc/lcd4linux/lcd4linux-0.10.0.ebuild
new file mode 100644
index 000000000000..5940133964b0
--- /dev/null
+++ b/app-misc/lcd4linux/lcd4linux-0.10.0.ebuild
@@ -0,0 +1,108 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-misc/lcd4linux/lcd4linux-0.10.0.ebuild,v 1.1 2006/05/25 09:18:43 robbat2 Exp $
+
+#inherit eutils
+
+DESCRIPTION="system and ISDN information is shown on an external display or in a X11 window"
+HOMEPAGE="http://ssl.bulix.org/projects/lcd4linux/"
+SRC_URI="mirror://sourceforge/lcd4linux/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+# contains x86 asm, upstream is working on a portable version
+KEYWORDS="-* ~x86"
+IUSE="kde png X usb mysql python"
+
+DEPEND="png? ( media-libs/libpng
+ media-libs/gd )
+ X? ( x11-libs/libX11 )
+ usb? ( dev-libs/libusb )
+ mysql? ( dev-db/mysql )"
+# python? ( dev-lang/python )
+# mpd is needed soon
+# python is broken
+
+pkg_preinst() {
+ einfo "If you wish to compile only specific drivers or plugins, please use"
+ einfo "the LCD4LINUX_PLUGINS and LCD4LINUX_DRIVERS environment variables."
+}
+
+src_compile() {
+ local myconf myp myd
+
+ # need to grab upstream's *.m4 and fix python building
+ # they didn't have python properly set up originally.
+ #myconf="${myconf} $(use_with python)"
+ myconf="${myconf} --without-python"
+
+ # plugins
+ if [ -n "$LCD4LINUX_PLUGINS" ]; then
+ myp="$LCD4LINUX_PLUGINS"
+ einfo "Active plugins (overridden): ${myp}"
+ else
+ myp="all"
+ use mysql || myp="${myp},!mysql"
+ #use python || myp="${myp},!python"
+ myp="${myp},!python"
+ einfo "Active plugins: ${myp}"
+ fi
+
+ # drivers
+ if [ -n "$LCD4LINUX_DRIVERS" ]; then
+ myd="$LCD4LINUX_DRIVERS"
+ einfo "Active drivers (overridden): ${myd}"
+ else
+ myd="all"
+ use usb || myd="${myd},!USBLCD"
+ use png || myd="${myd},!PNG"
+ use X || myd="${myd},!X11"
+ einfo "Active drivers: ${myd}"
+ fi
+
+ # avoid package brokenness
+ use X && myconf="${myconf} --x-libraries=/usr/lib --x-include=/usr/include"
+ use X || myconf="${myconf} --without-x"
+
+ econf \
+ --sysconfdir=/etc/lcd4linux \
+ --with-drivers="${myd}" \
+ --with-plugins="${myp}" \
+ ${myconf} \
+ || die "econf failed"
+
+ sed -i.orig -e 's,-L -lX11, -lX11 ,g' Makefile || die "sed fixup failed"
+
+ emake || die
+}
+
+src_install() {
+ # upstream's makefile acts weird, and tries to recompile stuff
+ into /usr
+ dobin lcd4linux
+
+ dodoc README* NEWS TODO CREDITS FAQ AUTHORS ChangeLog
+
+ #newconfd ${FILESDIR}/${PN}.confd ${PN}
+ #newinitd ${FILESDIR}/${PN}.initd ${PN}
+
+ dodir /etc/lcd4linux
+
+ if use X || use kde; then
+ insinto /usr/share/pixmaps
+ doins lcd4linux.xpm
+ fi
+ use X && touch ${D}/etc/lcd4linux/lcd4X11.conf
+
+ if use kde ; then
+ insinto /usr/share/applnk/apps/System
+ doins lcd4linux.kdelnk
+ insinto /etc/lcd4linux
+ insopts -o root -g root -m 0600
+ doins lcd4kde.conf
+ fi
+
+ insinto /etc/lcd4linux
+ insopts -o root -g root -m 0600
+ newins lcd4linux.conf.sample lcd4linux.conf
+}