Changeset 105460 for trunk/doc-new


Ignore:
Timestamp:
Apr 21, 2013, 1:03:22 PM (7 years ago)
Author:
mk@…
Message:

Guide: describe portgroup obsolete

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/doc-new/guide/xml/portfiledev.xml

    r105189 r105460  
    875875      distribution via port <quote>skrooge</quote> instead. </para>
    876876     
     877      <para>At the end of this section the use of the obsolete PortGroup is suggested
     878      as an even shorter approach to the below described workflow.</para>
     879
     880      <section id="development.replaced_by">
     881      <title>The long way</title>
     882
    877883      <para>Skrooge's original devel port file looked like this:</para>
    878884
     
    10431049To report a bug, see &lt;http://guide.macports.org/#project.tickets&gt;</screen>
    10441050
     1051        </section>
     1052
     1053    <section id="development.obsolete-portgroup">
     1054    <title>The shortcut: PortGroup obsolete</title>
     1055
     1056        <para>Using the PortGroup obsolete makes the task described in the previous subsection
     1057        much easier:</para>
     1058
     1059        <programlisting>
     1060# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; truncate-lines: t -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
     1061# $Id$
     1062PortSystem          1.0
     1063replaced_by         skrooge
     1064PortGroup           obsolete 1.0
     1065name                skrooge-devel
     1066svn.revision        1215845
     1067version             0.8.0-${svn.revision}
     1068revision            2</programlisting>
     1069
     1070        <para>The PortGroup defines a number of reasonable defaults for a port that is only
     1071        there to inform users that they should uninstall it and install something else
     1072        instead. You might want to override some of the defaults though. For details have
     1073        a look at the PortGroup's source code in
     1074        <filename>${prefix}/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/group/obsolete-1.0.tcl</filename>.</para>
     1075
     1076    </section>
     1077
    10451078    </section>
    10461079   
Note: See TracChangeset for help on using the changeset viewer.