exherbo-impulze/packages/app-text/tofrodos/tofrodos-1.7.8.exheres-0

42 lines
1.1 KiB
Bash
Raw Normal View History

# Copyright 2009 Daniel Mierswa <impulze@impulze.org>
# Distributed under the terms of the GNU General Public License v2
SUMMARY="Conversion between Unix and MSDOS text files."
DESCRIPTION="A text file conversion utility that converts ASCII files between
MSDOS (or Windows) format, which traditionally have CR/LF (carriage
return/line feed) pairs as their new line delimiters, and the Unix format,
which usually have LFs (line feeds) to terminate each line."
2010-03-11 11:42:25 +01:00
HOMEPAGE="http://www.thefreecountry.com/${PN}/index.shtml"
DOWNLOADS="http://${PN}.sourceforge.net/download/${PNV}.tar.gz"
LICENCES="GPL-2"
SLOT="0"
PLATFORMS="~amd64"
MYOPTIONS=""
DEPENDENCIES=""
2010-03-11 11:42:25 +01:00
WORK="${WORKBASE}/${PN}/src"
src_prepare() {
default
2010-03-11 11:37:00 +01:00
edo sed \
2010-01-08 01:29:42 +01:00
-e "/CC =/s:gcc:${CC}:" \
-e "/LD =/s:gcc:${CC}:" \
2010-03-11 11:42:25 +01:00
-e "/CFLAGS =/s:\$(CDEBUG):${CFLAGS}:" \
-e "/LDFLAGS =/s:\$(LDEBUG):${LDFLAGS}:" \
2010-03-11 11:37:00 +01:00
-i Makefile
}
src_install() {
dobin fromdos
doman fromdos.1
for link in todos dos2unix unix2dos ; do
2010-03-11 11:42:25 +01:00
dosym fromdos /usr/bin/${link}
dosym fromdos.1 /usr/share/man/man1/${link}.1
done
}
2009-07-29 12:55:27 +02:00