From owner-svn-ports-head@FreeBSD.ORG Sat Nov 2 17:51:35 2013 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 10C0C4EC; Sat, 2 Nov 2013 17:51:35 +0000 (UTC) (envelope-from hrs@FreeBSD.org) 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 D6C212077; Sat, 2 Nov 2013 17:51:34 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id rA2HpYsI078985; Sat, 2 Nov 2013 17:51:34 GMT (envelope-from hrs@svn.freebsd.org) Received: (from hrs@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id rA2HpYbu078984; Sat, 2 Nov 2013 17:51:34 GMT (envelope-from hrs@svn.freebsd.org) Message-Id: <201311021751.rA2HpYbu078984@svn.freebsd.org> From: Hiroki Sato Date: Sat, 2 Nov 2013 17:51:34 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r332524 - head/textproc/xmlformat 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.14 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: Sat, 02 Nov 2013 17:51:35 -0000 Author: hrs Date: Sat Nov 2 17:51:34 2013 New Revision: 332524 URL: http://svnweb.freebsd.org/changeset/ports/332524 Log: - Add LICENSE. - Use shebangfix. - Use OPTIONS_DEFINE. - Add STAGEDIR support. - Style clean-ups. Deleted: head/textproc/xmlformat/pkg-plist Modified: head/textproc/xmlformat/Makefile Modified: head/textproc/xmlformat/Makefile ============================================================================== --- head/textproc/xmlformat/Makefile Sat Nov 2 17:34:59 2013 (r332523) +++ head/textproc/xmlformat/Makefile Sat Nov 2 17:51:34 2013 (r332524) @@ -3,39 +3,47 @@ PORTNAME= xmlformat PORTVERSION= 1.04 +PORTREVISION= 1 CATEGORIES= textproc MASTER_SITES= http://www.kitebird.com/software/xmlformat/ MAINTAINER= hrs@FreeBSD.org COMMENT= An XML Document Formatter -NO_BUILD= yes -USES= perl5 +LICENSE= BSD +LICENSE_FILE= ${WRKSRC}/LICENSE -DOCSRCDIR1= ${WRKSRC} -DOC_FILES1= BUGS ChangeLog INSTALL LICENSE README TODO +NO_BUILD= yes +USES= perl5 shebangfix -DOCSRCDIR2= ${WRKSRC}/docs -DOCSDIR2= ${DOCSDIR}/docs -DOC_FILES2= API catalog.xml \ - tutorial.html tutorial.pdf tutorial.xml \ - xmlformat.conf xmlformat.html xmlformat.pdf xmlformat.xml - -EXSRCDIR= ${WRKSRC}/docs/examples -EXDIR= ${DOCSDIR}/docs/examples -EX_FILES= doc1.xml doc2.conf1 doc2.conf2 doc2.conf3 \ +SHEBANG_FILES= ${WRKSRC}/xmlformat.pl +PLIST_FILES= bin/xmlformat +PORTDOCS_root= BUGS ChangeLog INSTALL LICENSE README TODO +PORTDOCS_docs= docs/API docs/catalog.xml \ + docs/tutorial.html docs/tutorial.pdf docs/tutorial.xml \ + docs/xmlformat.conf docs/xmlformat.html docs/xmlformat.pdf \ + docs/xmlformat.xml +PORTDOCS= ${PORTDOCS_root} ${PORTDOCS_docs:S,^docs/,,} +PORTEXAMPLES= doc1.xml doc2.conf1 doc2.conf2 doc2.conf3 \ doc2.conf4 doc2.xml -NO_STAGE= yes +OPTIONS_DEFINE= DOCS EXAMPLES + +.include + do-install: - ${INSTALL_SCRIPT} ${WRKSRC}/xmlformat.pl ${PREFIX}/bin/xmlformat -.if !defined(NOPORTDOCS) - ${MKDIR} ${DOCSDIR} - ${INSTALL_DATA} ${DOC_FILES1:S,^,${DOCSRCDIR1}/,} ${DOCSDIR} - ${MKDIR} ${DOCSDIR2} - ${INSTALL_DATA} ${DOC_FILES2:S,^,${DOCSRCDIR2}/,} ${DOCSDIR2} - ${MKDIR} ${EXDIR} - ${INSTALL_DATA} ${EX_FILES:S,^,${EXSRCDIR}/,} ${EXDIR} + ${INSTALL_SCRIPT} ${WRKSRC}/xmlformat.pl \ + ${STAGEDIR}${PREFIX}/bin/xmlformat +.if ${PORT_OPTIONS:MDOCS} + ${MKDIR} ${STAGEDIR}${DOCSDIR} + cd ${WRKSRC} && \ + ${INSTALL_DATA} ${PORTDOCS_root} ${PORTDOCS_docs} \ + ${STAGEDIR}${DOCSDIR} +.endif +.if ${PORT_OPTIONS:MEXAMPLES} + ${MKDIR} ${STAGEDIR}${EXAMPLESDIR} + cd ${WRKSRC}/docs/examples && \ + ${INSTALL_DATA} ${PORTEXAMPLES} ${STAGEDIR}${EXAMPLESDIR} .endif .include