Ravenports generated: 08 Mar 2024 17:01
[ravenports.git] / bucket_19 / mg
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               mg
4 VERSION=                20230501
5 KEYWORDS=               editors
6 VARIANTS=               standard
7 SDESC[standard]=        Microscopic GNU Emacs clone
8 HOMEPAGE=               https://github.com/hboetes/mg
9 CONTACT=                nobody
10
11 DOWNLOAD_GROUPS=        main
12 SITES[main]=            GITHUB/hboetes:mg:20230501
13 DISTFILE[1]=            generated:main
14 DF_INDEX=               1
15 SPKGS[standard]=        single
16
17 OPTIONS_AVAILABLE=      none
18 OPTIONS_STANDARD=       none
19
20 B_DEPS[linux]=          libbsd:dev:standard
21 BR_DEPS[linux]=         libbsd:primary:standard
22
23 USES=                   cmake ncurses pkgconfig
24
25 LICENSE=                PUBDOM:single
26 LICENSE_FILE=           PUBDOM:{{WRKDIR}}/LICENSE
27 LICENSE_AWK=            PUBDOM:"^\#include"
28 LICENSE_SOURCE=         PUBDOM:{{WRKSRC}}/main.c
29 LICENSE_SCHEME=         solo
30
31 FPC_EQUIVALENT=         editors/mg
32
33 do-install:
34         ${INSTALL_PROGRAM} ${WRKDIR}/.build/mg ${STAGEDIR}${PREFIX}/bin
35         ${INSTALL_MAN} ${WRKSRC}/mg.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
36
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.
42
43
44 [FILE:105:distinfo]
45 e2878feca64067a0c524e456ffba68d8cb69bcdce0943d2f2b69cad06174462e       158315 hboetes-mg-20230501.tar.gz
46
47
48 [FILE:30:manifests/plist.single]
49 bin/mg
50 share/man/man1/mg.1.gz
51
52
53 [FILE:621:patches/patch-CMakeLists.txt]
54 --- CMakeLists.txt.orig 2023-10-25 12:33:00 UTC
55 +++ CMakeLists.txt
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}")
62  else()
63    set (CMAKE_C_FLAGS "-Wall -DREGEX ${LIBBSD_FLAGS} ${NCURSES_FLAGS} -L${NCURSES_LIBRARY_DIRS}")
64  endif()
65
66
67 [FILE:474:patches/patch-interpreter.c]
68 --- interpreter.c.orig  2023-05-01 15:27:50 UTC
69 +++ interpreter.c
70 @@ -591,7 +591,11 @@ founddef(char *defstr, int blkid, int ex
71                 return(dobeep_msgs("Variable/function name clash:", vnamep));
72  
73         if (!SLIST_EMPTY(&varhead)) {
74 +#ifdef __DragonFly__
75 +                SLIST_FOREACH_MUTABLE(v1, &varhead, entry, vt) {
76 +#else
77                 SLIST_FOREACH_SAFE(v1, &varhead, entry, vt) {
78 +#endif
79                         if (strcmp(vnamep, v1->v_name) == 0)
80                                 SLIST_REMOVE(&varhead, v1, varentry, entry);
81                 }
82
83
84 [FILE:440:patches/patch-mg.1]
85 --- mg.1.orig   2023-05-01 15:27:50 UTC
86 +++ mg.1
87 @@ -1163,15 +1163,13 @@ or
88  .Sq #
89  as the first character of a line.
90  .Sh FILES
91 -.Bl -tag -width /usr/share/doc/mg/tutorial -compact
92 +.Bl -tag -width ~/.mg-TERM -compact
93  .It Pa ~/.mg
94  normal startup file
95  .It Pa ~/.mg-TERM
96  terminal-specific startup file
97  .It Pa ~/.mg.d
98  alternative backup file location
99 -.It Pa /usr/share/doc/mg/tutorial
100 -concise tutorial
101  .El
102  .Sh SEE ALSO
103  .Xr ctags 1 ,
104