mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-05 14:38:51 +02:00
Add ConvertToLF recipe
This commit is contained in:
51
haiku-apps/converttolf/converttolf_git.recipe
Normal file
51
haiku-apps/converttolf/converttolf_git.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"
|
||||||
|
|
||||||
|
REVISION="1"
|
||||||
|
|
||||||
|
COPYRIGHT="
|
||||||
|
fReT
|
||||||
|
"
|
||||||
|
|
||||||
|
LICENSE="GPL"
|
||||||
|
|
||||||
|
ARCHITECTURES="x86_gcc2 x86"
|
||||||
|
|
||||||
|
PATCHES="converttolf_git.patch"
|
||||||
|
|
||||||
|
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
|
||||||
|
xres -o ConvertToLF Source/ConvertToLF.rsrc
|
||||||
|
}
|
||||||
|
|
||||||
|
INSTALL()
|
||||||
|
{
|
||||||
|
mkdir -p $addOnsDir/Tracker
|
||||||
|
cp ConvertToLF $addOnsDir/Tracker
|
||||||
|
}
|
||||||
13
haiku-apps/converttolf/patches/converttolf-1.0.0.patch
Normal file
13
haiku-apps/converttolf/patches/converttolf-1.0.0.patch
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
diff --git a/Source/Strip.cpp b/Source/Strip.cpp
|
||||||
|
index c630a03..fa79021 100644
|
||||||
|
--- a/Source/Strip.cpp
|
||||||
|
+++ b/Source/Strip.cpp
|
||||||
|
@@ -1,7 +1,7 @@
|
||||||
|
#include <Application.h>
|
||||||
|
#include <InterfaceKit.h>
|
||||||
|
#include <StorageKit.h>
|
||||||
|
-#include <be/add-ons/tracker/TrackerAddon.h>
|
||||||
|
+#include <add-ons/tracker/TrackerAddOn.h>
|
||||||
|
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <string.h>
|
||||||
Reference in New Issue
Block a user