aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoradamw <adamw@FreeBSD.org>2014-06-20 14:56:21 +0800
committeradamw <adamw@FreeBSD.org>2014-06-20 14:56:21 +0800
commit3064d580a858f0de81f043eed54a609261accd97 (patch)
treea8dd2f1a0a2f8d8081ccdbc59a546e785b4bd0a0
parent15d4e8d57234e51bfd1532d8a1a0aa99158b7a57 (diff)
downloadfreebsd-ports-gnome-3064d580a858f0de81f043eed54a609261accd97.tar.gz
freebsd-ports-gnome-3064d580a858f0de81f043eed54a609261accd97.tar.zst
freebsd-ports-gnome-3064d580a858f0de81f043eed54a609261accd97.zip
Simplify by using OPTIONS helpers. Tag %%JAPANESE%% to
the Japanese manpages; PORTREVISION bump for the latter.
-rw-r--r--www/w3m/Makefile51
-rw-r--r--www/w3m/pkg-plist4
2 files changed, 19 insertions, 36 deletions
diff --git a/www/w3m/Makefile b/www/w3m/Makefile
index 071bb953f170..de66f400f71a 100644
--- a/www/w3m/Makefile
+++ b/www/w3m/Makefile
@@ -3,7 +3,7 @@
PORTNAME= w3m
PORTVERSION= 0.5.3
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES+= www ipv6
MASTER_SITES= SF/w3m/w3m/w3m-${PORTVERSION}
@@ -20,53 +20,40 @@ CONFLICTS?= ja-w3m-0.5.* ja-w3m-img-0.5.* w3m-img-0.5.*
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-gc=${LOCALBASE} \
ac_cv_path_PERL=${PERL}
+CONFIGURE_ENV= DEFS="-I${LOCALBASE}/include"
+
DOCS= FAQ.html HISTORY MANUAL.html README \
- README.dict README.func README.m17n STORY.html keymap.default \
- keymap.lynx menu.default menu.submenu
+ README.dict README.func README.img README.m17n STORY.html \
+ keymap.default keymap.lynx menu.default menu.submenu
+DOCS_JP= ${DOCS} README.SSL README.cookie README.keymap README.img \
+ README.mailcap README.menu README.migemo
OPTIONS_DEFINE= JAPANESE INLINE_IMAGE KEY_LYNX DOCS
JAPANESE_DESC= Japanese messages and migemo support
INLINE_IMAGE_DESC= Inline image support
KEY_LYNX_DESC= Keymap like lynx browser
+OPTIONS_SUB= yes
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MJAPANESE}
-USES+= gettext
-CONFIGURE_ARGS+= --enable-japanese=E --with-migemo=yes gt_cv_func_gnugettext1_libintl=yes
-DOCS_JP= ${DOCS} README.SSL README.cookie README.keymap README.mailcap \
- README.menu README.migemo
+JAPANESE_USES= gettext
+JAPANESE_CONFIGURE_ON= --enable-japanese=E --with-migemo=yes gt_cv_func_gnugettext1_libintl=yes
+JAPANESE_CONFIGURE_ENABLE= nls
-PLIST_SUB+= JAPANESE=""
-.else
-CONFIGURE_ARGS+= --disable-nls
-PLIST_SUB+= JAPANESE="@comment "
-.endif
+INLINE_IMAGE_USE= gnome=gtk20
+INLINE_IMAGE_CONFIGURE_WITH= imagelib=gtk2
+INLINE_IMAGE_CONFIGURE_ENABLE= image=fb,x11
-.if ${PORT_OPTIONS:MINLINE_IMAGE}
-USE_GNOME= gtk20
-CONFIGURE_ARGS+= --with-imagelib=gtk2 --enable-image=fb,x11
+KEY_LYNX_CONFIGURE_ENABLE= keymap=lynx
-DOCS+= README.img
-DOCS_JP+= README.img
-PLIST_SUB+= INLINE_IMAGE=""
+.include <bsd.port.options.mk>
+.if ${PORT_OPTIONS:MINLINE_IMAGE}
PKGMESSAGE= ${MASTERDIR}/pkg-message
.else
-CONFIGURE_ARGS+= --enable-image=no
-PLIST_SUB+= INLINE_IMAGE="@comment "
-
# Don't use pkg-message
PKGMESSAGE= ${NONEXISTENT}
.endif
-.if ${PORT_OPTIONS:MKEY_LYNX}
-CONFIGURE_ARGS+= --enable-keymap=lynx
-.endif
-
-CONFIGURE_ENV= DEFS="-I${LOCALBASE}/include"
-
post-patch:
@${REINPLACE_CMD} -e \
's|\`\(expr\) \(.*\) : \(.*\)`|`\1 \\( \2 : \3 \\)`|' \
@@ -76,20 +63,16 @@ post-patch:
-exec ${REINPLACE_CMD} -e 's|/usr/local|${PREFIX}|g' {} +
post-install:
-.if ${PORT_OPTIONS:MDOCS}
-.if ${PORT_OPTIONS:MJAPANESE}
@${MKDIR} ${STAGEDIR}${PREFIX}/share/doc/ja/w3m
@cd ${WRKSRC}/doc-jp; \
for i in ${DOCS_JP} ; do \
${INSTALL_DATA} $$i ${STAGEDIR}${PREFIX}/share/doc/ja/w3m/ ; \
done
-.endif
@cd ${WRKSRC}/doc; \
${MKDIR} ${STAGEDIR}${PREFIX}/share/doc/w3m/; \
for i in ${DOCS} ; do \
${INSTALL_DATA} $$i ${STAGEDIR}${PREFIX}/share/doc/w3m/ ; \
done
-.endif
@${INSTALL_MAN} ${WRKSRC}/scripts/w3mman/w3mman.1 ${STAGEDIR}${PREFIX}/man/ja/man1
.include <bsd.port.mk>
diff --git a/www/w3m/pkg-plist b/www/w3m/pkg-plist
index 9c9840c40eaa..84b695db3961 100644
--- a/www/w3m/pkg-plist
+++ b/www/w3m/pkg-plist
@@ -10,8 +10,8 @@ libexec/w3m/cgi-bin/w3mhelperpanel
libexec/w3m/inflate
libexec/w3m/xface2xpm
%%INLINE_IMAGE%%libexec/w3m/w3mimgdisplay
-man/ja/man1/w3m.1.gz
-man/ja/man1/w3mman.1.gz
+%%JAPANESE%%man/ja/man1/w3m.1.gz
+%%JAPANESE%%man/ja/man1/w3mman.1.gz
man/man1/w3m.1.gz
man/man1/w3mman.1.gz
%%PORTDOCS%%%%JAPANESE%%share/doc/ja/w3m/FAQ.html