Changes between Version 7 and Version 8 of howto/PatchLocal


Ignore:
Timestamp:
Dec 2, 2020, 9:10:13 PM (3 years ago)
Author:
bernstei
Comment:

add a few missing steps needed for dealing with the renamed ("-devel") port name.

Legend:

Unmodified
Added
Removed
Modified
  • howto/PatchLocal

    v7 v8  
    2424Create the port's category directory (using port "arb" as an example):
    2525{{{
    26 PORT_CATEGORY=`port dir arb | awk -F\/ '{ print $(NF-1) }'`
     26port=arb
     27PORT_CATEGORY=`port dir ${port} | awk -F\/ '{ print $(NF-1) }'`
    2728mkdir /usr/local/ports/$PORT_CATEGORY
    2829cd /usr/local/ports/$PORT_CATEGORY
    29 cp -r `port dir arb` .
    30 mv arb arb-devel
    31 # edit arb-devel/Portfile and replace "name arb" with "name arb-devel"
    32 cd arb-devel
     30cp -r `port dir ${port}` .
     31mv ${port} ${port}-devel
     32# edit ${port}-devel/Portfile and replace "name arb" with "name arb-devel", and
     33#   create two new lines, one defining "distname arb-${version}", overriding the
     34#   default of ${name}-${version}, and one defining "dist_subdir arb",
     35#   overriding the default of ${name}, otherwise the fetch  will fail to
     36#   find the distfile, because it will be including the "-devel" as part of
     37#   the path and distfile on the mirror site
     38cd ${port}-devel
    3339port lint # to check for problems
    3440}}}
     
    4753
    4854{{{
    49 port patch arb-devel
    50 cd `port work arb-devel`
     55port patch ${port}-devel
     56cd `port work ${port}-devel`
    5157}}}
    5258
     
    6369See http://guide.macports.org/#development.patches.source
    6470{{{
    65 diff -u Makefile.orig Makefile > `port dir arb-devel`/files/patch-ARB-makefile2.diff
    66 port edit arb-devel # (add the patch-ARB-makefile2.diff file to the list of patches)
     71diff -u Makefile.orig Makefile > `port dir ${port}-devel`/files/patch-ARB-makefile2.diff
     72port edit ${port}-devel # (add the patch-ARB-makefile2.diff file to the list of patches)
    6773}}}
    6874
     
    7076
    7177{{{
    72 port clean arb-devel
    73 port build arb-devel
     78# leave work dir to ensure that the port clean isn't trying to remove an in-use
     79# directory and make the build fail
     80cd /usr/local/ports
     81port clean ${port}-devel
     82port build ${port}-devel
    7483}}}
    7584
     
    7786
    7887{{{
    79 port -s install arb-devel
     88port -s install ${port}-devel
    8089}}}
    8190