View | Details | Raw Unified | Return to bug 235456
Collapse All | Expand All

(-)mh/Makefile (-1 / +13 lines)
Lines 3-9 Link Here
3
3
4
PORTNAME=	mh
4
PORTNAME=	mh
5
PORTVERSION=	${VERSION}.j${JP_VERSION}
5
PORTVERSION=	${VERSION}.j${JP_VERSION}
6
PORTREVISION=	3
6
PORTREVISION=	4
7
CATEGORIES=	japanese mail
7
CATEGORIES=	japanese mail
8
MASTER_SITES=	ftp://ftp.laic.u-hyogo.ac.jp/pub/net/mh/ \
8
MASTER_SITES=	ftp://ftp.laic.u-hyogo.ac.jp/pub/net/mh/ \
9
		http://mirror.amdmi3.ru/distfiles/
9
		http://mirror.amdmi3.ru/distfiles/
Lines 37-42 Link Here
37
37
38
post-patch:
38
post-patch:
39
	${REINPLACE_CMD} -e "s/-O /${CFLAGS} /g" ${WRKSRC}/configure
39
	${REINPLACE_CMD} -e "s/-O /${CFLAGS} /g" ${WRKSRC}/configure
40
.for i in comp dist forw mh-mail mhl ja-comp ja-dist ja-forw ja-mh-mail ja-mhl
41
	@(cd ${WRKSRC}/conf/doc && \
42
	${AWK} '{ \
43
	if (/^\.so/) { \
44
		ifile="../../support/general" substr($$2, index($$2, "/")); \
45
		while((getline l < ifile > 0)) \
46
			print l; \
47
		close(ifile); \
48
	} else \
49
		print; \
50
	}' ${i}.rf > ${i}.tmp && ${MV} ${i}.tmp ${i}.rf)
51
.endfor
40
52
41
post-install:
53
post-install:
42
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/*
54
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/*
(-)mh/files/patch-conf_doc_me2man.sed (+10 lines)
Line 0 Link Here
1
--- conf/doc/me2man.sed.orig	1993-12-01 13:00:17.000000000 +0900
2
+++ conf/doc/me2man.sed	2018-12-03 23:34:05.957872000 +0900
3
@@ -8,3 +8,7 @@
4
 /^\.DE$/c\
5
 .in -.5i\
6
 .SH DESCRIPTION
7
+## replace delimiter and padding character used with .fc macro
8
+s/^^\(.*\)~^\(.*\)$/\1	\2/
9
+## "\ " and "\0" losts the whitespace with mandoc
10
+s/\\[ 0]/ /g
(-)mh/files/patch-conf_doc_tmac.h (+86 lines)
Line 0 Link Here
1
--- conf/doc/tmac.h.orig	1993-12-01 13:00:20.000000000 +0900
2
+++ conf/doc/tmac.h	2018-12-03 23:16:59.719304000 +0900
3
@@ -3,62 +3,46 @@
4
 .\"    Try to keep only one copy of the documentation around
5
 .\"    by re-defining macros and so forth.
6
 .\"
7
-.fc ^ ~
8
 .\"    I pity the fool who tampers with the next line...
9
 .ds ZZ -man
10
-.de SC					\" Title section
11
-.TH \\$1 \\$2 @(MHCENTERFOOT) @(MHLEFTFOOT)
12
-..
13
-.de NA					\" Name section
14
-.SH NAME
15
-..
16
-.de SY					\" Synopsis section
17
-.SH SYNOPSIS
18
-.in +.5i
19
-.ti -.5i
20
-..
21
-.de DE					\" Description section
22
-.in -.5i
23
-.SH DESCRIPTION
24
-..
25
-.de Fi					\" Files section
26
+.de Fi
27
 .SH FILES
28
 .nf
29
 .ta \w'@(MHETCPATH)/ExtraBigFileName  'u
30
 ..
31
-.de Pr					\" Profile section
32
-.SH "PROFILE\ COMPONENTS"
33
+.de Pr
34
+.SH "PROFILE COMPONENTS"
35
 .nf
36
 .ta 2.4i
37
 .ta \w'ExtraBigProfileName  'u
38
 ..
39
-.de Ps					\" Profile next
40
+.de Ps
41
 .br
42
 ..
43
-.de Sa					\" See Also section
44
+.de Sa
45
 .fi
46
-.SH "SEE\ ALSO"
47
+.SH "SEE ALSO"
48
 ..
49
-.de De					\" Defaults section
50
+.de De
51
 .SH "DEFAULTS"
52
 .nf
53
 ..
54
-.de Ds					\" Defaults next
55
+.de Ds
56
 .br
57
 ..
58
-.de Co					\" Context section
59
+.de Co
60
 .fi
61
 .SH CONTEXT
62
 ..
63
-.de Hh					\" Hints section
64
+.de Hh
65
 .fi
66
 .SH "HELPFUL HINTS"
67
 ..
68
-.de Hi					\" History section
69
+.de Hi
70
 .fi
71
 .SH HISTORY
72
 ..
73
-.de Bu					\" Bugs section
74
+.de Bu
75
 .fi
76
 .SH BUGS
77
 ..
78
@@ -75,3 +59,8 @@
79
 .de re
80
 .ta 0.5i +0.5i +0.5i +0.5i +0.5i +0.5i +0.5i +0.5i +0.5i +0.5i +0.5i +0.5i +0.5i +0.5i +0.5i
81
 ..
82
+.\" This defines appropriate quote strings for nroff and troff
83
+.ds lq \&"
84
+.ds rq \&"
85
+.if t .ds lq ``
86
+.if t .ds rq ''
(-)mh/files/patch-conf_makefiles_doc (+11 lines)
Line 0 Link Here
1
--- conf/makefiles/doc.orig	1999-02-09 20:30:00.000000000 +0900
2
+++ conf/makefiles/doc	2018-12-02 22:50:27.133265000 +0900
3
@@ -239,7 +239,7 @@
4
 
5
 .me.doc:;	nroff -Tlpr -me $< > $@
6
 
7
-.me.man:;	cat tmac.me $< | sed -f me2man.sed @(MHCATMAN) > $@
8
+.me.man:;	cat tmac.h $< | sed -f me2man.sed @(MHCATMAN) > $@
9
 
10
 .cat.imp:;	catimp -i $@ $<
11
 

Return to bug 235456