From owner-svn-ports-head@FreeBSD.ORG Tue Apr 29 12:32:26 2014 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 ESMTPS id 3B380F6A; Tue, 29 Apr 2014 12:32:26 +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)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 0DCE71C86; Tue, 29 Apr 2014 12:32:26 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s3TCWPCp025316; Tue, 29 Apr 2014 12:32:25 GMT (envelope-from pawel@svn.freebsd.org) Received: (from pawel@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s3TCWPOM025315; Tue, 29 Apr 2014 12:32:25 GMT (envelope-from pawel@svn.freebsd.org) Message-Id: <201404291232.s3TCWPOM025315@svn.freebsd.org> From: Pawel Pekala Date: Tue, 29 Apr 2014 12:32:25 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r352593 - head/graphics/gimp-manual-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.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: Tue, 29 Apr 2014 12:32:26 -0000 Author: pawel Date: Tue Apr 29 12:32:25 2014 New Revision: 352593 URL: http://svnweb.freebsd.org/changeset/ports/352593 QAT: https://qat.redports.org/buildarchive/r352593/ Log: - Add staging support - Convert to new options framework Modified: head/graphics/gimp-manual-html/Makefile Modified: head/graphics/gimp-manual-html/Makefile ============================================================================== --- head/graphics/gimp-manual-html/Makefile Tue Apr 29 12:21:25 2014 (r352592) +++ head/graphics/gimp-manual-html/Makefile Tue Apr 29 12:32:25 2014 (r352593) @@ -10,54 +10,45 @@ MASTER_SITES= http://kefk.net/Open_Sourc PKGNAMESUFFIX= -${DOCFORMAT} MAINTAINER= ports@FreeBSD.org -COMMENT= The user manual for the GNU Image Manipulation Program (GIMP) +COMMENT= User manual for the GNU Image Manipulation Program (GIMP) -NO_STAGE= yes -.if !defined(DOCFORMAT) -DOCFORMAT=HTML -.else -.if ${DOCFORMAT} != "HTML" && ${DOCFORMAT} != "PDF" -.BEGIN: - @${ECHO_MSG} "ERROR: invalid value for DOCFORMAT: \"${DOCFORMAT}\"" - @${ECHO_MSG} "Possible values are: HTML, PDF." - @${FALSE} -.endif -.endif +EXTRACT_ONLY= #empty +NO_BUILD= yes +DOCDIR= ${STAGEDIR}${PREFIX}/share/doc/gimp PLIST= ${PKGDIR}/pkg-plist_${DOCFORMAT} -pre-everything:: - @${ECHO_MSG} "This manual is available in two formats: HTML and PDF." - @${ECHO_MSG} "Note that the manual is pretty darn big." +OPTIONS_SINGLE= DOCFORMAT +OPTIONS_SINGLE_DOCFORMAT= HTML PDF +OPTIONS_DEFAULT= HTML -EXTRACT_ONLY= #empty -NO_BUILD= yes - -.if ${DOCFORMAT} == "HTML" -DISTFILES= GimpUsersManual_SecondEdition-HTML_Color.tar.gz \ +HTML_DESC= User manual in HTML format +HTML_DISTFILES= GimpUsersManual_SecondEdition-HTML_Color.tar.gz \ GimpUsersManual_SecondEdition-HTML_Search.tar.gz -do-install: - @${MKDIR} ${PREFIX}/share/doc/gimp - for file in ${DISTFILES} ; do \ - cd ${PREFIX}/share/doc/gimp; \ - ${TAR} -zxf ${DISTDIR}/$${file}; \ - ${CHOWN} -R root:wheel ${PREFIX}/share/doc/gimp; \ - done -.endif - -.if ${DOCFORMAT} == "PDF" -DISTFILES= GimpUsersManual_SecondEdition-PDF_Color.pdf \ +PDF_DESC= User manual in PDF format +PDF_DISTFILES= GimpUsersManual_SecondEdition-PDF_Color.pdf \ GimpUsersManual_SecondEdition-PDF.pdf -EXTRACT_ONLY= #empty -NO_BUILD= yes +.include -do-install: - @${MKDIR} ${PREFIX}/share/doc/gimp - for file in ${DISTFILES} ; do \ - ${INSTALL_DATA} ${DISTDIR}/$${file} ${PREFIX}/share/doc/gimp/ ; \ - done +.if ${PORT_OPTIONS:MHTML} +DOCFORMAT= HTML .endif +.if ${PORT_OPTIONS:MPDF} +DOCFORMAT= PDF +.endif + +do-install: + @${MKDIR} ${DOCDIR} +.for file in ${DISTFILES} +. if ${PORT_OPTIONS:MHTML} + (cd ${DOCDIR} && ${TAR} -zxf ${DISTDIR}/${file}) +. endif +. if ${PORT_OPTIONS:MPDF} + ${INSTALL_DATA} ${DISTDIR}/${file} ${DOCDIR} +. endif +.endfor + .include