Ticket #12312: doc.patch

File doc.patch, 7.5 KB (added by sfiera@…, 17 years ago)
  • base/configure

    diff --git a/base/configure b/base/configure
    index 3b081e3..f4e8126 100755
    a b prefix=$oldprefix 
    1168911689
    1169011690
    1169111691# Output
    11692 ac_config_files="$ac_config_files Makefile Mk/macports.autoconf.mk doc/prefix.mtree doc/macosx.mtree doc/macports.conf src/Makefile src/macports1.0/macports_autoconf.tcl src/tclobjc1.0/Makefile src/port1.0/port_autoconf.tcl src/registry1.0/registry_autoconf.tcl src/programs/Makefile src/macports1.0/macports_fastload.tcl"
     11692ac_config_files="$ac_config_files Makefile Mk/macports.autoconf.mk doc/prefix.mtree doc/macosx.mtree doc/macports.conf scripts/autovars.sed src/Makefile src/macports1.0/macports_autoconf.tcl src/tclobjc1.0/Makefile src/port1.0/port_autoconf.tcl src/registry1.0/registry_autoconf.tcl src/programs/Makefile src/macports1.0/macports_fastload.tcl"
    1169311693
    1169411694
    1169511695cat >confcache <<\_ACEOF
    do 
    1225212252    "doc/prefix.mtree") CONFIG_FILES="$CONFIG_FILES doc/prefix.mtree" ;;
    1225312253    "doc/macosx.mtree") CONFIG_FILES="$CONFIG_FILES doc/macosx.mtree" ;;
    1225412254    "doc/macports.conf") CONFIG_FILES="$CONFIG_FILES doc/macports.conf" ;;
     12255    "scripts/autovars.sed") CONFIG_FILES="$CONFIG_FILES scripts/autovars.sed" ;;
    1225512256    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
    1225612257    "src/macports1.0/macports_autoconf.tcl") CONFIG_FILES="$CONFIG_FILES src/macports1.0/macports_autoconf.tcl" ;;
    1225712258    "src/tclobjc1.0/Makefile") CONFIG_FILES="$CONFIG_FILES src/tclobjc1.0/Makefile" ;;
  • base/configure.ac

    diff --git a/base/configure.ac b/base/configure.ac
    index 4249844..3c55691 100644
    a b AC_CONFIG_FILES([ 
    274274        doc/prefix.mtree
    275275        doc/macosx.mtree
    276276        doc/macports.conf
     277        scripts/autovars.sed
    277278        src/Makefile
    278279        src/macports1.0/macports_autoconf.tcl
    279280        src/tclobjc1.0/Makefile
  • base/doc/Makefile

    diff --git a/base/doc/Makefile b/base/doc/Makefile
    index 6547e4c..991d06f 100644
    a b  
     1MAN1=           port.1
    12MAN5=           macports.conf.5
    23MAN7=           portfile.7 portstyle.7 porthier.7 portgroup.7
     4SUBST_MAN=      port.1 macports.conf.5 porthier.7
    35INSTALLDIR=     ${DESTDIR}${prefix}
    46TOPSRCDIR=      ..
    57
     8edit = sed -f ${TOPSRCDIR}/scripts/autovars.sed
     9
    610ifneq ($(MAKECMDGOALS),distclean)
    711include ../Mk/macports.autoconf.mk
    812endif
    913
    10 all:
     14all: ${SUBST_MAN}
     15
     16port.1: port.1.in
     17        ${edit} port.1.in > $@
     18
     19macports.conf.5: macports.conf.5.in
     20        ${edit} macports.conf.5.in > $@
     21
     22porthier.7: porthier.7.in
     23        ${edit} porthier.7.in > $@
    1124
    1225clean:
     26        rm -f ${SUBST_MAN}
    1327
    1428test:
    1529
  • (a) a/base/doc/macports.conf.5 vs. (b) b/base/doc/macports.conf.5.in

    diff --git a/base/doc/macports.conf.5 b/base/doc/macports.conf.5.in
    similarity index 96%
    rename from base/doc/macports.conf.5
    rename to base/doc/macports.conf.5.in
    index dcefa3b..0f400ad 100644
    a b Sets the directory where ports are installed. Any path may be used but those wit 
    5454characters should be avoided, as this can broke some ports. This key is often referred to as '${prefix}'.
    5555.br
    5656.Ic Default:
    57 /opt/local
     57@prefix_expanded@
    5858.It Va x11prefix
    5959Path containing an X11 installation on your system.
    6060.br
    Directory where MacPorts keeps working data as downloaded sources, installed por 
    6565and the main registry. Same path restrictions apply as for '${prefix}'.
    6666.br
    6767.Ic Default:
    68 ${prefix}/var/macports
     68@localstatedir_expanded@/macports
    6969.It Va portdbformat
    7070Storage type to use for the MacPorts registry. Currently the only supportted format is "flat".
    7171.br
    MacPorts rsync server (through the "sync" target of the 
    9494commnand) and any other local tree(s) you might have.
    9595.br
    9696.Ic Default:
    97 ${prefix}/etc/macports/sources.conf
     97@MPCONFIGDIR_EXPANDED@/sources.conf
    9898.It Va variants_conf
    9999Location of the optional global variants definition file, listing those that should be used in all installed
    100100ports if available.
    101101.br
    102102.Ic Default:
    103 ${prefix}/etc/macports/variants.conf
     103@MPCONFIGDIR_EXPANDED@/variants.conf
    104104.It Va portarchivemode
    105105Key governing the creation of binary archives of installed ports for installation/reinstallation ease.
    106106.br
    yes 
    129129.It Va startupitem_type
    130130Set the default type of startupitems to be generated, overridable by Portfiles that explicitly state a
    131131startupitem.type key. If set to "default", then a type will be selected that's appropriate to the OS.
    132 Supported types are: SystemStarter, launchd, default, rcNG.
     132Supported types are: SystemStarter, launchd, default, rcng.
    133133.br
    134134.Ic Default:
    135135default
    List of extra environment variables MacPorts should keep in the user's environme 
    167167.El
    168168.Sh FILES
    169169.Bl -tag -width
    170 .It Va ${prefix}/etc/macports/macports.conf
     170.It Va @MPCONFIGDIR_EXPANDED@/macports.conf
    171171Standard system-wide MacPorts configuration file.
    172172.It Va ~/.macports/macports.conf
    173173User-specific configuration override. This file, if found, will be used instead of the default file at
    174 ${prefix}/etc/macports/macports.conf.
     174@MPCONFIGDIR_EXPANDED@/macports.conf.
    175175.El
    176176.Sh SEE ALSO
    177177.Xr port 1 ,
  • (a) a/base/doc/port.1 vs. (b) b/base/doc/port.1.in

    diff --git a/base/doc/port.1 b/base/doc/port.1.in
    similarity index 99%
    rename from base/doc/port.1
    rename to base/doc/port.1.in
    index c3aca31..c647543 100644
    a b target on 
    516516.Pp
    517517.Sh FILES
    518518.Bl -tag -width
    519 .It Va ${prefix}/etc/macports/macports.conf
     519.It Va @MPCONFIGDIR_EXPANDED@/macports.conf
    520520Global configuration file for the MacPorts system.
    521 .It Va ${prefix}/etc/macports/sources.conf
     521.It Va @MPCONFIGDIR_EXPANDED@/sources.conf
    522522Global listing of the ports trees used by MacPorts. This file also enables rsync synchronization.
    523 .It Va ${prefix}/etc/macports/variants.conf
     523.It Va @MPCONFIGDIR_EXPANDED@/variants.conf
    524524Global variants used when a port is installed.
    525525.It Va ~/.macports/macports.conf
    526526User configuration file for the MacPorts system. It overrides the global
  • (a) a/base/doc/porthier.7 vs. (b) b/base/doc/porthier.7.in

    diff --git a/base/doc/porthier.7 b/base/doc/porthier.7.in
    similarity index 95%
    rename from base/doc/porthier.7
    rename to base/doc/porthier.7.in
    index 5d142e3..2eb918e 100644
    a b  
    3939.Sh DESCRIPTION
    4040A sketch of the filesystem hierarchy as it is applied on ports being distributed by MacPorts.
    4141.Bl -tag -width "/Applications/"
    42 .It Pa ${prefix}/
    43 The base of the MacPorts filesystem hierarchy. By default set to "/opt/local/"
     42.It Pa @prefix@/
     43The base of the MacPorts filesystem hierarchy. Often referred to as ${prefix}
    4444.Pp
    4545.Bl -tag -width "include/"
    4646.It Pa bin/
    applications based on Java 
    7171localization files
    7272.It Pa man/
    7373manual pages
     74.It Pa macports/
     75various MacPorts scripts
    7476.It Pa misc/
    7577misc system-wide ASCII text files
    7678.El
    Contains archives (packages) of installed ports 
    9496Holds the registry information and receipts for the installed ports
    9597.It Pa software/
    9698In Image-mode (which is default) Holds the installed files. These
    97 are linked to ${prefix}.
     99are hard-linked into ${prefix}.
    98100.It Pa sources/
    99101Holds the sources of both the porttree (the Portfiles) and the
    100102sources for the base system
    directory for cgi executables 
    119121.El
    120122.It Pa /Applications/MacPorts/
    121123Native Mac OS X applications
     124.It Pa @TCL_PACKAGE_DIR@/macports1.0/
     125macports Tcl package
    122126.It Pa /Library/Frameworks/
    123127Native Mac OS X Library Frameworks
    124128.Pp
  • new file ase/scripts/autovars.sed.in

    diff --git a/base/scripts/autovars.sed.in b/base/scripts/autovars.sed.in
    new file mode 100644
    index 0000000..11ab4f2
    - +  
     1s,@prefix\@,@prefix@,g
     2s,@prefix_expanded\@,@prefix_expanded@,g
     3s,@MPCONFIGDIR_EXPANDED\@,@MPCONFIGDIR_EXPANDED@,g
     4s,@localstatedir_expanded\@,@localstatedir_expanded@,g
     5s,@TCL_PACKAGE_DIR\@,@TCL_PACKAGE_DIR@,g