From owner-svn-ports-head@FreeBSD.ORG Thu Feb 27 08:21:21 2014 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 32CEE3C6; Thu, 27 Feb 2014 08:21:21 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 1F7AC17C5; Thu, 27 Feb 2014 08:21:21 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s1R8LKkE017115; Thu, 27 Feb 2014 08:21:20 GMT (envelope-from sunpoet@svn.freebsd.org) Received: (from sunpoet@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s1R8LKVw017114; Thu, 27 Feb 2014 08:21:20 GMT (envelope-from sunpoet@svn.freebsd.org) Message-Id: <201402270821.s1R8LKVw017114@svn.freebsd.org> From: Sunpoet Po-Chuan Hsieh Date: Thu, 27 Feb 2014 08:21:20 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r346252 - head/textproc/docdiff X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Feb 2014 08:21:21 -0000 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