mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 05:10:05 +02:00
Add recipe for Microbe
The klang plugin is disabled as we do not have python clang bindings.
This commit is contained in:
42
haiku-apps/microbe/microbe-20130728.recipe
Normal file
42
haiku-apps/microbe/microbe-20130728.recipe
Normal file
@@ -0,0 +1,42 @@
|
||||
SUMMARY="Source code editor"
|
||||
DESCRIPTION="
|
||||
Microbe is a minimalistic programmers text and source code editor.
|
||||
"
|
||||
HOMEPAGE="https://github.com/aldeck/microbe"
|
||||
SRC_URI="git://github.com/aldeck/microbe#41f6ce8a5d96c96af9fb17eda1b466a5e9e0bfb1"
|
||||
REVISION="1"
|
||||
LICENSE="MIT"
|
||||
COPYRIGHT="2011 Alexandre Deckner"
|
||||
|
||||
ARCHITECTURES="x86_gcc2 x86 x86_64"
|
||||
|
||||
PROVIDES="
|
||||
microbe = $portVersion
|
||||
app:Microbe = $portVersion
|
||||
"
|
||||
|
||||
REQUIRES="
|
||||
haiku >= $haikuVersion
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku_devel >= $haikuVersion
|
||||
makefile_engine
|
||||
cmd:mkdepend
|
||||
cmd:make
|
||||
cmd:g++
|
||||
"
|
||||
|
||||
PATCHES="microbe-20130728.patch"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
make $jobArgs OBJ_DIR=objects
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
mkdir -p $appsDir
|
||||
cp objects/Microbe $appsDir/Microbe
|
||||
addAppDeskbarSymlink $appsDir/Microbe
|
||||
}
|
||||
75
haiku-apps/microbe/patches/microbe-20130728.patch
Normal file
75
haiku-apps/microbe/patches/microbe-20130728.patch
Normal file
@@ -0,0 +1,75 @@
|
||||
diff --git a/MainView.cpp b/MainView.cpp
|
||||
index 098027d..dc122bf 100644
|
||||
--- a/MainView.cpp
|
||||
+++ b/MainView.cpp
|
||||
@@ -18,8 +18,7 @@ MainView::MainView(BRect frame)
|
||||
:
|
||||
//BTextView("MainView")
|
||||
BTextView(frame, "textview", frame,
|
||||
- B_FOLLOW_ALL, B_FRAME_EVENTS | B_WILL_DRAW),
|
||||
- fPythonPlugin(this, "klong")
|
||||
+ B_FOLLOW_ALL, B_FRAME_EVENTS | B_WILL_DRAW)
|
||||
{
|
||||
fHighlighter = new Highlighter(this);
|
||||
SetStylable(true);
|
||||
@@ -100,7 +99,6 @@ void
|
||||
MainView::DeleteText(int32 start, int32 finish)
|
||||
{
|
||||
BTextView::DeleteText(start, finish);
|
||||
- fPythonPlugin.Func1(Text()/*text*/);
|
||||
}
|
||||
|
||||
|
||||
@@ -113,6 +111,5 @@ MainView::InsertText(const char *text, int32 length, int32 offset,
|
||||
|
||||
BTextView::InsertText(text, length, offset, runs);
|
||||
bigtime_t start = system_time();
|
||||
- fPythonPlugin.Func1(Text()/*text*/);
|
||||
printf("script time: %lims\n", (system_time() - start) / 1000);
|
||||
}
|
||||
diff --git a/MainView.h b/MainView.h
|
||||
index f1c456f..e705a27 100644
|
||||
--- a/MainView.h
|
||||
+++ b/MainView.h
|
||||
@@ -9,8 +9,6 @@
|
||||
|
||||
#include <TextView.h>
|
||||
|
||||
-#include "PythonPlugin.h"
|
||||
-
|
||||
#include <vector>
|
||||
|
||||
|
||||
@@ -40,7 +38,6 @@ public:
|
||||
|
||||
private:
|
||||
Highlighter* fHighlighter;
|
||||
- PythonPlugin fPythonPlugin;
|
||||
};
|
||||
|
||||
|
||||
diff --git a/makefile b/makefile
|
||||
index e2f41a7..1ac7063 100644
|
||||
--- a/makefile
|
||||
+++ b/makefile
|
||||
@@ -2,17 +2,16 @@ TYPE = APP
|
||||
|
||||
NAME = Microbe
|
||||
|
||||
-SYSTEM_INCLUDE_PATHS = /boot/common/include/python2.6
|
||||
+SYSTEM_INCLUDE_PATHS = /boot/system/develop/headers/python2.7
|
||||
|
||||
SRCS = App.cpp
|
||||
SRCS += Highlighter.cpp
|
||||
SRCS += MainWindow.cpp
|
||||
SRCS += MainView.cpp
|
||||
-SRCS += PythonPlugin.cpp
|
||||
SRCS += TextRange.cpp
|
||||
-LIBS = be python2.6 tracker #stdc++
|
||||
+LIBS = be tracker stdc++
|
||||
|
||||
RDEFS = Microbe.rdef
|
||||
|
||||
# include the makefile-engine
|
||||
-include $(BUILDHOME)/etc/makefile-engine
|
||||
+include /boot/system/develop/etc/makefile-engine
|
||||
Reference in New Issue
Block a user