Changeset 26693
- Timestamp:
- 2007-07-03 23:16:19 (14 months ago)
- Location:
- trunk/base/src
- Files:
-
- 4 modified
-
package1.0/portrpm.tcl (modified) (2 diffs)
-
package1.0/portsrpm.tcl (modified) (1 diff)
-
port1.0/portmain.tcl (modified) (2 diffs)
-
port1.0/portutil.tcl (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/base/src/package1.0/portrpm.tcl
r26655 r26693 53 53 proc rpm_pkg {portname portversion portrevision} { 54 54 global UI_PREFIX package.destpath portdbpath destpath workpath prefix portresourcepath categories maintainers description long_description homepage epoch portpath 55 global os.platform os.arch os.version 55 global os.platform os.arch os.version os.major 56 56 57 57 set rpmdestpath "" … … 112 112 113 113 # depend on system (virtual packages for apple stuff) 114 regexp {[0-9]+} ${os.version} major 115 lappend dependencies "org.macports.${os.platform}${major}" 114 lappend dependencies "org.macports.${os.platform}${os.major}" 116 115 117 116 set listpath ${workpath}/${portname}.filelist -
trunk/base/src/package1.0/portsrpm.tcl
r26536 r26693 54 54 proc srpm_pkg {portname portversion portrevision} { 55 55 global UI_PREFIX package.destpath portdbpath destpath workpath distpath prefix portresourcepath categories maintainers description long_description homepage epoch portpath distfiles fetch_urls 56 global os.platform os.arch os.version 56 global os.platform os.arch os.version os.major 57 57 58 58 set rpmdestpath "" -
trunk/base/src/port1.0/portmain.tcl
r26177 r26693 43 43 options prefix name version revision epoch categories maintainers 44 44 options long_description description homepage 45 options worksrcdir filesdir distname portdbpath libpath distpath sources_conf os.platform os.version os. arch os.endian platforms default_variants install.user install.group45 options worksrcdir filesdir distname portdbpath libpath distpath sources_conf os.platform os.version os.major os.arch os.endian platforms default_variants install.user install.group 46 46 47 47 # Export options via PortInfo … … 83 83 set os_arch $tcl_platform(machine) 84 84 if {$os_arch == "Power Macintosh"} { set os_arch "powerpc" } 85 set os_major [lindex [split $tcl_platform(osVersion) .] 0] 85 86 86 87 default os.platform {[string tolower $tcl_platform(os)]} 87 88 default os.version {$tcl_platform(osVersion)} 89 default os.major {$os_major} 88 90 default os.arch {$os_arch} 89 91 # Remove trailing "Endian" -
trunk/base/src/port1.0/portutil.tcl
r26682 r26693 486 486 # be more readable, and support arch and version specifics 487 487 proc platform {args} { 488 global all_variants PortInfo os.platform os.arch os.version 488 global all_variants PortInfo os.platform os.arch os.version os.major 489 489 490 490 set len [llength $args] … … 523 523 if {[info exists os.platform] && ${os.platform} == $os} { 524 524 set sel_platform $os 525 if {[info exists os.version] && [info exists release]} { 526 regexp {([0-9]*)[0-9\.]?} ${os.version} match major 527 if {$major == $release } { 525 if {[info exists os.major] && [info exists release]} { 526 if {${os.major} == $release } { 528 527 set sel_platform ${sel_platform}_${release} 529 528 } else {

