[97929] trunk/dports/python/py-virtualenv/Portfile
ryandesign at macports.org
ryandesign at macports.org
Thu Sep 20 02:59:08 PDT 2012
Revision: 97929
http://trac.macports.org//changeset/97929
Author: ryandesign at macports.org
Date: 2012-09-20 02:59:08 -0700 (Thu, 20 Sep 2012)
Log Message:
-----------
py-virtualenv: fix installation of py25-virtualenv, and remove superfluous duplicate files in py26-virtualenv and up, by generalizing the fix that was confined to the py24-virtualenv subport; disable livecheck in subports
Modified Paths:
--------------
trunk/dports/python/py-virtualenv/Portfile
Modified: trunk/dports/python/py-virtualenv/Portfile
===================================================================
--- trunk/dports/python/py-virtualenv/Portfile 2012-09-20 08:48:31 UTC (rev 97928)
+++ trunk/dports/python/py-virtualenv/Portfile 2012-09-20 09:59:08 UTC (rev 97929)
@@ -8,6 +8,7 @@
name py-virtualenv
set real_name virtualenv
version 1.8.2
+revision 1
maintainers akitada openmaintainer
categories-append devel
@@ -28,13 +29,10 @@
subport py24-virtualenv {
version 1.7.2
+ revision 0
distname ${real_name}-${version}
checksums rmd160 bdd0c3ef92ed2b954ee60a4d4df31dc1c17e4b1e \
sha256 8cbbe308ab0f446a4ceacf24b2656bedd33ea22825b0750fd079766cc6e91bf4
- python.move_binaries no
- post-destroot {
- delete ${destroot}${prefix}/bin/virtualenv
- }
}
if {$subport != $name} {
@@ -43,12 +41,27 @@
select.group virtualenv
select.file ${filespath}/virtualenv${python.version}
+ # The virtualenv build process creates both virtualenv and virtualenv-${python.branch}
+ # but we only want one. We cannot keep the unsuffixed one, because by the time the port's
+ # post-destroot block runs, the portgroup's post-destroot block (which creates suffixed
+ # versions by renaming or symlinking) has already run. Therefore we will keep the
+ # suffixed one and tell the portgroup not to create its own suffixed versions.
+ python.link_binaries_suffix
+ python.move_binaries no
+
post-destroot {
+ delete ${destroot}${prefix}/bin/virtualenv
+ if {${prefix} != ${python.prefix}} {
+ delete ${destroot}${python.prefix}/bin/virtualenv
+ }
+
xinstall -m 755 -d ${destroot}${prefix}/share/doc/${subport}
foreach f [glob -directory ${worksrcpath}/docs *] {
copy $f ${destroot}${prefix}/share/doc/${subport}/[file tail $f]
}
}
+
+ livecheck.type none
} else {
livecheck.type regex
livecheck.url http://pypi.python.org/pypi/virtualenv
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120920/14ac0be3/attachment-0001.html>
More information about the macports-changes
mailing list