Index: en_US.ISO8859-1/books/porters-handbook/special/chapter.xml
===================================================================
--- en_US.ISO8859-1/books/porters-handbook/special/chapter.xml
+++ en_US.ISO8859-1/books/porters-handbook/special/chapter.xml
@@ -2741,7 +2741,7 @@
Using Python
The Ports Collection supports parallel installation of
- multiple Python versions. Ports must use a
+ multiple Python versions. Ports must use a
correct python interpreter, according to
the user-settable PYTHON_VERSION.
Most prominently, this means replacing the path to
@@ -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,26 @@
+ USE_PYTHON=autoplist
+ Create the packaging list automatically. This also requires
+ USE_PYTHON=distutils to be set.
+
+
+
+
+ USE_PYTHON=concurrent
+ Marks the port as safe to be installed for different python
+ versions at the same time. The port will use an unique prefix for
+ certain directories, such as EXAMPLESDIR and
+ DOCSDIR and also will append a suffix to binaries
+ and scripts to be installed.
+
+
+
PYTHON_PKGNAMEPREFIX
Used as a PKGNAMEPREFIX to
distinguish packages for different Python versions.
- Example: py24-
+ Example: py27-
@@ -2837,7 +2853,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 Python
+ 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: en_US.ISO8859-1/books/porters-handbook/uses/chapter.xml
===================================================================
--- en_US.ISO8859-1/books/porters-handbook/uses/chapter.xml
+++ en_US.ISO8859-1/books/porters-handbook/uses/chapter.xml
@@ -951,6 +951,23 @@
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.
+
+
qmail