[110066] branches/gsoc13-tests/src/macports1.0

marius at macports.org marius at macports.org
Sun Aug 25 14:10:46 PDT 2013


Revision: 110066
          https://trac.macports.org/changeset/110066
Author:   marius at macports.org
Date:     2013-08-25 14:10:46 -0700 (Sun, 25 Aug 2013)
Log Message:
-----------
macports1.0: added custom macports.conf and sources.conf files

Modified Paths:
--------------
    branches/gsoc13-tests/src/macports1.0/macports_test_autoconf.tcl.in
    branches/gsoc13-tests/src/macports1.0/tests/macports.test

Added Paths:
-----------
    branches/gsoc13-tests/src/macports1.0/tests/sources.conf

Modified: branches/gsoc13-tests/src/macports1.0/macports_test_autoconf.tcl.in
===================================================================
--- branches/gsoc13-tests/src/macports1.0/macports_test_autoconf.tcl.in	2013-08-25 21:07:53 UTC (rev 110065)
+++ branches/gsoc13-tests/src/macports1.0/macports_test_autoconf.tcl.in	2013-08-25 21:10:46 UTC (rev 110066)
@@ -33,4 +33,5 @@
 
 namespace eval macports::autoconf {
     variable macports_tcl_dir "@macports_tcl_dir@"
+    variable prefix "@prefix@"
 }

Modified: branches/gsoc13-tests/src/macports1.0/tests/macports.test
===================================================================
--- branches/gsoc13-tests/src/macports1.0/tests/macports.test	2013-08-25 21:07:53 UTC (rev 110065)
+++ branches/gsoc13-tests/src/macports1.0/tests/macports.test	2013-08-25 21:10:46 UTC (rev 110066)
@@ -9,6 +9,22 @@
 source $macports::autoconf::macports_tcl_dir/macports1.0/macports_fastload.tcl
 package require macports 1.0
 
+# use custom macports.conf and sources.conf
+makeDirectory $pwd/tmpdir
+makeDirectory $pwd/tmpdir/share
+makeDirectory $pwd/tmpdir/var/macports/registry
+set fd [open $pwd/tmpdir/macports.conf w+]
+puts $fd "portdbpath $pwd/tmpdir/var/macports"
+puts $fd "prefix $pwd/tmpdir"
+puts $fd "variants_conf $pwd/tmpdir/variants.conf"
+puts $fd "sources_conf $pwd/sources.conf"
+puts $fd "applications_dir $pwd/tmpdir/Applications"
+puts $fd "frameworks_dir $pwd/tmpdir/Library/Frameworks"
+close $fd
+set env(PORTSRC) $pwd/tmpdir/macports.conf
+file link -symbolic $pwd/tmpdir/share/macports $macports::autoconf::prefix/share/macports
+close [open $pwd/tmpdir/variants.conf w+]
+
 # Debug options
 array set ui_options {}
 #set ui_options(ports_debug)   yes

Added: branches/gsoc13-tests/src/macports1.0/tests/sources.conf
===================================================================
--- branches/gsoc13-tests/src/macports1.0/tests/sources.conf	                        (rev 0)
+++ branches/gsoc13-tests/src/macports1.0/tests/sources.conf	2013-08-25 21:10:46 UTC (rev 110066)
@@ -0,0 +1,28 @@
+# $Id$
+# MacPorts system-wide configuration file for ports tree sources.
+#
+# To change how MacPorts fetches base, see rsync_server and rsync_dir in
+# macports.conf.
+# To add a local source, add a "file://" entry.
+#
+#   Example: file:///Users/landonf/misc/MacPorts/ports
+#
+# To prevent a source from synchronizing when `port sync` is used,
+# append "[nosync]" at the end.
+#
+#   Example: file:///Users/landonf/misc/MacPorts/ports [nosync]
+#
+# Note that MacPorts parses source URLs in order; when a port appears in
+# multiple sources, it installs the first occurrence. For local sources
+# to shadow remote ones, "file://" URLs must come before other URLs.
+# A list of rsync mirrors is available at
+# https://trac.macports.org/wiki/Mirrors#Portfiles.
+#
+# If an "rsync://" URL points to a .tar file, a signed .rmd160 file must
+# exist in the same directory on the server and will be used to verify
+# its integrity.
+#
+# For proper functionality of various resources (port groups, mirror
+# sites, etc.), the primary MacPorts source must always be tagged
+# "[default]", even if switched from the default "rsync://" URL.
+rsync://rsync.macports.org/release/tarballs/ports.tar [default]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130825/4f8817d8/attachment.html>


More information about the macports-changes mailing list