We should keep the discussion on the list.

On Oct 18, 2011, at 01:42, Jann Röder wrote:

> Am 18.10.11 00:15, schrieb Ryan Schmidt:
>> 
>> On Oct 17, 2011, at 17:58, [email protected] wrote:
>> 
>>> Revision: 85965
>>>         http://trac.macports.org/changeset/85965
>>> Author:   [email protected]
>>> Date:     2011-10-17 15:58:12 -0700 (Mon, 17 Oct 2011)
>>> Log Message:
>>> -----------
>>> new version
>>> 
>>> Added Paths:
>>> -----------
>>>   trunk/dports/lang/eiffelstudio70/
>>>   trunk/dports/lang/eiffelstudio70/Portfile
>> 
>> 
>>> +post-activate     {
>>> +                    ui_msg " 
>>> ##################################################################################
>>>  \n\
>>> +                        To complete the installation you have to add the 
>>> following to your .bashrc or .profile file : \n\
>>> +                        export ISE_PLATFORM=$env(ISE_PLATFORM) \n\
>>> +                        export 
>>> ISE_EIFFEL=${applications_dir}/Eiffel${branch} \n\
>>> +                        export GOBO=\$ISE_EIFFEL/library/gobo/svn \n\
>>> +                        export 
>>> PATH=\$PATH:\$ISE_EIFFEL/studio/spec/\$ISE_PLATFORM/bin:\$GOBO/../spec/\$ISE_PLATFORM/bin
>>>  \n\
>>> +                        
>>> ##################################################################################
>>>  \n"
>>> +                  }
>> 
>> The "notes" feature should be used in place of this.

> We had this discussion before. The notes feature won't work because the
> message makes use of variables that are not available for notes.

Sorry, I didn't remember the prior discussion... it seems I missed your message 
before. I've found it now in my inbox:


On Feb 21, 2010, at 16:17, Jann Röder wrote:

> The problem is, that this description relies in an environment variable
> that is set in the platform section of the portfile. This variable
> cannot be accessed in the note it seems. Any suggestion about that ?

The way MacPorts handles platform sections has been changed since then. They're 
no longer handled as variants are; they're now handled like simple if 
statements. So I believe the former concerns don't apply anymore.

Using the attached patch, I get:

$ port notes
eiffelstudio70 has the following notes:
  To complete the installation you have to add the following to your .bashrc or 
.profile file : 
   export ISE_PLATFORM=macosx-x86-64 
   export ISE_EIFFEL=/opt/local/Applications/Eiffel70 
   export GOBO=$ISE_EIFFEL/library/gobo/svn 
   export 
PATH=$PATH:$ISE_EIFFEL/studio/spec/$ISE_PLATFORM/bin:$GOBO/../spec/$ISE_PLATFORM/bin
 

That's the desired output, isn't it?


Attachment: eiffelstudio70.diff
Description: Binary data

_______________________________________________
macports-dev mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macports-dev

Reply via email to