Friday, March 08, 2019

Re: NEW: editors/wordgrinder

On Fri, Mar 08, 2019 at 02:02:44AM -0700, Anthony J. Bentley wrote:
> On Thu, Apr 26, 2018 at 12:52 AM Anthony J. Bentley <anthony@anjbe.name> wrote:
> > On Wed, Apr 11, 2018 at 1:07 AM, Anthony J. Bentley <anthony@anjbe.name> wrote:
> > > WordGrinder is a simple, Unicode-aware word processor that runs on the
> > > console. It's designed to get the hell out of your way and let you write;
> > > it does very little, but what it does it does well.
> > >
> > > It supports basic paragraph styles, basic character styles, basic screen
> > > markup, a menu interface that means you don't have to remember complex
> > > key sequences, HTML import and export, and some other useful features.
> > >
> > > WordGrinder does not require X. It runs in a terminal. (But there's a
> > > version which uses X if you want it.)
> > >
> > >
> > > ok?
> >
> > Ping?
>
> There was a new release upstream. Here's an updated tarball (that also
> respects CC/CFLAGS).
>
> ok?
>
> --
> Anthony J. Bentley

following patch removes the debug flag and optimization flags from the
build.

$OpenBSD$

Index: build.lua
--- build.lua.orig
+++ build.lua
@@ -90,7 +90,6 @@ function build_wordgrinder_binary(exe, luapackage, fro

local cflags = {
"$CFLAGS",
- "-g",
"-DVERSION='\""..VERSION.."\"'",
"-DFILEFORMAT="..FILEFORMAT,
"-DNOUNCRYPT",
@@ -107,7 +106,6 @@ function build_wordgrinder_binary(exe, luapackage, fro
"$LDFLAGS",
"-lz",
"-lm",
- "-g",
}
local objs = {}

@@ -126,11 +124,11 @@ function build_wordgrinder_binary(exe, luapackage, fro
cflags[#cflags+1] = "-DEMULATED_WCWIDTH"
end

- if buildstyle == "debug" then
- cflags[#cflags+1] = "-O0"
- else
- cflags[#cflags+1] = "-Os"
- end
+ --if buildstyle == "debug" then
+ -- cflags[#cflags+1] = "-O0"
+ --else
+ -- cflags[#cflags+1] = "-Os"
+ --end

if luapackage == "builtin" then
cflags[#cflags+1] = "-Isrc/c/emu/lua-5.1.5"

No comments:

Post a Comment