| 1 | # -*- coding: utf-8; mode: tcl; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:noet:sw=4:ts=8:sts=4 |
|---|
| 2 | # $Id: Portfile 139041 2015-07-30 10:05:54Z devans@macports.org $ |
|---|
| 3 | |
|---|
| 4 | PortSystem 1.0 |
|---|
| 5 | |
|---|
| 6 | name p5-graveyard |
|---|
| 7 | version 0.0 |
|---|
| 8 | categories perl |
|---|
| 9 | |
|---|
| 10 | array set replacements { |
|---|
| 11 | 5.16 5.22 |
|---|
| 12 | 5.18 5.22 |
|---|
| 13 | 5.20 5.22 |
|---|
| 14 | } |
|---|
| 15 | set defaultBranches {5.16 5.18 5.20} |
|---|
| 16 | |
|---|
| 17 | proc unknown args { |
|---|
| 18 | upvar 1 replacements replacements defaultBranches defaultBranches |
|---|
| 19 | if {[llength $args] < 3} { |
|---|
| 20 | lappend args {*}$defaultBranches |
|---|
| 21 | } |
|---|
| 22 | set replaced_branches [lassign $args superport version_string] |
|---|
| 23 | lassign [split $version_string _] ver rev |
|---|
| 24 | if {$rev eq ""} { |
|---|
| 25 | set rev 0 |
|---|
| 26 | } |
|---|
| 27 | foreach branch $replaced_branches { |
|---|
| 28 | regsub ^p5- $superport p${branch}- replaced |
|---|
| 29 | regsub ^p5- $superport p$replacements($branch)- replacement |
|---|
| 30 | subport $replaced { |
|---|
| 31 | version $ver |
|---|
| 32 | revision $rev |
|---|
| 33 | replaced_by $replacement |
|---|
| 34 | } |
|---|
| 35 | } |
|---|
| 36 | } |
|---|
| 37 | |
|---|
| 38 | # NOTE: To keep file size reasonable, this list uses tabs for formatting |
|---|
| 39 | # instead of spaces. When inserting new entries, please set your |
|---|
| 40 | # editor's tab width to 8 to ensure proper alignment, and verify that |
|---|
| 41 | # you're inserting tab characters and not spaces. |
|---|
| 42 | # |
|---|
| 43 | # The current list was generated at 2015-01-15T08:23:40Z with: |
|---|
| 44 | # |
|---|
| 45 | # $ port -q info --index --line --version --revision --name 'p5-*' | awk ' |
|---|
| 46 | # BEGIN { |
|---|
| 47 | # blacklist["p5-eperl"] = "" |
|---|
| 48 | # blacklist["p5-graveyard"] = "" |
|---|
| 49 | # blacklist["p5-sdl_perl"] = "" |
|---|
| 50 | # } |
|---|
| 51 | # { |
|---|
| 52 | # if ($3 in blacklist) |
|---|
| 53 | # next |
|---|
| 54 | # padding = (48 - length($3)) / 8 |
|---|
| 55 | # if (padding != int(padding)) |
|---|
| 56 | # padding = int(padding) + 1 |
|---|
| 57 | # printf "%s", $3 |
|---|
| 58 | # for (i = 0; i < padding; ++i) |
|---|
| 59 | # printf "\t" |
|---|
| 60 | # printf "%s_%d%s", $1, ($2 + 1), ORS |
|---|
| 61 | # } |
|---|
| 62 | # ' |
|---|
| 63 | |
|---|
| 64 | # REPLACED BRANCHES |
|---|
| 65 | # (optional, defaults to |
|---|
| 66 | # SUPERPORT VERSION+REV "5.16 5.18 5.20") |
|---|
| 67 | |
|---|
| 68 | |
|---|
| 69 | # MAUSOLEUM (separate section for special ports) |
|---|
| 70 | foreach branch $defaultBranches { |
|---|
| 71 | # subport subversion-perlbindings-$branch { |
|---|
| 72 | # version 1.9.3 |
|---|
| 73 | # revision 1 |
|---|
| 74 | # replaced_by subversion-perlbindings-$replacements($branch) |
|---|
| 75 | # } |
|---|
| 76 | } |
|---|
| 77 | |
|---|
| 78 | |
|---|
| 79 | if {${subport} ne ${name}} { |
|---|
| 80 | PortGroup obsolete 1.0 |
|---|
| 81 | } else { |
|---|
| 82 | platforms darwin freebsd linux |
|---|
| 83 | supported_archs noarch |
|---|
| 84 | universal_variant no |
|---|
| 85 | maintainers larryv openmaintainer |
|---|
| 86 | description Metaport containing obsolete Perl subports |
|---|
| 87 | long_description This is a metaport for collecting obsolete \ |
|---|
| 88 | Perl subports so they don't cause spurious \ |
|---|
| 89 | build failures on the MacPorts buildslaves \ |
|---|
| 90 | whenever their superports are modified. It \ |
|---|
| 91 | cannot be installed. |
|---|
| 92 | homepage https://www.macports.org |
|---|
| 93 | archive_sites |
|---|
| 94 | master_sites |
|---|
| 95 | pre-fetch { |
|---|
| 96 | ui_error {This is a metaport for obsolete Perl subports.} |
|---|
| 97 | return -code error {non-installable metaport} |
|---|
| 98 | } |
|---|
| 99 | } |
|---|