SHA256
1
0
forked from pool/gap
gap/gap-multiarch.diff

33 lines
915 B
Diff

Allow for noarch packages.
---
configure.in | 3 +++
gap.shi | 2 +-
2 files changed, 4 insertions(+), 1 deletion(-)
Index: gap4r8/configure.in
===================================================================
--- gap4r8.orig/configure.in
+++ gap4r8/configure.in
@@ -169,6 +169,9 @@ AC_SUBST(MAKE_GMP)
AC_SUBST(USE_GMP)
AC_SUBST(GMP_VER)
+pkgdatadir="$datadir/$PACKAGE_NAME"
+AC_SUBST([pkgdatadir])
+
mkdir -p bin
AC_CONFIG_FILES([Makefile-${CONFIGNAME}:Makefile.in
sysinfo.gap-${CONFIGNAME}:sysinfo.in
Index: gap4r8/gap.shi
===================================================================
--- gap4r8.orig/gap.shi
+++ gap4r8/gap.shi
@@ -61,4 +61,4 @@ fi
##
## You probably should not change this line, which finally starts GAP.
##
-exec "$GAP_DIR/bin/$GAP_PRG" $GAP_MEM -l "$GAP_DIR" "$@"
+exec "$GAP_DIR/bin/$GAP_PRG" $GAP_MEM -l "$GAP_DIR;@datadir@/gap" "$@"