Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Jun 2014 16:18:52 +0000 (UTC)
From:      Martin Wilke <miwi@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r359572 - in head/textproc/kmfl-sil-galatia: . files
Message-ID:  <201406271618.s5RGIq08066726@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: miwi
Date: Fri Jun 27 16:18:51 2014
New Revision: 359572
URL: http://svnweb.freebsd.org/changeset/ports/359572
QAT: https://qat.redports.org/buildarchive/r359572/

Log:
  - Stage support
  - Cleanup
  
  PR:		190774

Added:
  head/textproc/kmfl-sil-galatia/files/pkg-message.in   (contents, props changed)
  head/textproc/kmfl-sil-galatia/pkg-plist   (contents, props changed)
Modified:
  head/textproc/kmfl-sil-galatia/Makefile

Modified: head/textproc/kmfl-sil-galatia/Makefile
==============================================================================
--- head/textproc/kmfl-sil-galatia/Makefile	Fri Jun 27 16:18:01 2014	(r359571)
+++ head/textproc/kmfl-sil-galatia/Makefile	Fri Jun 27 16:18:51 2014	(r359572)
@@ -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>

Added: head/textproc/kmfl-sil-galatia/files/pkg-message.in
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/textproc/kmfl-sil-galatia/files/pkg-message.in	Fri Jun 27 16:18:51 2014	(r359572)
@@ -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%%
+---------------------------------------------------------

Added: head/textproc/kmfl-sil-galatia/pkg-plist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/textproc/kmfl-sil-galatia/pkg-plist	Fri Jun 27 16:18:51 2014	(r359572)
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201406271618.s5RGIq08066726>