Index: head/en_US.ISO8859-1/books/porters-handbook/special/chapter.xml =================================================================== --- head/en_US.ISO8859-1/books/porters-handbook/special/chapter.xml +++ head/en_US.ISO8859-1/books/porters-handbook/special/chapter.xml @@ -2762,19 +2762,19 @@ - USE_PYTHON - The port needs Python. Minimal required version + USES=python + The port needs Python. The minimal required version can be specified with values such as - 2.6+. Version ranges can also be - specified, by separating two version numbers with a - dash, for example, 2.6-2.7 + 2.7+. Version ranges can also be + specified by separating two version numbers with a + dash: USES=python:3.2-3.3 - USE_PYDISTUTILS - Use Python distutils for configuring, compiling - and installing. This is required when the port comes - with setup.py. This overrides + USE_PYTHON=distutils + Use Python distutils for configuring, compiling, + and installing. This is required when the port comes + with setup.py. This overrides the do-build and do-install targets and may also override do-configure @@ -2783,10 +2783,29 @@ + USE_PYTHON=autoplist + Create the packaging list automatically. This also requires + USE_PYTHON=distutils to be set. + + + + + USE_PYTHON=concurrent + The port will use an unique prefix, typically + PYTHON_PKGNAMEPREFIX for certain directories, such + as EXAMPLESDIR and DOCSDIR and + also will append a suffix, the python version from + PYTHON_VER, to binaries and scripts to be + installed. This allows ports to be installed for different Python + versions at the same time, which otherwise would install conflicting + files. + + + PYTHON_PKGNAMEPREFIX Used as a PKGNAMEPREFIX to distinguish packages for different Python versions. - Example: py24- + Example: py27- @@ -2837,7 +2856,25 @@ A complete list of available variables can be found in - /usr/ports/Mk/bsd.python.mk. + /usr/ports/Mk/Uses/python.mk. + + + + Makefile for a Simple <application>Python</application> + Module + + PORTNAME= sample +PORTVERSION= 1.2.3 +CATEGORIES= devel + +MAINTAINER= john@doe.tld +COMMENT= Python sample module + +USES= python +USE_PYTHON= autoplist distutils + +.include <bsd.port.mk> + Some Python applications claim to have DESTDIR support (which would be required Index: head/en_US.ISO8859-1/books/porters-handbook/uses/chapter.xml =================================================================== --- head/en_US.ISO8859-1/books/porters-handbook/uses/chapter.xml +++ head/en_US.ISO8859-1/books/porters-handbook/uses/chapter.xml @@ -953,6 +953,24 @@ run-time dependency. + + python + (none), + X.Y, + X.Y+, + -X.Y, + X.Y-Z.A, + build, + run + + Uses Python. A supported + version or version range can be specified. If Python is + only needed at build or run time, it can be set as a build + or run dependency with build or + run. See + for more information. + + qmail