| 1 |
version=4 |
| 2 |
|
| 3 |
# Search on MetaCPAN for current stable release, download tarball from |
| 4 |
# Github (with a sane name). |
| 5 |
# Rationale: Github also contains beta versions with higher numbers. |
| 6 |
# CPAN versions are fatpacked (whitespace-compression) which makes them not |
| 7 |
# the "original source" (See #851506) |
| 8 |
|
| 9 |
opts="downloadurlmangle=s%.*/App-cpanminus-v?(\d[\d.-]+)\.(?:tar(?:\.gz|\.bz2)?|tgz|zip)$%https://github.com/miyagawa/cpanminus/archive/$1.tar.gz%, \ |
| 10 |
filenamemangle=s%(?:.*?)?v?(\d[\d.-]+)\.tar\.gz%cpanminus-$1.tar.gz%" \ |
| 11 |
https://metacpan.org/release/App-cpanminus .*/App-cpanminus-v?@ANY_VERSION@@ARCHIVE_EXT@$ |