Changes between Version 7 and Version 8 of howto/PatchLocal
- Timestamp:
- Dec 2, 2020, 9:10:13 PM (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
howto/PatchLocal
v7 v8 24 24 Create the port's category directory (using port "arb" as an example): 25 25 {{{ 26 PORT_CATEGORY=`port dir arb | awk -F\/ '{ print $(NF-1) }'` 26 port=arb 27 PORT_CATEGORY=`port dir ${port} | awk -F\/ '{ print $(NF-1) }'` 27 28 mkdir /usr/local/ports/$PORT_CATEGORY 28 29 cd /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 30 cp -r `port dir ${port}` . 31 mv ${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 38 cd ${port}-devel 33 39 port lint # to check for problems 34 40 }}} … … 47 53 48 54 {{{ 49 port patch arb-devel50 cd `port work arb-devel`55 port patch ${port}-devel 56 cd `port work ${port}-devel` 51 57 }}} 52 58 … … 63 69 See http://guide.macports.org/#development.patches.source 64 70 {{{ 65 diff -u Makefile.orig Makefile > `port dir arb-devel`/files/patch-ARB-makefile2.diff66 port edit arb-devel # (add the patch-ARB-makefile2.diff file to the list of patches)71 diff -u Makefile.orig Makefile > `port dir ${port}-devel`/files/patch-ARB-makefile2.diff 72 port edit ${port}-devel # (add the patch-ARB-makefile2.diff file to the list of patches) 67 73 }}} 68 74 … … 70 76 71 77 {{{ 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 80 cd /usr/local/ports 81 port clean ${port}-devel 82 port build ${port}-devel 74 83 }}} 75 84 … … 77 86 78 87 {{{ 79 port -s install arb-devel88 port -s install ${port}-devel 80 89 }}} 81 90