aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsunpoet <sunpoet@FreeBSD.org>2013-10-10 16:57:13 +0800
committersunpoet <sunpoet@FreeBSD.org>2013-10-10 16:57:13 +0800
commitf97f013eeb020a917839466b59afc13bac701224 (patch)
treeee7e8393488637b653c05dd578fce4b18503f925
parent902420ee8229eb33cea98d641114dcd341929685 (diff)
downloadfreebsd-ports-gnome-f97f013eeb020a917839466b59afc13bac701224.tar.gz
freebsd-ports-gnome-f97f013eeb020a917839466b59afc13bac701224.tar.zst
freebsd-ports-gnome-f97f013eeb020a917839466b59afc13bac701224.zip
- Convert to new OPTIONS helper
- Support STAGEDIR
-rw-r--r--textproc/asciidoc/Makefile14
-rw-r--r--textproc/asciidoc/pkg-plist2
2 files changed, 8 insertions, 8 deletions
diff --git a/textproc/asciidoc/Makefile b/textproc/asciidoc/Makefile
index e35b15fdc1fd..61e5c0686d13 100644
--- a/textproc/asciidoc/Makefile
+++ b/textproc/asciidoc/Makefile
@@ -17,14 +17,13 @@ RUN_DEPENDS= python2:${PORTSDIR}/lang/python2
OPTIONS_DEFINE= VIM
OPTIONS_DEFAULT=VIM
+OPTIONS_SUB= yes
VIM_DESC= Install Vim ftdetect & syntax files
GNU_CONFIGURE= yes
USE_PYTHON= -2.7
USES= gmake
-MAN1= a2x.1 asciidoc.1
-
CONF_FILES= asciidoc.conf docbook45.conf \
filters/code/code-filter.conf \
filters/graphviz/graphviz-filter.conf \
@@ -38,15 +37,14 @@ CONF_FILES= asciidoc.conf docbook45.conf \
latex.conf slidy.conf text.conf wordpress.conf \
xhtml11.conf xhtml11-quirks.conf
-NO_STAGE= yes
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MVIM}
MAKE_ENV+= vimdir=${PREFIX}/share/vim/${VIM_DATADIR}
-PLIST_SUB+= VIM="" VIM_DATADIR=${VIM_DATADIR}
+PLIST_SUB+= VIM_DATADIR=${VIM_DATADIR}
VIM__DATADIR!= ${MAKE} -C ../../editors/vim/ -V _DATADIR
.else
-PLIST_SUB+= VIM="@comment " VIM_DATADIR=""
+PLIST_SUB+= VIM_DATADIR=""
.endif
post-patch:
@@ -59,13 +57,13 @@ post-patch:
pre-install:
.if ${PORT_OPTIONS:MVIM}
- @${MKDIR} ${PREFIX}/share/vim/${VIM_DATADIR}/
+ @${MKDIR} ${STAGEDIR}${PREFIX}/share/vim/${VIM_DATADIR}/
.endif
post-install:
.for conf_file in ${CONF_FILES}
- @if [ ! -f ${ETCDIR}/${conf_file} ]; then \
- ${CP} -p ${ETCDIR}/${conf_file}.sample ${ETCDIR}/${conf_file} ; \
+ @if [ ! -f ${STAGEDIR}${ETCDIR}/${conf_file} ]; then \
+ ${CP} -p ${STAGEDIR}${ETCDIR}/${conf_file}.sample ${STAGEDIR}${ETCDIR}/${conf_file} ; \
fi
.endfor
diff --git a/textproc/asciidoc/pkg-plist b/textproc/asciidoc/pkg-plist
index 7abfdc6b3add..549ebfa9b5e7 100644
--- a/textproc/asciidoc/pkg-plist
+++ b/textproc/asciidoc/pkg-plist
@@ -136,6 +136,8 @@ bin/asciidoc.py
@unexec if cmp -s %D/%%ETCDIR%%/xhtml11-quirks.conf.sample %D/%%ETCDIR%%/xhtml11-quirks.conf; then rm -f %D/%%ETCDIR%%/xhtml11-quirks.conf; fi
%%ETCDIR%%/xhtml11-quirks.conf.sample
@exec if [ ! -f %D/%%ETCDIR%%/xhtml11-quirks.conf ] ; then cp -p %D/%F %B/xhtml11-quirks.conf; fi
+man/man1/a2x.1.gz
+man/man1/asciidoc.1.gz
%%VIM%%%%VIM_DATADIR%%share/vim/ftdetect/asciidoc_filetype.vim
%%VIM%%%%VIM_DATADIR%%share/vim/syntax/asciidoc.vim
%%VIM%%@dirrmtry share/vim/%%VIM_DATADIR%%/syntax