1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00

- Stage support

- Cleanup

PR:		190774
This commit is contained in:
Martin Wilke 2014-06-27 16:18:51 +00:00
parent 5535558622
commit d5fcf82383
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=359572
3 changed files with 28 additions and 30 deletions

View File

@ -3,6 +3,7 @@
PORTNAME= kmfl-sil-galatia
PORTVERSION= 1.03
PORTREVISION= 1
CATEGORIES= textproc
MASTER_SITES= http://scripts.sil.org/cms/scripts/render_download.php?site_id=nrsi&format=file&media_id=${DISTNAME}&filename=/ \
http://anthesphoria.net/FreeBSD/ports/distfiles/${DIST_SUBDIR}/
@ -18,45 +19,26 @@ USES= dos2unix zip
DOS2UNIX_FILES= GrkPolyCompv${PORTVERSION:S|.||}.KMN
NO_BUILD= yes
DOCSDIR_REL= share/doc/kmfl/${PORTNAME}
DOCSDIR= ${PREFIX}/${DOCSDIR_REL}
KMFL_DIR= share/kmfl
KMFL_ICONS_DIR= share/kmfl/icons
PORTDOCS= *
OPTIONS_DEFINE= DOCS
DOCSDIR= ${PREFIX}/share/doc/kmfl/${PORTNAME}
DOCSLIST= Greek\ Poly\ Comp\ Kbrd\ Layout.pdf \
welcome.htm
PLIST_FILES= ${KMFL_DIR}/GrkPolyCompv${PORTVERSION:S|.||}.kmn \
${KMFL_ICONS_DIR}/ALPHA.bmp
PLIST_DIRSTRY= ${KMFL_ICONS_DIR} \
${KMFL_DIR}
KMFL_DIR= share/kmfl
KMFL_ICONS_DIR= share/kmfl/icons
SUB_FILES= pkg-message
NO_STAGE= yes
do-install:
${MKDIR} ${LOCALBASE}/${KMFL_DIR} ${LOCALBASE}/${KMFL_ICONS_DIR}
${MKDIR} ${STAGEDIR}${PREFIX}/${KMFL_DIR} ${STAGEDIR}${PREFIX}/${KMFL_ICONS_DIR}
${CP} -f ${WRKSRC}/GrkPolyCompv${PORTVERSION:S|.||}.KMN \
${WRKSRC}/GrkPolyCompv${PORTVERSION:S|.||}.kmn
${INSTALL_DATA} ${WRKSRC}/GrkPolyCompv${PORTVERSION:S|.||}.kmn \
${LOCALBASE}/${KMFL_DIR}
${INSTALL_DATA} ${WRKSRC}/ALPHA.bmp ${LOCALBASE}/${KMFL_ICONS_DIR}
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${STAGEDIR}${PREFIX}/${KMFL_DIR}
${INSTALL_DATA} ${WRKSRC}/ALPHA.bmp ${STAGEDIR}${PREFIX}/${KMFL_ICONS_DIR}
${MKDIR} ${STAGEDIR}${DOCSDIR}
for doc in ${DOCSLIST} ; do \
${INSTALL_DATA} "${WRKSRC}/$$doc" ${DOCSDIR} ; \
${INSTALL_DATA} "${WRKSRC}/$$doc" ${STAGEDIR}${DOCSDIR} ; \
done
.endif
post-install:
@${ECHO_MSG} "--------------------------------------------------------"
@${ECHO_MSG} " You should now have the new keyboard in the section"
@${ECHO_MSG} " \"Greek\" in your SCIM/IBus menu. If you don't see it,"
@${ECHO_MSG} " restart X."
.if !defined(NOPORTDOCS)
@${ECHO_MSG}
@${ECHO_MSG} " The documentation is installed into:"
@${ECHO_MSG} " ${DOCSDIR}"
.endif
@${ECHO_MSG} "--------------------------------------------------------"
.include <bsd.port.mk>

View File

@ -0,0 +1,8 @@
---------------------------------------------------------
You should now have the new keyboard in the section
"Greek" in your SCIM/IBus menu. If you don't see it,
restart X.
The documentation is installed into:
%%DOCSDIR%%
---------------------------------------------------------

View File

@ -0,0 +1,8 @@
%%PORTDOCS%%%%DOCSDIR%%/Greek Poly Comp Kbrd Layout.pdf
%%PORTDOCS%%%%DOCSDIR%%/welcome.htm
share/kmfl/GrkPolyCompv103.kmn
share/kmfl/icons/ALPHA.bmp
%%PORTDOCS%%@dirrm %%DOCSDIR%%
%%PORTDOCS%%@dirrmtry share/doc/kmfl
@dirrmtry share/kmfl/icons
@dirrmtry share/kmfl