Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Feb 2014 08:21:20 +0000 (UTC)
From:      Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r346252 - head/textproc/docdiff
Message-ID:  <201402270821.s1R8LKVw017114@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: sunpoet
Date: Thu Feb 27 08:21:20 2014
New Revision: 346252
URL: http://svnweb.freebsd.org/changeset/ports/346252
QAT: https://qat.redports.org/buildarchive/r346252/

Log:
  - Add LICENSE
  - Use USES=shebangfix
  - Cosmetic change

Modified:
  head/textproc/docdiff/Makefile

Modified: head/textproc/docdiff/Makefile
==============================================================================
--- head/textproc/docdiff/Makefile	Thu Feb 27 08:21:15 2014	(r346251)
+++ head/textproc/docdiff/Makefile	Thu Feb 27 08:21:20 2014	(r346252)
@@ -9,27 +9,30 @@ MASTER_SITES=	SF
 MAINTAINER=	sunpoet@FreeBSD.org
 COMMENT=	Compares two text files by word, by character, or by line
 
+LICENSE=	BSD3CLAUSE
+
 OPTIONS_DEFINE=	DOCS
 
 NO_BUILD=	yes
 USE_RUBY=	yes
 USE_RUBY_FEATURES=	iconv
+USES=		shebangfix
 
 PORTDOCS=	readme.html readme.en.html readme.ja.html
 
+SHEBANG_FILES=	${PORTNAME}.rb
+
 post-patch:
-	@${REINPLACE_CMD} \
-		-e '1 s|#!.*|#!${RUBY}|' \
-		-e '/ :format/ s|html|tty|' \
+	@${REINPLACE_CMD} -e '/ :format/ s|html|tty|' \
 		-e '/SystemConfigFileName =/ s|etc.*conf|${PREFIX}/etc/${PORTNAME}.conf|' \
-		-e 's|/etc/docdiff/docdiff.conf|${PREFIX}/etc/${PORTNAME}.conf|' \
+		-e 's|/etc/${PORTNAME}/${PORTNAME}.conf|${PREFIX}/etc/${PORTNAME}.conf|' \
 			${WRKSRC}/${PORTNAME}.rb
 
 do-install:
-	cd ${WRKSRC}/${PORTNAME} && ${COPYTREE_SHARE} . ${STAGEDIR}${RUBY_SITELIBDIR}/${PORTNAME}
+	cd ${WRKSRC}/${PORTNAME}/ && ${COPYTREE_SHARE} . ${STAGEDIR}${RUBY_SITELIBDIR}/${PORTNAME}/
 	${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME}.rb ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
-	${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.conf.example ${STAGEDIR}${PREFIX}/etc
-	@${INSTALL} -d ${STAGEDIR}${DOCSDIR}
-	cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.conf.example ${STAGEDIR}${PREFIX}/etc/
+	${MKDIR} ${STAGEDIR}${DOCSDIR}/
+	cd ${WRKSRC}/ && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}/
 
 .include <bsd.port.mk>



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