[32365] trunk/base

jmpp at macports.org jmpp at macports.org
Thu Dec 27 12:31:55 PST 2007


Revision: 32365
          http://trac.macosforge.org/projects/macports/changeset/32365
Author:   jmpp at macports.org
Date:     2007-12-27 12:31:52 -0800 (Thu, 27 Dec 2007)

Log Message:
-----------

Add the base/config/macports_version file holding the 1.7.0 version number (for trunk), with limited usage for the time being:

 * Read it in for the autoconf @MACPORTS_VERSION@ variable;
 * Stop the Snoopy talk in configure.ac to convert the floating point format to a regular versions, reading base/config/macports_version directly instead;
 * Switch files with @VER@ substitution over to @MACPORTS_VERSION at .

The $macports::autoconf::macports_version will still read from @MP_VERSION@, the floating point format,
until a good logic for selfupdate magically emerges (cf. r32364).

Modified Paths:
--------------
    trunk/base/configure.ac
    trunk/base/portmgr/fedora/macports.spec.in
    trunk/base/portmgr/freebsd/Makefile.in

Added Paths:
-----------
    trunk/base/config/macports_version

Added: trunk/base/config/macports_version
===================================================================
--- trunk/base/config/macports_version	                        (rev 0)
+++ trunk/base/config/macports_version	2007-12-27 20:31:52 UTC (rev 32365)
@@ -0,0 +1 @@
+1.7.0

Modified: trunk/base/configure.ac
===================================================================
--- trunk/base/configure.ac	2007-12-27 20:07:33 UTC (rev 32364)
+++ trunk/base/configure.ac	2007-12-27 20:31:52 UTC (rev 32365)
@@ -1,17 +1,18 @@
 dnl Process this file with autoconf to produce a configure script.
 dnl $Id$
 AC_PREREQ(2.52)
-AC_INIT([MacPorts], [esyscmd(cat config/mp_version | tr -d '\n')], [macports-dev at lists.macosforge.org], [macports])
+AC_INIT([MacPorts], [esyscmd(cat config/macports_version | tr -d '\n')], [macports-dev at lists.macosforge.org], [macports])
 AC_CONFIG_SRCDIR([src/pextlib1.0/Pextlib.c])
 AC_CONFIG_HEADERS([src/config.h])
 AC_CANONICAL_SYSTEM
 
-# Read in the MacPorts version from the base/config/mp_vesion file and translate it (e.g. 1.600) to regular version (1.6.0)
+# Read in the MacPorts version from the base/config/macports_vesion file
 AC_MSG_CHECKING(MacPorts version)
+MACPORTS_VERSION=$(cat config/macports_version | tr -d '\n')
+AC_MSG_RESULT([$MACPORTS_VERSION])
+AC_SUBST(MACPORTS_VERSION)
+# Read the old, floating point format version, which we still use internally, and export it for the $macports::autoconf::macports_version variable
 MP_VERSION=$(cat config/mp_version | tr -d '\n')
-VER=`echo $MP_VERSION | sed -e 's/\([[0-9]]\)\.\([[0-9]]\)0\{0,1\}\([[0-9]][[1-9]]\{0,1\}\)0\{0,1\}/\1.\2.\3/'`
-AC_MSG_RESULT([$VER])
-AC_SUBST(VER)
 AC_SUBST(MP_VERSION)
 
 # Check user PATH for MP paths, and remove as necessary.

Modified: trunk/base/portmgr/fedora/macports.spec.in
===================================================================
--- trunk/base/portmgr/fedora/macports.spec.in	2007-12-27 20:07:33 UTC (rev 32364)
+++ trunk/base/portmgr/fedora/macports.spec.in	2007-12-27 20:31:52 UTC (rev 32365)
@@ -1,6 +1,6 @@
 Summary: MacPorts allows installing software on Mac OS X (and other platforms)
 Name: macports
-Version: @VER@
+Version: @MACPORTS_VERSION@
 Release: 0%{?dist}
 License: BSD
 Group: System Environment/Base

Modified: trunk/base/portmgr/freebsd/Makefile.in
===================================================================
--- trunk/base/portmgr/freebsd/Makefile.in	2007-12-27 20:07:33 UTC (rev 32364)
+++ trunk/base/portmgr/freebsd/Makefile.in	2007-12-27 20:31:52 UTC (rev 32365)
@@ -6,7 +6,7 @@
 #
 
 PORTNAME=	macports
-PORTVERSION=	@VER@
+PORTVERSION=	@MACPORTS_VERSION@
 CATEGORIES=	sysutils
 MASTER_SITES=	http://svn.macosforge.org/repository/macports/distfiles/MacPorts/
 DISTNAME=	MacPorts-${PORTVERSION}

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20071227/70bf1b5f/attachment.html


More information about the macports-changes mailing list