Ignore:
Timestamp:
Sep 15, 2010, 8:26:12 PM (9 years ago)
Author:
ryandesign@…
Message:

In the interest that all portfiles exemplify correct portfile writing techniques, remove slash before ${prefix} which is not needed because ${prefix} already begins with a slash

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/cross/i386-rtems-gcc/Portfile

    r69904 r71533  
    215215        # gcc needs the cross directory structure to be present
    216216        # in order to fill it during installation.
    217         file mkdir "${destroot}/${prefix}/${crossgcc-target}/bin"
    218         file mkdir "${destroot}/${prefix}/${crossgcc-target}/lib"
     217        file mkdir "${destroot}${prefix}/${crossgcc-target}/bin"
     218        file mkdir "${destroot}${prefix}/${crossgcc-target}/lib"
    219219}
    220220
     
    229229                global crossgcc-target destroot prefix
    230230
    231                 set manpage_path "${destroot}/${prefix}/share/man/man${section}/${manpage}.${section}"
     231                set manpage_path "${destroot}${prefix}/share/man/man${section}/${manpage}.${section}"
    232232                if { [ file exists ${manpage_path} ] } {
    233233                        file rename ${manpage_path} \
    234                                 "${destroot}/${prefix}/share/man/man${section}/${crossgcc-target}-${manpage}.${section}"
     234                                "${destroot}${prefix}/share/man/man${section}/${crossgcc-target}-${manpage}.${section}"
    235235                }
    236236        }
     
    241241
    242242        # aliases for locales (should be on the system)
    243         file delete "${destroot}/${prefix}/share/locale/locale.alias"
     243        file delete "${destroot}${prefix}/share/locale/locale.alias"
    244244
    245245        # FSF propaganda (should already be there or would conflict)
    246         file delete -force "${destroot}/${prefix}/share/man/man7"
     246        file delete -force "${destroot}${prefix}/share/man/man7"
    247247
    248248        # (host) libiberty
    249         file delete "${destroot}/${prefix}/lib/libiberty.a"
     249        file delete "${destroot}${prefix}/lib/libiberty.a"
    250250
    251251        # aliases for charsets (should already be there)
    252         file delete "${destroot}/${prefix}/lib/charset.alias"
     252        file delete "${destroot}${prefix}/lib/charset.alias"
    253253
    254254        # Remove man pages for tools that are not built as part of cross-gcc
    255         file delete "${destroot}/${prefix}/share/man/man1/rmic.1"
    256         file delete "${destroot}/${prefix}/share/man/man1/rmiregistry.1"
    257         file delete "${destroot}/${prefix}/share/man/man1/jv-convert.1"
    258         file delete "${destroot}/${prefix}/share/man/man1/gij.1"
     255        file delete "${destroot}${prefix}/share/man/man1/rmic.1"
     256        file delete "${destroot}${prefix}/share/man/man1/rmiregistry.1"
     257        file delete "${destroot}${prefix}/share/man/man1/jv-convert.1"
     258        file delete "${destroot}${prefix}/share/man/man1/gij.1"
    259259
    260260        # For some reason, some man pages are not prefixed while they should have been
     
    271271        # and hence the driver isn't installed.
    272272        xinstall -c "${workpath}/build/gcc/xgcc" \
    273                 "${destroot}/${prefix}/bin/${crossgcc-target}-gcc-${version}"
     273                "${destroot}${prefix}/bin/${crossgcc-target}-gcc-${version}"
    274274}
    275275
Note: See TracChangeset for help on using the changeset viewer.