summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbsam <bsam@FreeBSD.org>2013-09-29 17:01:28 +0000
committerbsam <bsam@FreeBSD.org>2013-09-29 17:01:28 +0000
commit1c4f61d17356e9d79f6d1c39001a0f412ad79dc1 (patch)
tree33dad478e21e04deffe4fe605a8ea196533117e2
parent50bc63bfbb1c39abe27c78b1b470279b3dc046ec (diff)
downloadFreeBSD-ports-1c4f61d17356e9d79f6d1c39001a0f412ad79dc1.zip
FreeBSD-ports-1c4f61d17356e9d79f6d1c39001a0f412ad79dc1.tar.gz
. support stage;
. create pkg-message based on post-install target.
-rw-r--r--russian/mueller-dic/Makefile28
-rw-r--r--russian/mueller-dic/files/pkg-message.in4
2 files changed, 11 insertions, 21 deletions
diff --git a/russian/mueller-dic/Makefile b/russian/mueller-dic/Makefile
index 3876ae0..2732746 100644
--- a/russian/mueller-dic/Makefile
+++ b/russian/mueller-dic/Makefile
@@ -14,8 +14,8 @@ MAINTAINER= ports@FreeBSD.org
COMMENT= Mueller English-Russian dictionary
USE_GMAKE= yes
-USES= iconv
-SUB_FILES= mueller
+USES= iconv:build
+SUB_FILES= mueller pkg-message
WRKSRC= ${WRKDIR}/mf
WRKSRC_DIC= ${WRKDIR}/usr/local/share/dict
@@ -23,7 +23,6 @@ WRKSRC_DOC= ${WRKDIR}/usr/local/share/mova
OPTIONS_DEFINE= DOCS
-NO_STAGE= yes
post-build:
# convert dictionary to other charsets
${MV} ${WRKSRC_DIC}/Mueller7accentGPL.koi ${WRKSRC_DIC}/Mueller7accentGPL.ru_RU.KOI8-R
@@ -36,25 +35,12 @@ post-build:
${WRKSRC}/mf -d ${WRKSRC_DIC}/Mueller7accentGPL.ru_RU.CP1251 -hash
${WRKSRC}/mf -d ${WRKSRC_DIC}/Mueller7accentGPL.ru_RU.UTF-8 -hash
-.include <bsd.port.options.mk>
-
do-install:
# install program with different name (it conflicts with teTeX)
- ${INSTALL_PROGRAM} ${WRKSRC}/mf ${PREFIX}/bin/muellerfind
- ${INSTALL_SCRIPT} ${WRKDIR}/mueller ${PREFIX}/bin/
-
- @${MKDIR} ${DATADIR}
- ${INSTALL_DATA} ${WRKSRC_DIC}/Mueller7accentGPL.ru_RU.* ${DATADIR}
-
-.if ${PORT_OPTIONS:MDOCS}
- @${MKDIR} ${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC_DOC}/Mueller7.txt ${DOCSDIR}/Mueller7.txt
-.endif
-
-post-install:
- @${ECHO_CMD} "==============================================="
- @${ECHO_CMD} " You can look up words in dictionary with: "
- @${ECHO_CMD} " ${PREFIX}/bin/mueller word"
- @${ECHO_CMD} "==============================================="
+ ${INSTALL_PROGRAM} ${WRKSRC}/mf ${STAGEDIR}${PREFIX}/bin/muellerfind
+ ${INSTALL_SCRIPT} ${WRKDIR}/mueller ${STAGEDIR}${PREFIX}/bin/
+ @${MKDIR} ${STAGEDIR}${DATADIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC_DIC}/Mueller7accentGPL.ru_RU.* ${STAGEDIR}${DATADIR}
+ ${INSTALL_DATA} ${WRKSRC_DOC}/Mueller7.txt ${STAGEDIR}${DOCSDIR}/Mueller7.txt
.include <bsd.port.mk>
diff --git a/russian/mueller-dic/files/pkg-message.in b/russian/mueller-dic/files/pkg-message.in
new file mode 100644
index 0000000..66134ea
--- /dev/null
+++ b/russian/mueller-dic/files/pkg-message.in
@@ -0,0 +1,4 @@
+==============================================
+You can look up a word at the dictionary with:
+%%PREFIX%%/bin/mueller word
+==============================================
OpenPOWER on IntegriCloud