aboutsummaryrefslogtreecommitdiffstats
path: root/japanese/less
diff options
context:
space:
mode:
authorhrs <hrs@FreeBSD.org>2013-05-06 00:12:13 +0800
committerhrs <hrs@FreeBSD.org>2013-05-06 00:12:13 +0800
commit9d003238b2588807c9165b8d8de6e34ff806eca9 (patch)
tree6824ae66ac7f3757e586e27a0a20dd60154a7245 /japanese/less
parenta7293a2ec74dd6a5473f8ee82b9bb88c3e813d64 (diff)
downloadfreebsd-ports-gnome-9d003238b2588807c9165b8d8de6e34ff806eca9.tar.gz
freebsd-ports-gnome-9d003238b2588807c9165b8d8de6e34ff806eca9.tar.zst
freebsd-ports-gnome-9d003238b2588807c9165b8d8de6e34ff806eca9.zip
Use OPTIONS_DEFINE and add style clean-ups.
Diffstat (limited to 'japanese/less')
-rw-r--r--japanese/less/Makefile21
-rw-r--r--japanese/less/pkg-plist4
2 files changed, 13 insertions, 12 deletions
diff --git a/japanese/less/Makefile b/japanese/less/Makefile
index f49868ffe611..6355e8115686 100644
--- a/japanese/less/Makefile
+++ b/japanese/less/Makefile
@@ -1,12 +1,12 @@
# Created by: Nobuhiro Yasutomi <nobu@psrc.isac.co.jp>
# $FreeBSD$
-PORTNAME= less+iso
+PORTNAME= less
PORTVERSION= 382.262
PORTREVISION= 3
CATEGORIES= japanese
-MASTER_SITES= ${MASTER_SITE_LOCAL}
-MASTER_SITE_SUBDIR= nork
+MASTER_SITES= LOCAL/nork
+PKGNAMESUFFIX= +iso
DISTNAME= less-${PORTVERSION:R}
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
regex_cs-lwp9k.shar.gz
@@ -27,13 +27,18 @@ COMMENT= Less + zcat + ISO-2022 + UTF-8 - a pager similar to more and pg
LICENSE= GPLv2
-MAKE_JOBS_SAFE= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-cs-regex
-MAN1= jless.1 jlesskey.1
-DOCSDIR= ${PREFIX}/share/doc/less
+MAKE_JOBS_SAFE= yes
PORTDOCS= README.iso README.iso.jp README.lesw.euc \
README.regex README.regex.jp README.ext.jp
+PLIST_FILES= bin/jless bin/jlesskey bin/jlessecho
+
+MAN1= jless.1 jlesskey.1
+
+OPTIONS_DEFINE= DOCS
+
+.include <bsd.port.options.mk>
post-extract:
cd ${WRKDIR} && \
@@ -42,8 +47,8 @@ post-extract:
README.lesw.euc ${WRKSRC}
post-install:
-.if !defined(NOPORTDOCS)
- ${MKDIR} ${DOCSDIR}
+.if ${PORT_OPTIONS:MDOCS}
+ @${MKDIR} ${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
.endif
diff --git a/japanese/less/pkg-plist b/japanese/less/pkg-plist
deleted file mode 100644
index 2b272cc6f595..000000000000
--- a/japanese/less/pkg-plist
+++ /dev/null
@@ -1,4 +0,0 @@
-@comment $FreeBSD$
-bin/jless
-bin/jlesskey
-bin/jlessecho