diff options
Diffstat (limited to 'dev-lang/nim/files/nim-0.20.0-paths.patch')
-rw-r--r-- | dev-lang/nim/files/nim-0.20.0-paths.patch | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/dev-lang/nim/files/nim-0.20.0-paths.patch b/dev-lang/nim/files/nim-0.20.0-paths.patch new file mode 100644 index 000000000000..a314eae2299b --- /dev/null +++ b/dev-lang/nim/files/nim-0.20.0-paths.patch @@ -0,0 +1,36 @@ +Default to <prefix>/usr/bin install. + +https://bugs.gentoo.org/635032 +--- a/tools/niminst/install.nimf ++++ b/tools/niminst/install.nimf +@@ -28,13 +28,13 @@ if [ $# -eq 1 ] ; then + echo "sh deinstall.sh DIR" + exit 1 + ;; +- "/usr/bin") +- bindir=/usr/bin +- configdir=/etc/?proj +- libdir=/usr/lib/?proj +- docdir=/usr/share/?proj/doc +- datadir=/usr/share/?proj/data +- nimbleDir="/opt/nimble/pkgs/?c.nimblePkgName-?c.version" ++ *) ++ bindir=$1/usr/bin ++ configdir=$1/etc/?proj ++ libdir=$1/usr/lib/?proj ++ docdir=$1/usr/share/?proj/doc ++ datadir=$1/usr/share/?proj/data ++ nimbleDir=$1"/opt/nimble/pkgs/?c.nimblePkgName-?c.version" + ;; + "/usr/local/bin") + bindir=/usr/local/bin +@@ -68,6 +68,9 @@ if [ $# -eq 1 ] ; then + ;; + esac + ++ mkdir -p $bindir ++ mkdir -p $datadir ++ + mkdir -p $libdir + mkdir -p $docdir + mkdir -p $configdir |