[MacPorts] #46379: subversion-perlbindings: remove support for obsolete perl versions
MacPorts
noreply at macports.org
Mon Jan 5 07:49:35 PST 2015
#46379: subversion-perlbindings: remove support for obsolete perl versions
--------------------------------------+---------------------
Reporter: devans@… | Owner: dluke@…
Type: enhancement | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: subversion-perlbindings |
--------------------------------------+---------------------
Comment (by mojca@…):
What about something like the following (which can probably be simplified
further)?
{{{
#!diff
--- Portfile (revision 131059)
+++ Portfile (working copy)
@@ -18,7 +18,7 @@
homepage http://subversion.apache.org/
-set perl5.branches {5.8 5.10 5.12 5.14 5.16 5.18 5.20}
+set perl5.branches {5.16 5.18 5.20}
foreach branch ${perl5.branches} {
set p_idx [lsearch ${perl5.branches} ${branch}]
set other_perls [lreplace ${perl5.branches} $p_idx $p_idx]
@@ -30,6 +30,14 @@
}
}
}
+set perl5.old_branches {5.8 5.10 5.12 5.14}
+foreach branch ${perl5.old_branches} {
+ subport ${name}-${branch} {
+ replaced_by ${name}-5.16
+ PortGroup obsolete 1.0
+ revision 1
+ }
+}
if {${subport} eq ${name}} {
@@ -49,6 +57,7 @@
livecheck.url http://svn.apache.org/repos/asf/subversion/tags/
livecheck.regex "(\\d+\\.\\d+\\.\\d+)/"
+} elseif {${subport} eq "${name}-5.8" || ${subport} eq "${name}-5.10" ||
${subport} eq "${name}-5.12" || ${subport} eq "${name}-5.14"} {
} else {
master_sites apache:subversion
}}}
I don't see the need to try to hack the `p5-graveyard` port any further.
It does its job to handle thousands of standard ports, but I don't see why
this simple exception couldn't be handled inside the `subversion-
perlbindings` port itself.
--
Ticket URL: <https://trac.macports.org/ticket/46379#comment:8>
MacPorts <https://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list