RCS file: /Volumes/src/cvs/od/proj/darwinports/base/doc/ports.conf.in,v
retrieving revision 1.8
diff -u -p -r1.8 ports.conf.in
|
|
sources_conf @PORTCONFIGDIR_EXPANDED@/s |
7 | 7 | # Where to store ports specific database files |
8 | 8 | portdbpath @localstatedir_expanded@/db/dports |
9 | 9 | |
| 10 | # Where to find the darwinports data files |
| 11 | portsharepath @prefix_expanded@/share/darwinports |
| 12 | |
10 | 13 | # Set the directory in which to install ports |
11 | 14 | prefix @prefix_expanded@ |
12 | 15 | |
RCS file: /Volumes/src/cvs/od/proj/darwinports/base/src/darwinports1.0/darwinports.tcl,v
retrieving revision 1.157
diff -u -p -r1.157 darwinports.tcl
|
|
package require darwinports_index 1.0 |
36 | 36 | |
37 | 37 | namespace eval darwinports { |
38 | 38 | namespace export bootstrap_options portinterp_options open_dports |
39 | | variable bootstrap_options "portdbpath libpath binpath auto_path sources_conf prefix portdbformat portinstalltype portarchivemode portarchivepath portarchivetype portautoclean destroot_umask variants_conf" |
| 39 | variable bootstrap_options "portdbpath libpath binpath auto_path sources_conf prefix portsharepath portdbformat portinstalltype portarchivemode portarchivepath portarchivetype portautoclean destroot_umask variants_conf" |
40 | 40 | variable portinterp_options "portdbpath portpath auto_path prefix portsharepath registry.path registry.format registry.installtype portarchivemode portarchivepath portarchivetype portautoclean destroot_umask" |
41 | 41 | |
42 | 42 | variable open_dports {} |
… |
… |
proc dportinit {args} { |
252 | 252 | # (reading and writing) |
253 | 253 | set darwinports::portarchivetype [split $portarchivetype {:,}] |
254 | 254 | |
255 | | set portsharepath ${prefix}/share/darwinports |
| 255 | if {![info exists portsharepath]} { |
| 256 | set portsharepath ${prefix}/share/darwinports |
| 257 | } |
| 258 | |
256 | 259 | if {![file isdirectory $portsharepath]} { |
257 | 260 | return -code error "Data files directory '$portsharepath' must exist" |
258 | 261 | } |
259 | 262 | |
260 | 263 | if {![info exists libpath]} { |
261 | | set libpath "${prefix}/share/darwinports/Tcl" |
| 264 | set libpath "${portsharepath}/Tcl" |
262 | 265 | } |
263 | 266 | |
264 | 267 | if {![info exists binpath]} { |