[117871] trunk/base/src
cal at macports.org
cal at macports.org
Sat Mar 15 09:49:17 PDT 2014
Revision: 117871
https://trac.macports.org/changeset/117871
Author: cal at macports.org
Date: 2014-03-15 09:49:17 -0700 (Sat, 15 Mar 2014)
Log Message:
-----------
base: add os.minor, closes #42862
Modified Paths:
--------------
trunk/base/src/macports1.0/macports.tcl
trunk/base/src/port1.0/portmain.tcl
Modified: trunk/base/src/macports1.0/macports.tcl
===================================================================
--- trunk/base/src/macports1.0/macports.tcl 2014-03-15 16:41:02 UTC (rev 117870)
+++ trunk/base/src/macports1.0/macports.tcl 2014-03-15 16:49:17 UTC (rev 117871)
@@ -59,7 +59,7 @@
rsync_server rsync_options rsync_dir startupitem_type startupitem_install place_worksymlink macportsuser \
configureccache ccache_dir ccache_size configuredistcc configurepipe buildnicevalue buildmakejobs \
applications_dir current_phase frameworks_dir developer_dir universal_archs build_arch \
- os_arch os_endian os_version os_major os_platform macosx_version macosx_sdk_version macosx_deployment_target \
+ os_arch os_endian os_version os_major os_minor os_platform macosx_version macosx_sdk_version macosx_deployment_target \
packagemaker_path default_compilers sandbox_enable delete_la_files cxx_stdlib \
pkg_post_unarchive_deletions $user_options"
@@ -573,6 +573,7 @@
macports::os_endian \
macports::os_version \
macports::os_major \
+ macports::os_minor \
macports::os_platform \
macports::macosx_version \
macports::macosx_sdk_version \
@@ -593,6 +594,7 @@
if {$os_arch eq {i586} || $os_arch eq {i686} || $os_arch eq {x86_64}} {set os_arch "i386"}
set os_version $tcl_platform(osVersion)
set os_major [lindex [split $os_version .] 0]
+ set os_minor [lindex [split $os_version .] 1]
set os_platform [string tolower $tcl_platform(os)]
# Remove trailing "Endian"
set os_endian [string range $tcl_platform(byteOrder) 0 end-6]
Modified: trunk/base/src/port1.0/portmain.tcl
===================================================================
--- trunk/base/src/port1.0/portmain.tcl 2014-03-15 16:41:02 UTC (rev 117870)
+++ trunk/base/src/port1.0/portmain.tcl 2014-03-15 16:49:17 UTC (rev 117871)
@@ -51,7 +51,7 @@
long_description description homepage notes license \
provides conflicts replaced_by \
worksrcdir filesdir distname portdbpath libpath distpath sources_conf \
- os.platform os.subplatform os.version os.major os.arch os.endian \
+ os.platform os.subplatform os.version os.major os.minor os.arch os.endian \
platforms default_variants install.user install.group \
macosx_deployment_target universal_variant os.universal_supported \
supported_archs depends_skip_archcheck installs_libs \
@@ -116,6 +116,7 @@
default os.platform {$os_platform}
default os.version {$os_version}
default os.major {$os_major}
+default os.minor {$os_minor}
default os.arch {$os_arch}
default os.endian {$os_endian}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140315/c718c17c/attachment.html>
More information about the macports-changes
mailing list