SHA256
1
0
forked from pool/racket
racket/0001-Fix-install-path-for-doc-and-collects.patch

51 lines
1.8 KiB
Diff

From 2d3b04e8248d6d97323ef5ac30c48ba9ea967080 Mon Sep 17 00:00:00 2001
From: madanyang <toganm@opensuse.org>
Date: Fri, 3 May 2013 19:55:08 +0200
Subject: [PATCH] Fix install path for doc and collects
docdir is hardcoded for /usr/share/doc but in openSUSE
/usr/share/doc/packages is used the base for documentations
collectsdir is hardcoded to ${libdir}/collects in the configure
script, but we want to install the collects (which are mostly
arch-independent) into /usr/share, and symlink the small number of
exceptions into /usr/lib/racket/collects/$foo
Signed-off-by: madanyang <toganm@opensuse.org>
---
src/configure | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
--- a/src/configure
+++ b/src/configure
@@ -813,7 +813,7 @@ sharedstatedir='${prefix}/com'
localstatedir='${prefix}/var'
includedir='${prefix}/include'
oldincludedir='/usr/include'
-docdir='${datarootdir}/doc/${PACKAGE}'
+docdir='${datarootdir}/doc/packages/${PACKAGE}'
infodir='${datarootdir}/info'
htmldir='${docdir}'
dvidir='${docdir}'
@@ -1317,7 +1317,7 @@ Fine tuning of the installation director
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
--datadir=DIR read-only architecture-independent data [DATAROOTDIR]
--mandir=DIR man documentation [DATAROOTDIR/man]
- --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
+ --docdir=DIR documentation root [DATAROOTDIR/doc/packages/PACKAGE]
_ACEOF
cat <<\_ACEOF
@@ -2299,9 +2299,9 @@ else
prefix="${ac_default_prefix}"
fi
libpltdir="${libdir}/racket"
- collectsdir="${libdir}/racket/collects"
+ collectsdir="${datadir}/racket/collects"
includepltdir="${includedir}/racket"
- docdir="${datadir}/doc/racket"
+ docdir="${datadir}/doc/packages/racket"
MAKE_COPYTREE=copytree
COLLECTS_PATH='${collectsdir}'
INSTALL_ORIG_TREE=no