Import wordgrinder-0.7.2.

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 kn@
This commit is contained in:
bentley 2019-03-11 03:48:45 +00:00
parent c22b56783e
commit 019609845c
6 changed files with 117 additions and 0 deletions

View File

@ -0,0 +1,37 @@
# $OpenBSD: Makefile,v 1.1.1.1 2019/03/11 03:48:45 bentley Exp $
COMMENT = simple, Unicode-aware word processor on the console
GH_ACCOUNT = davidgiven
GH_PROJECT = wordgrinder
GH_TAGNAME = 0.7.2
CATEGORIES = editors
HOMEPAGE = https://cowlark.com/wordgrinder/
# MIT
PERMIT_PACKAGE_CDROM = Yes
WANTLIB += ${MODLUA_WANTLIB}
WANTLIB += X11 Xft c curses freetype m z
MODULES = lang/lua
MODLUA_VERSION = 5.3
BUILD_DEPENDS = devel/ninja
MAKE_FLAGS = CC="${CC}" \
CURSES_PACKAGE="--cflags={-I/usr/include} \
--libs={-L/usr/lib -lncurses}" \
LUA_PACKAGE=${MODLUA_DEP} \
XFT_PACKAGE=xft \
DESTDIR="${DESTDIR}" \
MANDIR="${PREFIX}/man" \
PREFIX="${PREFIX}" \
OBJDIR="${WRKBUILD}/wg-build"
USE_GMAKE = Yes
NO_TEST = Yes
.include <bsd.port.mk>

View File

@ -0,0 +1,2 @@
SHA256 (wordgrinder-0.7.2.tar.gz) = ThvGWUA/mEef6GGWVfkByMA+uHdDN0VItNIKQdMdHf8=
SIZE (wordgrinder-0.7.2.tar.gz) = 1882222

View File

@ -0,0 +1,48 @@
$OpenBSD: patch-build_lua,v 1.1.1.1 2019/03/11 03:48:45 bentley Exp $
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,12 +124,6 @@ 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 luapackage == "builtin" then
cflags[#cflags+1] = "-Isrc/c/emu/lua-5.1.5"
cflags[#cflags+1] = "-DLUA_USE_MKSTEMP"
@@ -405,9 +397,11 @@ if want_frontend("curses") then
end
if want_frontend("x11") then
emit("X11_CFLAGS = ", package_flags("freetype2", "--cflags"),
- " ", package_flags(XFT_PACKAGE, "--cflags"))
+ " ", package_flags(XFT_PACKAGE, "--cflags"), " ",
+ package_flags("x11", "--cflags"))
emit("X11_LDFLAGS = ", package_flags("freetype2", "--libs"),
- " ", package_flags(XFT_PACKAGE, "--libs"))
+ " ", package_flags(XFT_PACKAGE, "--libs"), " ",
+ package_flags("x11", "--libs"))
end
emit("LUA_INTERPRETER = ", LUA_INTERPRETER)
emit("WINDRES = ", WINDRES)

View File

@ -0,0 +1,14 @@
$OpenBSD: patch-src_c_arch_unix_x11_x11_h,v 1.1.1.1 2019/03/11 03:48:45 bentley Exp $
Index: src/c/arch/unix/x11/x11.h
--- src/c/arch/unix/x11/x11.h.orig
+++ src/c/arch/unix/x11/x11.h
@@ -7,7 +7,7 @@
#define X11_H
#include <X11/Xlib.h>
-#include <Xft/Xft.h>
+#include <X11/Xft/Xft.h>
#include "uthash.h"
#define MAX(x, y) (((x) > (y)) ? (x) : (y))

View File

@ -0,0 +1,10 @@
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.)

View File

@ -0,0 +1,6 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2019/03/11 03:48:45 bentley Exp $
@bin bin/wordgrinder
@bin bin/xwordgrinder
@man man/man1/wordgrinder.1
share/doc/wordgrinder/
share/doc/wordgrinder/README.wg