Merged in puckipedia/haikuports/dos2unix (pull request #52)

Add new version of Dos2Unix
This commit is contained in:
Scott McCreary
2013-12-16 11:35:31 -08:00

View File

@@ -0,0 +1,38 @@
SUMMARY="dos2unix and unix2dos end of line file convertors."
DESCRIPTION="DOS/Windows like to put CR/LF at the end of lines whereas UNIX like to have just LF. Dos2unix and unix2dos are simple parser/converter command line programs to convert between the two formats."
HOMEPAGE="http://github.com/puckipedia/dos2unix"
SRC_URI="git://github.com/puckipedia/dos2unix.git#553720356be18ca60cae3d970a575520aef5a4f4"
REVISION="1"
COPYRIGHT="Public Domain"
LICENSE="Public Domain"
ARCHITECTURES="x86 x86_gcc2 x86_64"
PROVIDES="
dos2unix = 1.0.1 compat >= 1
cmd:dos2unix
cmd:unix2dos
"
REQUIRES="
haiku >= $haikuVersion
"
BUILD_PREREQUIRES="
haiku_devel >= $haikuVersion
cmd:g++
"
BUILD()
{
cd src
g++ -O -o ../dos2unix dos2unix.c
g++ -O -o ../unix2dos unix2dos.c
}
INSTALL()
{
mkdir -p $binDir
cp dos2unix $binDir/dos2unix
cp unix2dos $binDir/unix2dos
}