[26459] users/pipping
source_changes at macosforge.org
source_changes at macosforge.org
Sun Jun 24 06:40:01 PDT 2007
Revision: 26459
http://trac.macosforge.org/projects/macports/changeset/26459
Author: pipping at macports.org
Date: 2007-06-24 06:40:01 -0700 (Sun, 24 Jun 2007)
Log Message:
-----------
make room
Removed Paths:
-------------
users/pipping/Portfile
users/pipping/lang/
Deleted: users/pipping/Portfile
===================================================================
--- users/pipping/Portfile 2007-06-24 11:02:22 UTC (rev 26458)
+++ users/pipping/Portfile 2007-06-24 13:40:01 UTC (rev 26459)
@@ -1,51 +0,0 @@
-# $Id$
-
-# the three lines below are meant to simulate a portfile, nothing else
-PortSystem 1.0
-name nano
-version 2.0.6
-
-set port python
-set version_i_want "24"
-
-pre-fetch {
- if {[catch {registry_active ${port}${version_i_want}}]} {
- error "-> the version you're trying to make the default is not active!"
- } else {
- ui_msg "-> ready to make ${port}${version_i_want} the default"
- switch ${port} {
- python {
- ui_msg "-> woohoo, python! (good taste)"
- # list for debugging
- set filehash [list ${prefix}/bin/python ${prefix}/Library/Frameworks/Python.framework/Versions/2.4/bin/python]
- foreach {file target} $filehash {
- if {[file exists $file]} {
- ui_msg "-> file exists: $file"
- if {![string equal link [file type ${file}]]} {
- ui_msg "-> won't touch anything but a link!"
- } else {
- delete ${file}
- if {[file exists $target]} {
- ln -s ${target} ${file}
- } else {
- ui_msg "-> target does not exist:\n ${target}"
- }
- }
- } else {
- if {[file exists $target]} {
- ln -s ${target} ${file}
- } else {
- ui_msg "-> target does not exist:\n ${target}"
- }
- }
- ui_msg "-> <debug> file:\n ${file}"
- ui_msg "-> <debug> target:\n ${target}"
- }
- }
- default {
- ui_msg "aww, not python..."
- }
- }
- }
-}
-fetch {error "don't finish"}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070624/fbb560d2/attachment.html
More information about the macports-changes
mailing list