From owner-svn-doc-all@freebsd.org Mon Apr 30 15:12:55 2018 Return-Path: Delivered-To: svn-doc-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A776CFADE18; Mon, 30 Apr 2018 15:12:55 +0000 (UTC) (envelope-from mat@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4CA80759EA; Mon, 30 Apr 2018 15:12:55 +0000 (UTC) (envelope-from mat@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 mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 473F814E82; Mon, 30 Apr 2018 15:12:55 +0000 (UTC) (envelope-from mat@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w3UFCt18051542; Mon, 30 Apr 2018 15:12:55 GMT (envelope-from mat@FreeBSD.org) Received: (from mat@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w3UFCtHR051541; Mon, 30 Apr 2018 15:12:55 GMT (envelope-from mat@FreeBSD.org) Message-Id: <201804301512.w3UFCtHR051541@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: mat set sender to mat@FreeBSD.org using -f From: Mathieu Arnold Date: Mon, 30 Apr 2018 15:12:55 +0000 (UTC) To: doc-committers@freebsd.org, svn-doc-all@freebsd.org, svn-doc-head@freebsd.org Subject: svn commit: r51602 - head/en_US.ISO8859-1/books/porters-handbook/flavors X-SVN-Group: doc-head X-SVN-Commit-Author: mat X-SVN-Commit-Paths: head/en_US.ISO8859-1/books/porters-handbook/flavors X-SVN-Commit-Revision: 51602 X-SVN-Commit-Repository: doc MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-doc-all@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: "SVN commit messages for the entire doc trees \(except for " user" , " projects" , and " translations" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Apr 2018 15:12:56 -0000 Author: mat Date: Mon Apr 30 15:12:54 2018 New Revision: 51602 URL: https://svnweb.freebsd.org/changeset/doc/51602 Log: Flatten the Flavor chapter by removing the encapsulating "Flavors Auto-Activation" section and moving php and Python one setup up. The only change here is sect2 → sect1 and sect3 → sect2. Sponsored by: Absolight Modified: head/en_US.ISO8859-1/books/porters-handbook/flavors/chapter.xml Modified: head/en_US.ISO8859-1/books/porters-handbook/flavors/chapter.xml ============================================================================== --- head/en_US.ISO8859-1/books/porters-handbook/flavors/chapter.xml Sat Apr 28 12:59:18 2018 (r51601) +++ head/en_US.ISO8859-1/books/porters-handbook/flavors/chapter.xml Mon Apr 30 15:12:54 2018 (r51602) @@ -259,161 +259,157 @@ lite_PKGNAMESUFFIX= -lite - - Flavors Auto-Activation + + <literal>USES=php</literal> and Flavors - - <literal>USES=php</literal> and Flavors + When using USES=php with + one of these arguments, phpize, + ext, zend, or + pecl, the port will automatically have + FLAVORS filled in with the + PHP versions it supports. - When using USES=php with - one of these arguments, phpize, - ext, zend, or - pecl, the port will automatically have - FLAVORS filled in with the - PHP versions it supports. + + All the examples assume the currently supported PHP + versions are 5.6, 7.0, 7.1, and 7.2. + - - All the examples assume the currently supported PHP - versions are 5.6, 7.0, 7.1, and 7.2. - + + Simple <literal>USES=php</literal> Extension - - Simple <literal>USES=php</literal> Extension + This will generate package for all the supported + versions: - This will generate package for all the supported - versions: - - PORTNAME= some-ext + PORTNAME= some-ext PORTVERSION= 0.0.1 PKGNAMEPREFIX= ${PHP_PKGNAMEPREFIX} USES= php:ext - This will generate package for all the supported - versions but 7.2: + This will generate package for all the supported + versions but 7.2: - PORTNAME= some-ext + PORTNAME= some-ext PORTVERSION= 0.0.1 PKGNAMEPREFIX= ${PHP_PKGNAMEPREFIX} USES= php:ext IGNORE_WITH_PHP= 72 - + - - PHP Flavors with PHP Applications + + PHP Flavors with PHP Applications - PHP applications can also be flavorized. + PHP applications can also be flavorized. - This allows generating packages for all PHP versions, so - that users can use them with whatever version they need on - their servers. + This allows generating packages for all PHP versions, so + that users can use them with whatever version they need on + their servers. - - PHP applications that are flavorized - must append - PHP_PKGNAMESUFFIX to their package - names. - + + PHP applications that are flavorized + must append + PHP_PKGNAMESUFFIX to their package + names. + - - Flavorizing a PHP Application + + Flavorizing a PHP Application - Adding Flavors support to a PHP application is - straightforward: + Adding Flavors support to a PHP application is + straightforward: - PKGNAMESUFFIX= ${PHP_PKGNAMESUFFIX} + PKGNAMESUFFIX= ${PHP_PKGNAMESUFFIX} USES= php:flavors - - + + - - <literal>USES=python</literal> and Flavors + + <literal>USES=python</literal> and Flavors - When using USES=python - and USE_PYTHON=distutils, the port will - automatically have FLAVORS filled in with - the Python versions it - supports. + When using USES=python + and USE_PYTHON=distutils, the port will + automatically have FLAVORS filled in with + the Python versions it + supports. - - Simple <literal>USES=python</literal> + + Simple <literal>USES=python</literal> - Supposing the current Python - supported versions are 2.7, 3.4, 3.5, and 3.6, and the - default Python 2 and 3 versions - are 2.7 and 3.6, a port with: + Supposing the current Python + supported versions are 2.7, 3.4, 3.5, and 3.6, and the + default Python 2 and 3 versions + are 2.7 and 3.6, a port with: - USES= python + USES= python USE_PYTHON= distutils - Will get these flavors: py27, and - py36. + Will get these flavors: py27, and + py36. - USES= python + USES= python USE_PYTHON= distutils allflavors - Will get these flavors: py27, - py34, py35 and - py36. - + Will get these flavors: py27, + py34, py35 and + py36. + - - <literal>USES=python</literal> with Version - Requirements + + <literal>USES=python</literal> with Version + Requirements - Supposing the current Python - supported versions are 2.7, 3.4, 3.5, and 3.6, and the - default Python 2 and 3 versions - are 2.7 and 3.6, a port with: + Supposing the current Python + supported versions are 2.7, 3.4, 3.5, and 3.6, and the + default Python 2 and 3 versions + are 2.7 and 3.6, a port with: - USES= python:-3.5 + USES= python:-3.5 USE_PYTHON= distutils - Will get this flavor: py27. + Will get this flavor: py27. - USES= python:-3.5 + USES= python:-3.5 USE_PYTHON= distutils allflavors - Will get these flavors: py27, - py34, and py35. + Will get these flavors: py27, + py34, and py35. - USES= python:3.4+ + USES= python:3.4+ USE_PYTHON= distutils - Will get this flavor: py36. + Will get this flavor: py36. - USES= python:3.4+ + USES= python:3.4+ USE_PYTHON= distutils allflavors - Will get these flavors: py34, - py35, and py36. - + Will get these flavors: py34, + py35, and py36. + - PY_FLAVOR will be available to depend - on the correct version of Python - modules. This is most useful for ports that are not - Python modules and do not have - Python flavors but do use - python for some part of their - operations. + PY_FLAVOR will be available to depend + on the correct version of Python + modules. This is most useful for ports that are not + Python modules and do not have + Python flavors but do use + python for some part of their + operations. - - For a Port Not Using - <literal>distutils</literal> + + For a Port Not Using + <literal>distutils</literal> - If the default Python 3 - version is 3.6, the following will set - PY_FLAVOR to - py36: + If the default Python 3 + version is 3.6, the following will set + PY_FLAVOR to + py36: - RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}mutagen>0:audio/py-mutagen@${PY_FLAVOR} + RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}mutagen>0:audio/py-mutagen@${PY_FLAVOR} USES= python:3.5+ - - +