NEW: editors/wordgrinder

classic Classic list List threaded Threaded
10 messages Options
Reply | Threaded
Open this post in threaded view
|

NEW: editors/wordgrinder

Anthony J. Bentley-4
Hi,

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?

--
Anthony J. Bentley

wordgrinder.tar.gz (2K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: NEW: editors/wordgrinder

Anthony J. Bentley-4
On Wed, Apr 11, 2018 at 1:07 AM, Anthony J. Bentley <[hidden email]> 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?

--
Anthony J. Bentley

wordgrinder.tar.gz (2K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: NEW: editors/wordgrinder

Klemens Nanni-2
In reply to this post by Anthony J. Bentley-4
On Wed, Apr 11, 2018 at 01:07:36AM -0600, Anthony J. Bentley 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.)
What about stables assets?

https://cowlark.com/wordgrinder/ says

        If you are a Unix user (or, probably, OSX), you will want the
        source package called wordgrinder-X.X.tar.bz2.

but referes to GitHub with autogenerated .tar.gz only.

Besides that, `portcheck' warns about

        Fatal: Missing support for module lang/lua. (in editors/wordgrinder)

CFLAGS need some love; not sure how to handle the `buildstyle'
correctly, but either ways build.lua has:

        129     if buildstyle == "debug" then
        130         cflags[#cflags+1] = "-O0"
        131     else
        132         cflags[#cflags+1] = "-Os"
        134     end

CC is ignored, `make CC=foo build' runs fine.

Reply | Threaded
Open this post in threaded view
|

Re: NEW: editors/wordgrinder

Klemens Nanni-2
On Thu, Apr 26, 2018 at 12:41:11PM +0200, Klemens Nanni wrote:
> Besides that, `portcheck' warns about
>
> Fatal: Missing support for module lang/lua. (in editors/wordgrinder)
My bad due to having your port in mystuff/.

Reply | Threaded
Open this post in threaded view
|

Re: NEW: editors/wordgrinder

Anthony J. Bentley-4
In reply to this post by Anthony J. Bentley-4
On Thu, Apr 26, 2018 at 12:52 AM Anthony J. Bentley <[hidden email]> wrote:

> On Wed, Apr 11, 2018 at 1:07 AM, Anthony J. Bentley <[hidden email]> 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

wordgrinder.tar.gz (2K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: NEW: editors/wordgrinder

Solene Rapenne
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 <[hidden email]> wrote:
> > On Wed, Apr 11, 2018 at 1:07 AM, Anthony J. Bentley <[hidden email]> 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"

Reply | Threaded
Open this post in threaded view
|

Re: NEW: editors/wordgrinder

Anthony J. Bentley-4
Solene Rapenne writes:
> following patch removes the debug flag and optimization flags from the
> build.

Updated tarball attached.

wordgrinder.tar.gz (2K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: NEW: editors/wordgrinder

Klemens Nanni-2
Something creates files under /tmp and tries to execute them; spotted
because my /tmp/ MFS is mounted with `noexec'.

Is that expected/desired?

        $ make build
        [...]
        ===>  Building for wordgrinder-0.7.2
        /bin/sh: /tmp/wg-build/lua: Permission denied
        gmake: *** [Makefile:132: /tmp/wg-build/build.ninja] Error 1
        *** Error 2 in . (/usr/ports/infrastructure/mk/bsd.port.mk:2801 '/usr/ports/pobj/wordgrinder-0.7.2/.build_done')
        *** Error 1 in /usr/ports/editors/wordgrinder (/usr/ports/infrastructure/mk/bsd.port.mk:2467 'build')

Reply | Threaded
Open this post in threaded view
|

Re: NEW: editors/wordgrinder

Anthony J. Bentley-4
Klemens Nanni writes:

> Something creates files under /tmp and tries to execute them; spotted
> because my /tmp/ MFS is mounted with `noexec'.
>
> Is that expected/desired?
>
> $ make build
> [...]
> ===>  Building for wordgrinder-0.7.2
> /bin/sh: /tmp/wg-build/lua: Permission denied
> gmake: *** [Makefile:132: /tmp/wg-build/build.ninja] Error 1
> *** Error 2 in . (/usr/ports/infrastructure/mk/bsd.port.mk:2801 '/usr/p
> orts/pobj/wordgrinder-0.7.2/.build_done')
> *** Error 1 in /usr/ports/editors/wordgrinder (/usr/ports/infrastructur
> e/mk/bsd.port.mk:2467 'build')
Pretty weird. Attached tarball passes OBJDIR=${WRKBUILD}/wg-build in
MAKE_FLAGS to fix it.

--
Anthony J. Bentley

wordgrinder.tar.gz (2K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: NEW: editors/wordgrinder

Klemens Nanni-2
On Fri, Mar 08, 2019 at 06:45:55AM -0700, Anthony J. Bentley wrote:
> Pretty weird. Attached tarball passes OBJDIR=${WRKBUILD}/wg-build in
> MAKE_FLAGS to fix it.
Much better.

Builds and runs fine, port looks good.  I was able to quickly draft a
document and safe it.

Removing `-g' from build.lua (first two hunks of your patch) is not
needed, the port takes care of that already:

        ===>  Faking installation for wordgrinder-0.7.2
        [1/4] install -m 755 bin/xwordgrinder-lua53-x11-release-stripped /usr/ports/pobj/wordgrinder-0.7.2/fake-amd64/usr/local/bin/xwordgrinder
        [2/4] install -m 644 README.wg /usr/ports/pobj/wordgrinder-0.7.2/fake-amd64/usr/local/share/doc/wordgrinder/README.wg
        [3/4] install -m 755 bin/wordgrinder-lua53-curses-release-stripped /usr/ports/pobj/wordgrinder-0.7.2/fake-amd64/usr/local/bin/wordgrinder
        [4/4] install -m 644 bin/wordgrinder.1 /usr/ports/pobj/wordgrinder-0.7.2/fake-amd64/usr/local/man/man1/wordgrinder.1

In fact, having the unstripped version laying around without the need
for a DEBUG='-g' rebuild can be helpful, I think.

OK kn either ways