Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 8 May 2014 19:47:45 +0000 (UTC)
From:      Pawel Pekala <pawel@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r353350 - head/japanese/dbskkd-cdb
Message-ID:  <201405081947.s48JljFr061952@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pawel
Date: Thu May  8 19:47:45 2014
New Revision: 353350
URL: http://svnweb.freebsd.org/changeset/ports/353350
QAT: https://qat.redports.org/buildarchive/r353350/

Log:
  - Add staging support
  - Remove leading article from COMMENT
  - Define DOCS option
  - Break lines around 80 characters

Modified:
  head/japanese/dbskkd-cdb/Makefile

Modified: head/japanese/dbskkd-cdb/Makefile
==============================================================================
--- head/japanese/dbskkd-cdb/Makefile	Thu May  8 19:39:50 2014	(r353349)
+++ head/japanese/dbskkd-cdb/Makefile	Thu May  8 19:47:45 2014	(r353350)
@@ -9,7 +9,7 @@ MASTER_SITES=	${MASTER_SITE_GOOGLE_CODE}
 #DISTVERSIONSUFFIX=
 
 MAINTAINER=	ports@FreeBSD.org
-COMMENT=Yet another dictionary server for SKK
+COMMENT=	Yet another dictionary server for SKK
 
 BUILD_DEPENDS=	${LOCALBASE}/lib/libcdb.a:${PORTSDIR}/databases/tinycdb
 RUN_DEPENDS=	${SKKJISYOCDB}:${PORTSDIR}/japanese/skk-jisyo-cdb
@@ -23,32 +23,25 @@ SKKJISYOCDB?=	${LOCALBASE}/${SKKDIR}/SKK
 
 MAKE_ENV+=	LOCALBASE="${LOCALBASE}"
 MAKE_ENV+=	SKKJISYOCDB="${SKKJISYOCDB}"
-.if !defined(NOPORTDOCS)
+
 PORTDOCS=	${PORTDOCS_FILE} ${PORTDOCS_SH}
 PORTDOCS_FILE=	CHANGES LICENSE READMEJP \
 		example-daemontools.txt example-inetd.txt
 PORTDOCS_SH=	makeskkcdb.sh skktocdbm.sh
-.endif
 
-NO_STAGE=	yes
-.include <bsd.port.pre.mk>
+OPTIONS_DEFINE=	DOCS
 
 post-patch:
 .for f in READMEJP makeskkcdb.sh
-	${REINPLACE_CMD} -e "s!%%PREFIX%%!${PREFIX}!g" -e "s!%%SKKDIR%%!${SKKDIR}!g" -e "s!%%JISYONAME%%!SKK-JISYO.${SKKJISYO_TYPE}!g" ${WRKSRC}/${f}
+	${REINPLACE_CMD} -e "s!%%PREFIX%%!${PREFIX}!g" \
+		-e "s!%%SKKDIR%%!${SKKDIR}!g" \
+		-e "s!%%JISYONAME%%!SKK-JISYO.${SKKJISYO_TYPE}!g" ${WRKSRC}/${f}
 .endfor
 
 do-install:
-	${INSTALL_PROGRAM} ${WRKSRC}/dbskkd-cdb ${PREFIX}/libexec
-.if !defined(NOPORTDOCS)
-	${MKDIR} ${DOCSDIR}
-.for docs in ${PORTDOCS_FILE}
-	${INSTALL_DATA} ${WRKSRC}/${docs} ${DOCSDIR}
-.endfor
-.for docs in ${PORTDOCS_SH}
-	${INSTALL_SCRIPT} ${WRKSRC}/${docs} ${DOCSDIR}
-.endfor
-.endif
-	@${CAT} ${PKGMESSAGE}
+	${INSTALL_PROGRAM} ${WRKSRC}/dbskkd-cdb ${STAGEDIR}${PREFIX}/libexec
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${PORTDOCS_FILE:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_SCRIPT} ${PORTDOCS_SH:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>



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