From owner-svn-ports-head@freebsd.org Fri Jan 1 06:35:51 2016 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A7E44A5D795; Fri, 1 Jan 2016 06:35:51 +0000 (UTC) (envelope-from sunpoet@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 572B71480; Fri, 1 Jan 2016 06:35:51 +0000 (UTC) (envelope-from sunpoet@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u016ZomR025297; Fri, 1 Jan 2016 06:35:50 GMT (envelope-from sunpoet@FreeBSD.org) Received: (from sunpoet@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u016ZoOm025296; Fri, 1 Jan 2016 06:35:50 GMT (envelope-from sunpoet@FreeBSD.org) Message-Id: <201601010635.u016ZoOm025296@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: sunpoet set sender to sunpoet@FreeBSD.org using -f From: Sunpoet Po-Chuan Hsieh Date: Fri, 1 Jan 2016 06:35:50 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r404970 - head/lang/python-doc-html 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.20 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: Fri, 01 Jan 2016 06:35:51 -0000 Author: sunpoet Date: Fri Jan 1 06:35:50 2016 New Revision: 404970 URL: https://svnweb.freebsd.org/changeset/ports/404970 Log: - Add NO_ARCH - Simplify Makefile: - Remove WRKSRC=WRKDIR/DISTNAME (default value) - Use bsd.port.mk instead of bsd.port.pre.mk + bsd.port.post.mk Modified: head/lang/python-doc-html/Makefile Modified: head/lang/python-doc-html/Makefile ============================================================================== --- head/lang/python-doc-html/Makefile Fri Jan 1 06:35:45 2016 (r404969) +++ head/lang/python-doc-html/Makefile Fri Jan 1 06:35:50 2016 (r404970) @@ -14,6 +14,7 @@ COMMENT= Documentation for the Python pr PORTSCOUT= ignore:1 +NO_ARCH= yes NO_BUILD= yes USES= python:build tar:bzip2 @@ -22,23 +23,19 @@ PLIST= ${WRKDIR}/pkg-plist.${DOCFORMAT} DOCFORMAT?= html -.include +.if ${DOCFORMAT} != "html" && ${DOCFORMAT} != "pdf-a4" && ${DOCFORMAT} != "pdf-letter" && ${DOCFORMAT} != "text" +IGNORE= invalid value for DOCFORMAT: "${DOCFORMAT}", possible values are: text, html, pdf-a4, pdf-letter +.endif -. if ${DOCFORMAT} == "html" || ${DOCFORMAT} == "text" -WRKSRC= ${WRKDIR}/${DISTNAME} -. else +.if ${DOCFORMAT} != "html" && ${DOCFORMAT} != "text" WRKSRC= ${WRKDIR}/docs-pdf -. endif -. if ${DOCFORMAT} != "html" && ${DOCFORMAT} != "pdf-a4" && ${DOCFORMAT} != "pdf-letter" && ${DOCFORMAT} != "text" -IGNORE= invalid value for DOCFORMAT: "${DOCFORMAT}", possible values are: text, html, pdf-a4, pdf-letter -. endif +.endif pre-install: - @cd ${WRKSRC} && \ - (${FIND} . -type f | ${SED} -e 's|^\./|%%DOCSDIR%%/|' | ${SORT}) > ${PLIST} + @${FIND} ${WRKSRC} -type f | ${SED} -e 's|^${WRKSRC}|%%DOCSDIR%%|' | ${SORT} > ${PLIST} do-install: ${MKDIR} ${STAGEDIR}${DOCSDIR}/ cd ${WRKSRC}/ && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR} -.include +.include