# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/app-text/dos2unix/dos2unix-3.1.ebuild,v 1.17 2004/07/28 23:27:42 vapier Exp $ inherit eutils DESCRIPTION="Dos2unix converts DOS or MAC text files to UNIX format" HOMEPAGE="I HAVE NO HOME :(" SRC_URI="http://www2.tripleg.net.au/dos2unix.builder/${P}.tar.bz2" LICENSE="freedist" SLOT="0" KEYWORDS="x86 ppc sparc mips alpha arm hppa amd64 ppc64 macos" IUSE="" DEPEND="" RDEPEND="!app-text/hd2u" src_unpack() { unpack ${A} cd ${S} epatch ${FILESDIR}/${P}.patch epatch ${FILESDIR}/${P}-segfault.patch } src_compile() { make clean || die make CFLAGS="${CFLAGS}" || die } src_install() { dobin dos2unix || die dosym dos2unix /usr/bin/mac2unix doman dos2unix.1 dosym dos2unix.1.gz /usr/share/man/man1/mac2unix.1.gz }