summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenrik Brix Andersen <brix@gentoo.org>2005-02-08 12:41:22 +0000
committerHenrik Brix Andersen <brix@gentoo.org>2005-02-08 12:41:22 +0000
commit535d685af171a93e15f0508191aa8a81850604e1 (patch)
tree119b611564bdc5464b1ef572a228c5858a9c0665 /net-wireless/irda-utils/irda-utils-0.9.17_pre5.ebuild
parentstable on amd64 (diff)
downloadhistorical-535d685af171a93e15f0508191aa8a81850604e1.tar.gz
historical-535d685af171a93e15f0508191aa8a81850604e1.tar.bz2
historical-535d685af171a93e15f0508191aa8a81850604e1.zip
Version bump.
Package-Manager: portage-2.0.51-r15
Diffstat (limited to 'net-wireless/irda-utils/irda-utils-0.9.17_pre5.ebuild')
-rw-r--r--net-wireless/irda-utils/irda-utils-0.9.17_pre5.ebuild81
1 files changed, 81 insertions, 0 deletions
diff --git a/net-wireless/irda-utils/irda-utils-0.9.17_pre5.ebuild b/net-wireless/irda-utils/irda-utils-0.9.17_pre5.ebuild
new file mode 100644
index 000000000000..69412da0425c
--- /dev/null
+++ b/net-wireless/irda-utils/irda-utils-0.9.17_pre5.ebuild
@@ -0,0 +1,81 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-wireless/irda-utils/irda-utils-0.9.17_pre5.ebuild,v 1.1 2005/02/08 12:41:22 brix Exp $
+
+inherit eutils
+
+MY_P=${PN}-${PV/_/-}
+S=${WORKDIR}/${MY_P/-pre*/}
+
+DESCRIPTION="IrDA utilities, tools for infrared communication"
+
+HOMEPAGE="http://irda.sourceforge.net"
+SRC_URI="http://www.hpl.hp.com/personal/Jean_Tourrilhes/IrDA/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86 ~ppc ~amd64"
+
+IUSE="gtk"
+DEPEND="sys-apps/sed"
+RDEPEND="=dev-libs/glib-2*
+ gtk? ( =x11-libs/gtk+-1.2* )"
+
+src_unpack() {
+ unpack ${A}
+
+ cd ${S}
+ epatch ${FILESDIR}/irda-utils-rh1.patch
+
+ sed -i \
+ -e "s:^\(CFLAGS\)=.*:\1=${CFLAGS}:" \
+ -e "s:^\(DIRS =.*\):\1 irsockets:" \
+ ${S}/Makefile
+}
+
+src_compile() {
+ emake RPM_OPT_FLAGS="${CFLAGS}" RPM_BUILD_ROOT="${D}" ROOT="${D}" WANT_AUTOCONF="2.5" \
+ || die "emake failed"
+
+ if use gtk; then
+ emake RPM_OPT_FLAGS="${CFLAGS}" RPM_BUILD_ROOT="${D}" ROOT="${D}" -C findchip gfindchip \
+ || die "emake gfindchip failed"
+ fi
+}
+
+src_install () {
+ dodir /usr/bin
+ dodir /usr/sbin
+
+ emake install RPM_OPT_FLAGS="${CFLAGS}" RPM_BUILD_ROOT="${D}" ROOT="${D}" PREFIX="${D}" \
+ || die "emake install failed"
+
+ into /usr
+ dobin irsockets/irdaspray
+ dobin irsockets/ias_query
+ dobin irsockets/irprintf
+ dobin irsockets/irprintfx
+ dobin irsockets/irscanf
+ dobin irsockets/recv_ultra
+ dobin irsockets/send_ultra
+
+ if use gtk; then
+ dosbin findchip/gfindchip
+ fi
+
+ dodoc README
+ newdoc ethereal/README README.ethereal
+ newdoc irattach/README README.irattach
+ newdoc irdadump/README README.irdadump
+ newdoc irdaping/README README.irdaping
+ newdoc irsockets/README README.irsockets
+ newdoc tekram/README README.tekram
+
+ newdoc irattach/ChangeLog ChangeLog.irattach
+ newdoc irdadump/ChangeLog ChangeLog.irdadump
+
+ dodoc etc/modules.conf.irda
+
+ newconfd ${FILESDIR}/irda.conf irda
+ newinitd ${FILESDIR}/irda.rc irda
+}