blob: d70322642409eb7f207c4936c9ed1f9acf4da0bd (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
PORTNAME= emacs-w3m
PORTVERSION= 1.4.632.b.${SNAPDATE}
PORTREVISION= 1
CATEGORIES= www elisp
PKGNAMESUFFIX= ${EMACS_PKGNAMESUFFIX}
MAINTAINER= nobutaka@FreeBSD.org
COMMENT= Simple front-end to w3m for emacs
WWW= http://emacs-w3m.namazu.org/
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
BUILD_DEPENDS= w3m:www/w3m
RUN_DEPENDS= w3m:www/w3m
USES= autoreconf emacs tar:xz
USE_GITHUB= yes
GH_TAGNAME= 343f4f8
ALL_TARGET= default
INSTALL_TARGET= install install-icons
NO_ARCH= yes
SNAPDATE= 20220916
MAKE_JOBS_UNSAFE= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-emacs=${EMACS_CMD} \
--with-lispdir=${PREFIX}/${EMACS_VERSION_SITE_LISPDIR}/w3m \
--with-icondir=${PREFIX}/${EMACS_LIBDIR}/etc/w3m/icons \
--without-compress-install
INFO= emacs-w3m-ja emacs-w3m
PORTDOCS= README*
OPTIONS_DEFINE= DOCS OCTET_VIEWER SHIMBUN
OPTIONS_DEFAULT= OCTET_VIEWER SHIMBUN
OPTIONS_SUB= yes
OCTET_VIEWER_DESC= Octet stream viewer support
SHIMBUN_DESC= Build and/or install Shimbun
SHIMBUN_EXTRA_PATCHES_OFF= ${PATCHDIR}/extra-patch-Makefile.in
SHIMBUN_BUILD_DEPENDS= flim${EMACS_PKGNAMESUFFIX}>0:editors/flim@${EMACS_FLAVOR}
SHIMBUN_RUN_DEPENDS= flim${EMACS_PKGNAMESUFFIX}>0:editors/flim@${EMACS_FLAVOR}
OCTET_VIEWER_RUN_DEPENDS=\
semi${EMACS_PKGNAMESUFFIX}>0:editors/semi@${EMACS_FLAVOR} \
wvHtml:textproc/wv \
xlhtml:textproc/xlhtml
.include <bsd.port.pre.mk>
.if ${EMACS_MAJOR_VER} == 28
PLIST_SUB+= EMACS28=""
.else
PLIST_SUB+= EMACS28="@comment "
.endif
post-patch:
@${MV} ${WRKSRC}/aclocal.m4 ${WRKSRC}/acinclude.m4
post-install-DOCS-on:
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/${PORTDOCS} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.post.mk>
|