[146556] trunk/dports/_resources/port1.0/group/python-1.0.tcl
ryandesign at macports.org
ryandesign at macports.org
Fri Mar 11 15:33:20 PST 2016
Revision: 146556
https://trac.macports.org/changeset/146556
Author: ryandesign at macports.org
Date: 2016-03-11 15:33:20 -0800 (Fri, 11 Mar 2016)
Log Message:
-----------
python-1.0.tcl: make every effort to clear distfiles of the stub port (#50874); update copyright year
Modified Paths:
--------------
trunk/dports/_resources/port1.0/group/python-1.0.tcl
Modified: trunk/dports/_resources/port1.0/group/python-1.0.tcl
===================================================================
--- trunk/dports/_resources/port1.0/group/python-1.0.tcl 2016-03-11 22:55:39 UTC (rev 146555)
+++ trunk/dports/_resources/port1.0/group/python-1.0.tcl 2016-03-11 23:33:20 UTC (rev 146556)
@@ -1,7 +1,7 @@
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
# $Id$
#
-# Copyright (c) 2011 The MacPorts Project
+# Copyright (c) 2011-2016 The MacPorts Project
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
@@ -105,10 +105,24 @@
subport py${v}[string trimleft $name py] { depends_lib-append port:python${v} }
}
if {$subport eq $name || $subport eq ""} {
- # set up py-foo as a stub port that depends on the default pyXY-foo
+ # Ensure the stub port does not do anything with distfiles—not
+ # if the port overrides distfiles, not if there's a post-extract
+ # block (e.g. the github portgroup).
+ distfiles
+ pre-fetch {
+ distfiles
+ }
fetch {}
+ pre-checksum {
+ distfiles
+ }
checksum {}
+ pre-extract {
+ distfiles
+ }
extract {}
+
+ # set up py-foo as a stub port that depends on the default pyXY-foo
supported_archs noarch
global python.default_version python.version
unset python.version
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160311/d6f921aa/attachment-0001.html>
More information about the macports-changes
mailing list