summaryrefslogtreecommitdiff
path: root/editors/ooodict-all
diff options
context:
space:
mode:
authorMartin Blapp <mbr@FreeBSD.org>2002-08-12 21:51:03 +0000
committerMartin Blapp <mbr@FreeBSD.org>2002-08-12 21:51:03 +0000
commit051fbbcde2b52fea04dcd66bb6c4fb02835d1ebb (patch)
treedba1e6dd5502fcf70a8a01820f8fbb68a4320707 /editors/ooodict-all
parentSynchronize with games/nethack34. (diff)
Respect %D for PLIST creation.
Remove accidently comittted # for dependency.
Notes
Notes: svn path=/head/; revision=64453
Diffstat (limited to 'editors/ooodict-all')
-rw-r--r--editors/ooodict-all/Makefile16
1 files changed, 9 insertions, 7 deletions
diff --git a/editors/ooodict-all/Makefile b/editors/ooodict-all/Makefile
index 8a3f952efa35..145559f80ffa 100644
--- a/editors/ooodict-all/Makefile
+++ b/editors/ooodict-all/Makefile
@@ -36,7 +36,9 @@ INSTALLATION_BASEDIR= OpenOffice.org1.0
DIST_SUBDIR= openoffice
DICT_DIR= ${INSTALLATION_BASEDIR}/share/dict/ooo
DICT_PATH= ${LOCALBASE}/${DICT_DIR}
-DICT_LIST= ${DICT_PATH}/dictionary.lst
+DICT_LIST_INST= ${DICT_PATH}/dictionary.lst
+DICT_PATH_PLIST= "%D/${DICT_DIR}"
+DICT_LIST= ${DICT_PATH_PLIST}/dictionary.lst
.if defined(LANGPREFIX)
PKGNAMEPREFIX= ${LANGPREFIX}-
@@ -57,11 +59,11 @@ WRKSRC= ${WRKDIR}
NO_BUILD= yes
.if defined(RDEP)
-BUILD_DEPENDS= ${DICT_LIST}:${RDEP}
-RUN_DEPENDS= ${DICT_LIST}:${RDEP}
+BUILD_DEPENDS= ${DICT_LIST_INST}:${RDEP}
+RUN_DEPENDS= ${DICT_LIST_INST}:${RDEP}
.else
-#BUILD_DEPENDS= ${DICT_LIST}:${PORTSDIR}/editors/openoffice
-#RUN_DEPENDS= ${DICT_LIST}:${PORTSDIR}/editors/openoffice
+BUILD_DEPENDS= ${DICT_LIST_INST}:${PORTSDIR}/editors/openoffice
+RUN_DEPENDS= ${DICT_LIST_INST}:${PORTSDIR}/editors/openoffice
.endif
EXTRACT_CMD_L?= unzip
@@ -81,7 +83,7 @@ post-install:
LANGUAGE=`${ECHO_CMD} $${ABRV} | ${SED} -e 's|_.*||'`; \
COUNTRY=`${ECHO_CMD} $${ABRV} | ${SED} -e 's|.*_||' | ${CUT} -c 1,2`; \
if ! ( ${GREP} "DICT $${LANGUAGE} $${COUNTRY}" \
- ${DICT_LIST} > /dev/null && test -z $${DICT_OVERWRITE} ) ; \
+ ${DICT_LIST_INST} > /dev/null && test -z $${DICT_OVERWRITE} ) ; \
then \
if ! (cd ${DICT_PATH} && ${EXTRACT_CMD_L} \
${EXTRACT_BEFORE_ARGS_L} \
@@ -94,7 +96,7 @@ post-install:
${ECHO_MSG} "===> Register spelling dictionary $${LANGUAGE}_$${COUNTRY}"; \
${ECHO} "@exec ${ECHO} \"DICT $${LANGUAGE} $${COUNTRY} $${ABRV}\" \
>> ${DICT_LIST}" >> ${TMPPLIST} ; \
- ${ECHO_CMD} "DICT $${LANGUAGE} $${COUNTRY} $${ABRV}" >> ${DICT_LIST} ; \
+ ${ECHO_CMD} "DICT $${LANGUAGE} $${COUNTRY} $${ABRV}" >> ${DICT_LIST_INST} ; \
cd ${PREFIX} && ${FIND} -s ${DICT_DIR} -type f | \
${GREP} $${LANGUAGE}_$${COUNTRY} >> ${TMPPLIST} ; \
${ECHO} "@unexec ${CP} ${DICT_LIST} \