mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-05 14:38:51 +02:00
40 lines
911 B
Plaintext
40 lines
911 B
Plaintext
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://www.programmersheaven.com/download/3118/download.aspx"
|
|
SRC_URI="http://ports-space.haiku-files.org/source/dos2unix-1.0.zip"
|
|
CHECKSUM_MD5="76c4991341219d71072474255714b010"
|
|
REVISION="1"
|
|
COPYRIGHT="Public Domain"
|
|
LICENSE="Public Domain"
|
|
|
|
ARCHITECTURES="x86 x86_gcc2 x86_64"
|
|
|
|
PROVIDES="
|
|
dos2unix = 1.0 compat >= 1
|
|
cmd:dos2unix
|
|
cmd:unix2dos
|
|
"
|
|
|
|
REQUIRES="
|
|
lib:libroot >= $haikuVersion
|
|
"
|
|
|
|
BUILD_PREREQUIRES="
|
|
cmd:gcc
|
|
"
|
|
|
|
SOURCE_DIR="$portVersionedName"
|
|
|
|
BUILD()
|
|
{
|
|
gcc -O -o dos2unix DOS2UNIX.C
|
|
gcc -O -o unix2dos UNIX2DOS.C
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
mkdir -p $binDir
|
|
cp dos2unix $binDir/dos2unix
|
|
cp unix2dos $binDir/unix2dos
|
|
}
|