From d78d6a03922f1c6e83527ad29907539c57b4d61d Mon Sep 17 00:00:00 2001 From: Ade Lovett Date: Mon, 25 Sep 2000 21:01:47 +0000 Subject: [PATCH] Allow gnomelibs to DTRT in the case where ${LOCALBASE} is not /usr/local Original suggestion by: nectar Rewritten patch by: ade (so don't blame nectar for this!) --- x11/gnome-libs/Makefile | 6 +++++- x11/gnome-libs/files/patch-ac | 4 ++-- x11/gnome-libs/files/patch-ag | 6 +++--- x11/gnomelibs/Makefile | 6 +++++- x11/gnomelibs/files/patch-ac | 4 ++-- x11/gnomelibs/files/patch-ag | 6 +++--- x11/libgnome/Makefile | 6 +++++- x11/libgnome/files/patch-ac | 4 ++-- x11/libgnome/files/patch-ag | 6 +++--- 9 files changed, 30 insertions(+), 18 deletions(-) diff --git a/x11/gnome-libs/Makefile b/x11/gnome-libs/Makefile index 7f67247a395a..565e13bc49bd 100644 --- a/x11/gnome-libs/Makefile +++ b/x11/gnome-libs/Makefile @@ -7,7 +7,7 @@ PORTNAME= gnomelibs PORTVERSION= 1.2.4 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= x11 gnome MASTER_SITES= ${MASTER_SITE_GNOME} MASTER_SITE_SUBDIR= stable/sources/gnome-libs @@ -47,4 +47,8 @@ pre-patch: 's|\$\(datadir\)/gnome/|\$\(datadir\)/|g ; \ s|\$\(datadir\)/locale|\$\(prefix\)/share/locale|g' +post-patch: + @${PERL} -pi -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \ + ${WRKSRC}/gnome-config.in ${WRKSRC}/libgnome/gnome-util.c + .include diff --git a/x11/gnome-libs/files/patch-ac b/x11/gnome-libs/files/patch-ac index f73a45521ae8..0d8f8a75ea9d 100644 --- a/x11/gnome-libs/files/patch-ac +++ b/x11/gnome-libs/files/patch-ac @@ -5,7 +5,7 @@ pkgincludedir=${includedir}/@PACKAGE@ MODULE_VERSION=@PACKAGE@-@VERSION@ -module_dirs="$libdir" -+module_dirs="$sysconfdir:/usr/local/etc" ++module_dirs="$sysconfdir:%%LOCALBASE%%/etc" # stolen from autoconf if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then @@ -28,7 +28,7 @@ - ${libdir}/Conf.sh + ${sysconfdir}/Conf.sh -+and /usr/local/etc/Conf.sh ++and %%LOCALBASE%%/etc/Conf.sh -is looked in for the necessary information. Those currently installed +are looked in for the necessary information. Those currently installed diff --git a/x11/gnome-libs/files/patch-ag b/x11/gnome-libs/files/patch-ag index 6b5481c4e7b9..a928239a2373 100644 --- a/x11/gnome-libs/files/patch-ag +++ b/x11/gnome-libs/files/patch-ag @@ -6,9 +6,9 @@ static char *shells [] = { - "/bin/bash", "/bin/zsh", "/bin/tcsh", "/bin/ksh", - "/bin/csh", "/bin/sh", 0 -+ "/bin/csh", "/bin/sh", "/bin/tcsh", "/usr/local/bin/tcsh", -+ "/usr/local/bin/bash", "/usr/local/bin/ksh", -+ "/usr/local/bin/zsh", "/usr/local/sbin/scsh", 0 ++ "/bin/csh", "/bin/sh", "/bin/tcsh", "%%LOCALBASE%%/bin/tcsh", ++ "%%LOCALBASE%%/bin/bash", "%%LOCALBASE%%/bin/ksh", ++ "%%LOCALBASE%%/bin/zsh", "%%LOCALBASE%%/sbin/scsh", 0 }; if ((shell = getenv ("SHELL"))){ diff --git a/x11/gnomelibs/Makefile b/x11/gnomelibs/Makefile index 7f67247a395a..565e13bc49bd 100644 --- a/x11/gnomelibs/Makefile +++ b/x11/gnomelibs/Makefile @@ -7,7 +7,7 @@ PORTNAME= gnomelibs PORTVERSION= 1.2.4 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= x11 gnome MASTER_SITES= ${MASTER_SITE_GNOME} MASTER_SITE_SUBDIR= stable/sources/gnome-libs @@ -47,4 +47,8 @@ pre-patch: 's|\$\(datadir\)/gnome/|\$\(datadir\)/|g ; \ s|\$\(datadir\)/locale|\$\(prefix\)/share/locale|g' +post-patch: + @${PERL} -pi -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \ + ${WRKSRC}/gnome-config.in ${WRKSRC}/libgnome/gnome-util.c + .include diff --git a/x11/gnomelibs/files/patch-ac b/x11/gnomelibs/files/patch-ac index f73a45521ae8..0d8f8a75ea9d 100644 --- a/x11/gnomelibs/files/patch-ac +++ b/x11/gnomelibs/files/patch-ac @@ -5,7 +5,7 @@ pkgincludedir=${includedir}/@PACKAGE@ MODULE_VERSION=@PACKAGE@-@VERSION@ -module_dirs="$libdir" -+module_dirs="$sysconfdir:/usr/local/etc" ++module_dirs="$sysconfdir:%%LOCALBASE%%/etc" # stolen from autoconf if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then @@ -28,7 +28,7 @@ - ${libdir}/Conf.sh + ${sysconfdir}/Conf.sh -+and /usr/local/etc/Conf.sh ++and %%LOCALBASE%%/etc/Conf.sh -is looked in for the necessary information. Those currently installed +are looked in for the necessary information. Those currently installed diff --git a/x11/gnomelibs/files/patch-ag b/x11/gnomelibs/files/patch-ag index 6b5481c4e7b9..a928239a2373 100644 --- a/x11/gnomelibs/files/patch-ag +++ b/x11/gnomelibs/files/patch-ag @@ -6,9 +6,9 @@ static char *shells [] = { - "/bin/bash", "/bin/zsh", "/bin/tcsh", "/bin/ksh", - "/bin/csh", "/bin/sh", 0 -+ "/bin/csh", "/bin/sh", "/bin/tcsh", "/usr/local/bin/tcsh", -+ "/usr/local/bin/bash", "/usr/local/bin/ksh", -+ "/usr/local/bin/zsh", "/usr/local/sbin/scsh", 0 ++ "/bin/csh", "/bin/sh", "/bin/tcsh", "%%LOCALBASE%%/bin/tcsh", ++ "%%LOCALBASE%%/bin/bash", "%%LOCALBASE%%/bin/ksh", ++ "%%LOCALBASE%%/bin/zsh", "%%LOCALBASE%%/sbin/scsh", 0 }; if ((shell = getenv ("SHELL"))){ diff --git a/x11/libgnome/Makefile b/x11/libgnome/Makefile index 7f67247a395a..565e13bc49bd 100644 --- a/x11/libgnome/Makefile +++ b/x11/libgnome/Makefile @@ -7,7 +7,7 @@ PORTNAME= gnomelibs PORTVERSION= 1.2.4 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= x11 gnome MASTER_SITES= ${MASTER_SITE_GNOME} MASTER_SITE_SUBDIR= stable/sources/gnome-libs @@ -47,4 +47,8 @@ pre-patch: 's|\$\(datadir\)/gnome/|\$\(datadir\)/|g ; \ s|\$\(datadir\)/locale|\$\(prefix\)/share/locale|g' +post-patch: + @${PERL} -pi -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \ + ${WRKSRC}/gnome-config.in ${WRKSRC}/libgnome/gnome-util.c + .include diff --git a/x11/libgnome/files/patch-ac b/x11/libgnome/files/patch-ac index f73a45521ae8..0d8f8a75ea9d 100644 --- a/x11/libgnome/files/patch-ac +++ b/x11/libgnome/files/patch-ac @@ -5,7 +5,7 @@ pkgincludedir=${includedir}/@PACKAGE@ MODULE_VERSION=@PACKAGE@-@VERSION@ -module_dirs="$libdir" -+module_dirs="$sysconfdir:/usr/local/etc" ++module_dirs="$sysconfdir:%%LOCALBASE%%/etc" # stolen from autoconf if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then @@ -28,7 +28,7 @@ - ${libdir}/Conf.sh + ${sysconfdir}/Conf.sh -+and /usr/local/etc/Conf.sh ++and %%LOCALBASE%%/etc/Conf.sh -is looked in for the necessary information. Those currently installed +are looked in for the necessary information. Those currently installed diff --git a/x11/libgnome/files/patch-ag b/x11/libgnome/files/patch-ag index 6b5481c4e7b9..a928239a2373 100644 --- a/x11/libgnome/files/patch-ag +++ b/x11/libgnome/files/patch-ag @@ -6,9 +6,9 @@ static char *shells [] = { - "/bin/bash", "/bin/zsh", "/bin/tcsh", "/bin/ksh", - "/bin/csh", "/bin/sh", 0 -+ "/bin/csh", "/bin/sh", "/bin/tcsh", "/usr/local/bin/tcsh", -+ "/usr/local/bin/bash", "/usr/local/bin/ksh", -+ "/usr/local/bin/zsh", "/usr/local/sbin/scsh", 0 ++ "/bin/csh", "/bin/sh", "/bin/tcsh", "%%LOCALBASE%%/bin/tcsh", ++ "%%LOCALBASE%%/bin/bash", "%%LOCALBASE%%/bin/ksh", ++ "%%LOCALBASE%%/bin/zsh", "%%LOCALBASE%%/sbin/scsh", 0 }; if ((shell = getenv ("SHELL"))){