diff options
| author | Teddy Wing | 2021-09-05 04:54:29 +0200 |
|---|---|---|
| committer | Teddy Wing | 2021-09-05 04:54:29 +0200 |
| commit | 79500ae1f715a243c45edc60bdc3e7e4d6115388 (patch) | |
| tree | d99a103ce66414efb9d5a60edc49bbc3ebc11ffa | |
| parent | 969684231cebea57a67f6e675450044b6f66d07d (diff) | |
| download | macports-ports-79500ae1f715a243c45edc60bdc3e7e4d6115388.tar.bz2 | |
readline-incdec: Install Bash files to `${prefix}/share/readline-incdec`
Previously, the files would be installed directly into `prefix`, meaning
you would have `/opt/local/incdec.bash`. That doesn't make sense, and
caused the following MacPorts error:
Warning: violation by /opt/local/incdec-bindings.bash
Warning: violation by /opt/local/incdec.bash
Warning: readline-incdec violates the layout of the ports-filesystems!
Warning: Please fix or indicate this misbehavior (if it is intended), it will be an error in future releases!
Instead, install the Bash files to `${prefix}/share/readline-incdec/`.
| -rw-r--r-- | sysutils/readline-incdec/Portfile | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sysutils/readline-incdec/Portfile b/sysutils/readline-incdec/Portfile index cc42409..51c4b10 100644 --- a/sysutils/readline-incdec/Portfile +++ b/sysutils/readline-incdec/Portfile @@ -23,9 +23,11 @@ use_configure no build {} destroot { + xinstall -d ${destroot}${prefix}/share/${name} + xinstall -m 644 ${worksrcpath}/incdec.bash \ ${worksrcpath}/incdec-bindings.bash \ - ${destroot}${prefix} + ${destroot}${prefix}/share/readline-incdec/ xinstall -m 644 ${worksrcpath}/doc/incdec.7 \ ${destroot}${prefix}/share/man/man7 } @@ -34,9 +36,9 @@ notes " The Incdec shell functions must be sourced in order to use them. Add the following line to your Bash profile: - source ${prefix}/incdec.bash + source ${prefix}/share/${name}/incdec.bash To enable the default bindings, also add: - source ${prefix}/incdec-bindings.bash + source ${prefix}/share/${name}/incdec-bindings.bash " |
