mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 12:10:06 +02:00
Merged in puckipedia/haikuports/converttolf (pull request #18)
Add ConvertToLF recipe
This commit is contained in:
51
haiku-apps/converttolf/converttolf-0.0.0.recipe
Normal file
51
haiku-apps/converttolf/converttolf-0.0.0.recipe
Normal file
@@ -0,0 +1,51 @@
|
||||
SUMMARY="A small tool to turn CRLF into LF without fuss!"
|
||||
DESCRIPTION="
|
||||
ConvertToLF is a filter that removes the carriage returns used in the
|
||||
end of file markers on some operating systems. Haiku uses just a line
|
||||
feed to mark the end of line, and gcc, the Haiku compiler and StyledEdit
|
||||
don't function properly with carriage returns in source code / text files.
|
||||
" # Taken from the homepage
|
||||
|
||||
HOMEPAGE="https://github.com/HaikuArchives/ConvertToLF/"
|
||||
SRC_URI="git://github.com/HaikuArchives/ConvertToLF.git#d8ec50f92a65d9fd1058adf98fe2515fbafa243c"
|
||||
|
||||
REVISION="1"
|
||||
|
||||
COPYRIGHT="
|
||||
2001 fReT
|
||||
"
|
||||
|
||||
LICENSE="GNU GPL v2"
|
||||
|
||||
ARCHITECTURES="x86_gcc2 x86 ?x86_64"
|
||||
|
||||
PROVIDES="
|
||||
ConvertToLF = $portVersion
|
||||
app:ConvertToLF = $portVersion
|
||||
"
|
||||
|
||||
REQUIRES="
|
||||
haiku >= $haikuVersion
|
||||
"
|
||||
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:gcc
|
||||
cmd:xres
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku_devel >= $haikuVersion
|
||||
"
|
||||
BUILD()
|
||||
{
|
||||
g++ -lbe -ltracker -o ConvertToLF Source/Strip.cpp
|
||||
rc -o ConvertToLF.rsrc Source/ConvertToLF.rdef
|
||||
xres -o ConvertToLF ConvertToLF.rsrc
|
||||
mimeset -f ConvertToLF
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
mkdir -p $addOnsDir/Tracker
|
||||
cp ConvertToLF $addOnsDir/Tracker
|
||||
}
|
||||
Reference in New Issue
Block a user