# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/app-text/unix2dos/unix2dos-2.2-r1.ebuild,v 1.8 2007/12/11 09:32:21 vapier Exp $ inherit eutils toolchain-funcs DESCRIPTION="UNIX to DOS text file format converter" HOMEPAGE="I HAVE NO HOME :(" SRC_URI="mirror://gentoo/${P}.src.tar.gz" LICENSE="BSD-2" SLOT="0" KEYWORDS="alpha amd64 arm hppa ~mips ppc ppc64 sh sparc x86" IUSE="" S=${WORKDIR} src_unpack() { unpack ${A} epatch "${FILESDIR}"/${PN}-mkstemp.patch epatch "${FILESDIR}"/${P}-segfault.patch epatch "${FILESDIR}"/${P}-manpage.patch epatch "${FILESDIR}"/${P}-workaround-rename-EXDEV.patch } src_compile() { $(tc-getCC) ${CFLAGS} ${LDFLAGS} -o unix2dos unix2dos.c || die } src_install() { dobin unix2dos || die doman unix2dos.1 }