We can do without patches.

This commit is contained in:
ajacoutot 2011-07-14 13:25:15 +00:00
parent 53178bcb2d
commit 48b8770108
4 changed files with 7 additions and 58 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.1.1.1 2011/07/14 09:08:30 jasper Exp $
# $OpenBSD: Makefile,v 1.2 2011/07/14 13:25:15 ajacoutot Exp $
SHARED_ONLY= Yes
@ -7,6 +7,8 @@ COMMENT= extra plugins for Anjuta IDE
GNOME_PROJECT= anjuta-extras
GNOME_VERSION= 3.1.3
REVISION= 0
CATEGORIES= devel
HOMEPAGE= http://www.anjuta.org/
@ -31,6 +33,10 @@ MODULES= devel/dconf \
devel/gettext \
x11/gnome
# plugins/scintilla/{FilePath.cxx,aneditor-priv.h,aneditor.cxx}
# https://bugzilla.gnome.org/show_bug.cgi?id=631157
CFLAGS += -Dunix -DMAX_PATH=PATH_MAX
LIB_DEPENDS= x11/gnome/anjuta>=3.1.3
LIBTOOL_FLAGS= --tag=disable-static

View File

@ -1,29 +0,0 @@
$OpenBSD: patch-plugins_scintilla_FilePath_cxx,v 1.1.1.1 2011/07/14 09:08:30 jasper Exp $
--- plugins/scintilla/FilePath.cxx.orig Mon Apr 19 19:19:17 2010
+++ plugins/scintilla/FilePath.cxx Sat Oct 2 10:07:55 2010
@@ -19,11 +19,15 @@
#include <dirent.h>
#include <errno.h>
+#ifndef MAX_PATH
+#define MAX_PATH 1024
+#endif
+
#include "SString.h"
#include "PropSet.h"
#include "FilePath.h"
-#ifdef unix
+#ifdef __unix__
const char pathSepString[] = "/";
const char pathSepChar = '/';
const char listSepString[] = ":";
@@ -110,7 +114,7 @@ bool FilePath::IsUntitled() const {
bool FilePath::IsAbsolute() const {
if (fileName.length() == 0)
return false;
-#ifdef unix
+#ifdef __unix__
if (fileName[0] == '/')
return true;
#endif

View File

@ -1,14 +0,0 @@
$OpenBSD: patch-plugins_scintilla_aneditor-priv_h,v 1.1.1.1 2011/07/14 09:08:30 jasper Exp $
--- plugins/scintilla/aneditor-priv.h.orig Thu Jul 14 09:33:22 2011
+++ plugins/scintilla/aneditor-priv.h Thu Jul 14 09:33:37 2011
@@ -55,6 +55,10 @@
#include <string>
#include <memory>
+#ifndef MAX_PATH
+#define MAX_PATH 1024
+#endif
+
using namespace std;
// #include "debugger.h"

View File

@ -1,14 +0,0 @@
$OpenBSD: patch-plugins_scintilla_aneditor_cxx,v 1.1.1.1 2011/07/14 09:08:30 jasper Exp $
--- plugins/scintilla/aneditor.cxx.orig Fri Apr 23 20:15:39 2010
+++ plugins/scintilla/aneditor.cxx Fri Apr 23 20:16:22 2010
@@ -27,6 +27,10 @@
#include <libanjuta/anjuta-debug.h>
+#ifndef MAX_PATH
+#define MAX_PATH 1024
+#endif
+
static void lowerCaseString(char *s);
static AnEditor * aneditor_get(AnEditorID id);