Change default PKGNAME scheme for PECL packages.
authorobache <obache>
Sat, 17 Dec 2011 13:46:29 +0000 (13:46 +0000)
committerobache <obache>
Sat, 17 Dec 2011 13:46:29 +0000 (13:46 +0000)
commit5139154ed0c41a6886442b7166e51c21986e46d8
treefa2ad419fe9eb91642ce0791790fb8bf04e7b473
parentb044b2e81d3b84313dca71735b9ae6b729a218b5
Change default PKGNAME scheme for PECL packages.
Drop ${PHP_BASE_VARS} from PKGVERSION by default.

It used to be required to support multiple php version.
But after PHP version based ${PHP_PKG_PREFIX} was introduced,
such trick is not required anymore.
In addition to this, such version name schme invokes unwanted version bump
when base php version is bumped, plus, such version scheme is hard to
use for DEPENDS pattern.

To avoid downgrading of package using such legacy version scheme,
PECL_LEGACY_VERSION_SCHEME is introduced.
If it is defined, current version scheme is still used for currently
supported PHP version (5 and 53), but instead of ${PHP_BASE_VARS},
current fixed PHP base version in pkgsrc is used to avoid unwanted version bump
from update of PHP base package.
With newer PHP (54, or so on), new version scheme will be used if
it is defined.
This trick will not be required and should be removed after php5 and php53 will
be gone away from pkgsrc.
14 files changed:
databases/php-dbx/Makefile
databases/php-redis/Makefile
devel/php-memcache/Makefile
lang/php/ext.mk
net/php-yaz/Makefile
print/php-pdflib/Makefile
security/php-suhosin/Makefile
textproc/php-enchant/Makefile
textproc/php-intl/Makefile
textproc/php-mecab/Makefile
www/php-apc/Makefile
www/php-eaccelerator/Makefile
www/php-phrasea2/Makefile
www/php-uploadprogress/Makefile