Add the package license for PEAR packages

Refs https://github.com/composer/satis/issues/192
Fix tests for the pear repository
Merge pull request #3562 from stof/patch-1

Add the package license for PEAR packages