mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-18 09:40:05 +02:00
beindexed: x86_64 patch
This commit is contained in:
@@ -7,13 +7,14 @@ Indexer, Find files with Finder.
|
||||
HOMEPAGE="https://github.com/HaikuArchives/BeIndexed"
|
||||
COPYRIGHT="2003 Mikael Eiman"
|
||||
LICENSE="BSD (3-clause)"
|
||||
REVISION="2"
|
||||
REVISION="3"
|
||||
srcGitRev="4bbd3e9709d7288ffefbc215ab41a152a24a2276"
|
||||
SOURCE_URI="https://github.com/HaikuArchives/BeIndexed/archive/$srcGitRev.tar.gz"
|
||||
CHECKSUM_SHA256="b9bb08ec87e96169708309e26ef6ee59e1c30c2f46a06c6a7427d3e8d4d65c00"
|
||||
SOURCE_DIR="BeIndexed-$srcGitRev"
|
||||
PATCHES="beindexed-$portVersion.patchset"
|
||||
|
||||
ARCHITECTURES="x86_gcc2 x86"
|
||||
ARCHITECTURES="x86_gcc2 x86 x86_64"
|
||||
|
||||
PROVIDES="
|
||||
beindexed = $portVersion
|
||||
@@ -28,7 +29,6 @@ REQUIRES="
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku_devel
|
||||
makefile_engine
|
||||
devel:liblayout
|
||||
devel:libsqlite3
|
||||
"
|
||||
|
||||
117
haiku-apps/beindexed/patches/beindexed-0.2.0_alpha.patchset
Normal file
117
haiku-apps/beindexed/patches/beindexed-0.2.0_alpha.patchset
Normal file
@@ -0,0 +1,117 @@
|
||||
From af255d5fe69b47e685124ff3b4f1a1c4f15395d9 Mon Sep 17 00:00:00 2001
|
||||
From: Jerome Duval <jerome.duval@gmail.com>
|
||||
Date: Wed, 3 Jul 2019 21:27:54 +0200
|
||||
Subject: x86_64 patch
|
||||
|
||||
|
||||
diff --git a/makefile b/makefile
|
||||
index e82d960..6068656 100644
|
||||
--- a/makefile
|
||||
+++ b/makefile
|
||||
@@ -9,8 +9,8 @@ SUBDIRS = \
|
||||
# IMKIT_HEADERS=$(addprefix /boot/home/config/include/, $(wildcard libim/*.h))
|
||||
|
||||
.PHONY: default clean install dist common
|
||||
-
|
||||
-default .DEFAULT : /boot/home/config/include/libim $(IMKIT_HEADERS)
|
||||
+# /boot/home/config/include/libim $(IMKIT_HEADERS)
|
||||
+default .DEFAULT :
|
||||
-@for f in $(SUBDIRS) ; do \
|
||||
$(MAKE) -C $$f -f makefile $@ || exit -1; \
|
||||
done
|
||||
diff --git a/src/Finder/Finder.h b/src/Finder/Finder.h
|
||||
index 459d995..22650be 100644
|
||||
--- a/src/Finder/Finder.h
|
||||
+++ b/src/Finder/Finder.h
|
||||
@@ -11,6 +11,8 @@ enum {
|
||||
FINDER_WORDS = 'FiWo'
|
||||
};
|
||||
|
||||
+using namespace std;
|
||||
+
|
||||
void search( map<string,double> & matches, list<string> & words );
|
||||
void background_search( BMessenger, string query );
|
||||
|
||||
diff --git a/src/Finder/SearchItem.h b/src/Finder/SearchItem.h
|
||||
index 183845e..80b7ad4 100644
|
||||
--- a/src/Finder/SearchItem.h
|
||||
+++ b/src/Finder/SearchItem.h
|
||||
@@ -7,7 +7,7 @@
|
||||
class SearchItem : public BStringItem
|
||||
{
|
||||
private:
|
||||
- string m_file;
|
||||
+ std::string m_file;
|
||||
float m_weight;
|
||||
|
||||
public:
|
||||
diff --git a/src/Finder/makefile b/src/Finder/makefile
|
||||
index a7229d0..78d7fc0 100644
|
||||
--- a/src/Finder/makefile
|
||||
+++ b/src/Finder/makefile
|
||||
@@ -53,7 +53,7 @@ RSRCS=
|
||||
# naming scheme you need to specify the path to the library
|
||||
# and it's name
|
||||
# library: my_lib.a entry: my_lib.a or path/my_lib.a
|
||||
-LIBS= be stdc++.r4 sqlite3 layout
|
||||
+LIBS= be $(STDCPPLIBS) sqlite3 layout
|
||||
|
||||
# specify additional paths to directories following the standard
|
||||
# libXXX.so or libXXX.a naming scheme. You can specify full paths
|
||||
diff --git a/src/Indexer/makefile b/src/Indexer/makefile
|
||||
index 67c6ad7..5ec7b82 100644
|
||||
--- a/src/Indexer/makefile
|
||||
+++ b/src/Indexer/makefile
|
||||
@@ -54,7 +54,7 @@ RSRCS=
|
||||
# naming scheme you need to specify the path to the library
|
||||
# and it's name
|
||||
# library: my_lib.a entry: my_lib.a or path/my_lib.a
|
||||
-LIBS= be stdc++.r4 sqlite3
|
||||
+LIBS= be $(STDCPPLIBS) sqlite3
|
||||
|
||||
# specify additional paths to directories following the standard
|
||||
# libXXX.so or libXXX.a naming scheme. You can specify full paths
|
||||
diff --git a/src/common/SQLConnection.cpp b/src/common/SQLConnection.cpp
|
||||
index d9e3bac..2889ca4 100644
|
||||
--- a/src/common/SQLConnection.cpp
|
||||
+++ b/src/common/SQLConnection.cpp
|
||||
@@ -1,7 +1,10 @@
|
||||
#include "SQLConnection.h"
|
||||
|
||||
+#include <iostream>
|
||||
#include <stdio.h>
|
||||
|
||||
+
|
||||
+
|
||||
//#define DEBUG
|
||||
|
||||
#ifdef USE_SQLITE
|
||||
diff --git a/src/common/SQLConnection.h b/src/common/SQLConnection.h
|
||||
index 351cc12..3813078 100644
|
||||
--- a/src/common/SQLConnection.h
|
||||
+++ b/src/common/SQLConnection.h
|
||||
@@ -4,6 +4,8 @@
|
||||
#include <string>
|
||||
#include <OS.h>
|
||||
|
||||
+using namespace std;
|
||||
+
|
||||
#define USE_SQLITE
|
||||
//#define USE_POSTGRES
|
||||
|
||||
diff --git a/src/common/utils.cpp b/src/common/utils.cpp
|
||||
index 70423f6..4e131e3 100644
|
||||
--- a/src/common/utils.cpp
|
||||
+++ b/src/common/utils.cpp
|
||||
@@ -98,7 +98,7 @@ get_word( istream & i )
|
||||
transform(
|
||||
word.begin(), word.end(),
|
||||
word.begin(),
|
||||
- tolower
|
||||
+ ::tolower
|
||||
);
|
||||
|
||||
return stem( strip_specials( remove_duplicates(word) ) );
|
||||
--
|
||||
2.21.0
|
||||
|
||||
Reference in New Issue
Block a user