1+ #[=============================================================================[
2+ # PEAR
3+
4+ Configure PEAR as part of the PHP installation.
5+
6+ > [!WARNING]
7+ > PEAR installation as part of PHP is deprecated as of PHP 7.4 and will be
8+ > removed in future PHP versions. PEAR can also be installed manually from the
9+ > pear.php.net website.
10+
11+ ## PHP_PEAR
12+
13+ :orange_circle: *Deprecated as of PHP 7.4.*
14+
15+ * Default: `OFF`
16+ * Values: `ON|OFF`
17+
18+ Install PEAR, PHP Extension and Application Repository package manager.
19+
20+ ## PHP_PEAR_DIR
21+
22+ :orange_circle: *Deprecated as of PHP 7.4.*
23+
24+ * Default: `DATADIR/pear`
25+
26+ The path where PEAR will be installed to. `CMAKE_INSTALL_PREFIX` is
27+ automatically prepended when given as a relative path.
28+
29+ ## PHP_PEAR_TEMP_DIR
30+
31+ :orange_circle: *Deprecated as of PHP 7.4.*
32+
33+ * Default: `tmp/pear` on \*nix and `temp/pear` on Windows
34+
35+ The PEAR temporary directory where PEAR writes temporary files, such as cache,
36+ downloaded packages artifacts and similar. Pass it as a relative path inside the
37+ top level system directory, which will be automatically prepended. If given as
38+ an absolute path, top level directory is not prepended. Relative path is added
39+ to the top root system directory (`/` on \*nix, or `C:/` on Windows).
40+
41+ For example, default PEAR temporary directory after the top level system
42+ directory is prepended becomes `/tmp/pear` on \*nix and `C:/temp/pear` on
43+ Windows.
44+ #]=============================================================================]
45+
146include (FeatureSummary)
247include (PHP/Install )
348include (PHP/Set)
@@ -15,9 +60,7 @@ php_set(
1560 TYPE PATH
1661 IF PHP_PEAR
1762 VALUE "${CMAKE_INSTALL_DATADIR} /pear"
18- DOC
19- "The PEAR installation directory. CMAKE_INSTALL_PREFIX is automatically "
20- "prepended when given as relative path. Default: DATADIR/pear"
63+ DOC "The PEAR installation directory."
2164)
2265mark_as_advanced (PHP_PEAR_DIR)
2366
@@ -31,13 +74,7 @@ php_set(
3174 TYPE PATH
3275 IF PHP_PEAR
3376 VALUE "${tmpDir} "
34- DOC
35- "The PEAR temporary directory where PEAR writes temporary files, such as "
36- "cache, downloaded packages artifacts and similar. Pass it as a relative "
37- "path inside the top level system directory, which will be automatically "
38- "prepended. If given as an absolute path, top level directory is not "
39- "prepended. Relative path is added to the top root system directory (/ on "
40- "*nix, or c:/ on Windows). Default: ${tmpDir} ."
77+ DOC "The PEAR temporary directory. Default: ${tmpDir} ."
4178)
4279mark_as_advanced (PHP_PEAR_TEMP_DIR)
4380
0 commit comments