You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/app-text/unix2dos/unix2dos-2.2-r1.ebuild

40 lines
1004 B

# Copyright 1999-2011 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.12 2011/01/05 09:11:03 jlec Exp $
EAPI="3"
inherit eutils toolchain-funcs
DESCRIPTION="UNIX to DOS text file format converter"
HOMEPAGE="http://www.xs4all.nl/~waterlan/dos2unix.html"
SRC_URI="mirror://gentoo/${P}.src.tar.gz"
LICENSE="BSD-2"
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ~mips ppc ppc64 sh sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~sparc64-solaris"
IUSE=""
RDEPEND="!>=app-text/dos2unix-5"
DEPEND=""
S="${WORKDIR}"
src_prepare() {
epatch \
"${FILESDIR}"/${PN}-mkstemp.patch \
"${FILESDIR}"/${P}-segfault.patch \
"${FILESDIR}"/${P}-manpage.patch \
"${FILESDIR}"/${P}-workaround-rename-EXDEV.patch \
"${FILESDIR}"/${P}-headers.patch
}
src_compile() {
emake CC="$(tc-getCC)" unix2dos || die
}
src_install() {
dobin unix2dos || die
doman unix2dos.1 || die
}