1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
7 SDESC[standard]= Microscopic GNU Emacs clone
8 HOMEPAGE= https://github.com/hboetes/mg
12 SITES[main]= GITHUB/hboetes:mg:20230501
13 DISTFILE[1]= generated:main
15 SPKGS[standard]= single
17 OPTIONS_AVAILABLE= none
18 OPTIONS_STANDARD= none
20 B_DEPS[linux]= libbsd:dev:standard
21 BR_DEPS[linux]= libbsd:primary:standard
23 USES= cmake ncurses pkgconfig
25 LICENSE= PUBDOM:single
26 LICENSE_FILE= PUBDOM:{{WRKDIR}}/LICENSE
27 LICENSE_AWK= PUBDOM:"^\#include"
28 LICENSE_SOURCE= PUBDOM:{{WRKSRC}}/main.c
31 FPC_EQUIVALENT= editors/mg
34 ${INSTALL_PROGRAM} ${WRKDIR}/.build/mg ${STAGEDIR}${PREFIX}/bin
35 ${INSTALL_MAN} ${WRKSRC}/mg.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
37 [FILE:232:descriptions/desc.single]
38 Mg is a small, fast, portable, and free (public domain) Emacs-like
39 editor maintained by the OpenBSD Project. It is intended for people
40 who can't, or don't want to, run the real GNU Emacs, or are not
41 familiar with the vi(1) editor.
45 e2878feca64067a0c524e456ffba68d8cb69bcdce0943d2f2b69cad06174462e 158315 hboetes-mg-20230501.tar.gz
48 [FILE:30:manifests/plist.single]
50 share/man/man1/mg.1.gz
53 [FILE:621:patches/patch-CMakeLists.txt]
54 --- CMakeLists.txt.orig 2023-10-25 12:33:00 UTC
56 @@ -22,7 +22,7 @@ if(CMAKE_SYSTEM_NAME MATCHES "Linux")
57 link_directories (${BSD_LIBRARY_DIRS})
58 string (REPLACE ";" " " LIBBSD_FLAGS "${BSD_CFLAGS}")
59 target_link_libraries (mg ${BSD_LIBRARIES})
60 - set (CMAKE_C_FLAGS "-Wall -DREGEX -D_GNU_SOURCE ${LIBBSD_FLAGS} ${NCURSES_FLAGS} -L${NCURSES_LIBRARY_DIRS}")
61 + set (CMAKE_C_FLAGS "-Wall -DREGEX -D_GNU_SOURCE -DHAVE_PTY_H ${LIBBSD_FLAGS} ${NCURSES_FLAGS} -L${NCURSES_LIBRARY_DIRS}")
63 set (CMAKE_C_FLAGS "-Wall -DREGEX ${LIBBSD_FLAGS} ${NCURSES_FLAGS} -L${NCURSES_LIBRARY_DIRS}")
67 [FILE:474:patches/patch-interpreter.c]
68 --- interpreter.c.orig 2023-05-01 15:27:50 UTC
70 @@ -591,7 +591,11 @@ founddef(char *defstr, int blkid, int ex
71 return(dobeep_msgs("Variable/function name clash:", vnamep));
73 if (!SLIST_EMPTY(&varhead)) {
75 + SLIST_FOREACH_MUTABLE(v1, &varhead, entry, vt) {
77 SLIST_FOREACH_SAFE(v1, &varhead, entry, vt) {
79 if (strcmp(vnamep, v1->v_name) == 0)
80 SLIST_REMOVE(&varhead, v1, varentry, entry);
84 [FILE:440:patches/patch-mg.1]
85 --- mg.1.orig 2023-05-01 15:27:50 UTC
87 @@ -1163,15 +1163,13 @@ or
89 as the first character of a line.
91 -.Bl -tag -width /usr/share/doc/mg/tutorial -compact
92 +.Bl -tag -width ~/.mg-TERM -compact
96 terminal-specific startup file
98 alternative backup file location
99 -.It Pa /usr/share/doc/mg/tutorial