Changeset 1006 for trunk/base


Ignore:
Timestamp:
Oct 9, 2002, 7:06:24 AM (22 years ago)
Author:
jkh
Message:

Changes to support long_description (long-description unfortunately turned
out to be a bad name choice) and an attempt to sprinkle it through enough
ports to at least give people the idea in hopes they'll start adding it to
their ports. Also add to the registry entry and clean up some package
installation hook stuff while I'm in there.

Location:
trunk/base/src/port1.0
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/base/src/port1.0/portinstall.tcl

    r951 r1006  
    4646
    4747proc install_main {args} {
    48     global portname portversion portpath categories description depends_run contents pkg_install pkg_deinstall workdir worksrcdir prefix build.type build.cmd build.target.install UI_PREFIX build.target.current
     48    global portname portversion portpath categories description depends_run contents workdir worksrcdir prefix build.type build.cmd build.target.install UI_PREFIX build.target.current
    4949
    5050    if ![file exists $prefix] {
  • trunk/base/src/port1.0/portregistry.tcl

    r905 r1006  
    3939
    4040# define options
    41 options contents long-description description registry.nochecksum registry.path registry.nobzip registry.contents_recurse
     41options contents long_description description registry.nochecksum registry.path registry.nobzip registry.contents_recurse
    4242
    4343# Export options via PortInfo
    44 options_export description long-description
     44options_export description long_description
    4545
    4646default registry.path {[file join ${portdbpath} receipts]}
     
    201201
    202202proc registry_main {args} {
    203     global portname portversion portpath categories description depends_run contents pkg_install pkg_deinstall workdir worksrcdir prefix UI_PREFIX
     203    global portname portversion portpath categories description long_description depends_run contents package-install uninstall workdir worksrcdir prefix UI_PREFIX
    204204
    205205    # Package installed successfully, so now we must register it
    206206    set rhandle [registry_new $portname $portversion]
    207207    ui_msg "$UI_PREFIX Adding $portname to registry, this may take a moment..."
     208
    208209    registry_store $rhandle [list prefix $prefix]
    209210    registry_store $rhandle [list categories $categories]
     
    211212        registry_store $rhandle [concat description $description]
    212213    }
     214    if [info exists long_description] {
     215        registry_store $rhandle [concat long_description ${long_description}]
     216    }
    213217    if [info exists depends_run] {
    214218        registry_store $rhandle [list run_depends $depends_run]
     219    }
     220    if [info exists package-install] {
     221        registry_store $rhandle [concat package-install ${package-install}]
    215222    }
    216223    if [info exists contents] {
     
    223230        registry_store $rhandle $x
    224231    }
    225     if {[info proc pkg_install] == "pkg_install"} {
    226         registry_store $rhandle [list pkg_install [proc_disasm pkg_install]]
    227     }
    228     if {[info proc pkg_uninstall] == "pkg_uninstall"} {
    229         registry_store $rhandle [list pkg_uninstall [proc_disasm pkg_uninstall]]
     232    if {[info proc uninstall] == "uninstall"} {
     233        registry_store $rhandle [list uninstall [proc_disasm uninstall]]
    230234    }
    231235    registry_close $rhandle
Note: See TracChangeset for help on using the changeset viewer.