[83526] trunk/dports/perl/p5-eperl/Portfile
cal at macports.org
cal at macports.org
Sun Sep 4 05:19:01 PDT 2011
Revision: 83526
http://trac.macports.org/changeset/83526
Author: cal at macports.org
Date: 2011-09-04 05:18:58 -0700 (Sun, 04 Sep 2011)
Log Message:
-----------
p5-eperl: Fix installation of stub port p5-eperl
Modified Paths:
--------------
trunk/dports/perl/p5-eperl/Portfile
Modified: trunk/dports/perl/p5-eperl/Portfile
===================================================================
--- trunk/dports/perl/p5-eperl/Portfile 2011-09-04 11:59:25 UTC (rev 83525)
+++ trunk/dports/perl/p5-eperl/Portfile 2011-09-04 12:18:58 UTC (rev 83526)
@@ -6,6 +6,7 @@
# replicate perl5.setup to create the subports
name p5-eperl
version 2.2.14
+revision 1
distname eperl-${version}
license {Artistic GPL}
platforms darwin
@@ -62,33 +63,6 @@
default perl5.lib {${prefix}/lib/perl5/vendor_perl/${perl5.version}}
default perl5.archlib {${perl5.lib}/${perl5.arch}}
-if {[string match p5-* $name]} {
- set rootname [string range $name 3 end]
-
- foreach v ${perl5.branches} {
- subport p${v}-${rootname} {
- depends_lib port:perl${v}
- perl5.major ${v}
- }
- }
-
- if {$subport == $name} {
- perl5.major
- distfiles
- supported_archs noarch
- replaced_by p[option perl5.default_branch]-${rootname}
- depends_lib port:p[option perl5.default_branch]-${rootname}
- use_configure no
- build {}
- destroot {
- xinstall -d -m 755 ${destroot}${prefix}/share/doc/${name}
- system "echo $name is a stub port > ${destroot}${prefix}/share/doc/${name}/README"
- }
- }
-} else {
- depends_lib port:perl${perl5.default_branch}
-}
-
## Most patches are copied from the Debian distribution, which uses patch
## files with a prefix
patch.pre_args -p1
@@ -101,9 +75,11 @@
0007-debian-2.2.14-16-modified-and-added-shtool.diff \
0008-wml-2.0.11-merge.diff
-post-patch {
- # this file is added by 0007-*.diff, but must be executable
- file attributes "${worksrcpath}/etc/shtool" -permissions +x
+if {$subport != $name} {
+ post-patch {
+ # this file is added by 0007-*.diff, but must be executable
+ file attributes "${worksrcpath}/etc/shtool" -permissions +x
+ }
}
configure.args --with-perl=${perl5.bin} \
@@ -120,3 +96,32 @@
return -code error "perl5 must be +shared"
}
}
+
+# replaced_by and subport magic
+if {[string match p5-* $name]} {
+ set rootname [string range $name 3 end]
+
+ foreach v ${perl5.branches} {
+ subport p${v}-${rootname} {
+ depends_lib port:perl${v}
+ perl5.major ${v}
+ }
+ }
+
+ if {$subport == $name} {
+ perl5.major
+ distfiles
+ supported_archs noarch
+ replaced_by p[option perl5.default_branch]-${rootname}
+ depends_lib port:p[option perl5.default_branch]-${rootname}
+ use_configure no
+ patch {}
+ build {}
+ destroot {
+ xinstall -d -m 755 ${destroot}${prefix}/share/doc/${name}
+ system "echo $name is a stub port > ${destroot}${prefix}/share/doc/${name}/README"
+ }
+ }
+} else {
+ depends_lib port:perl${perl5.default_branch}
+}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110904/13bfe2f6/attachment.html>
More information about the macports-changes
mailing list