From a230e4d2c88828b891dfdd61305e144fcbdd2c0a Mon Sep 17 00:00:00 2001 From: tg Date: Thu, 7 Oct 1999 06:49:02 +0000 Subject: Fix MASTER_SITES, don't hardcode /usr/local. PR: 14064 Submitted by: KATO Tsuguru --- editors/uemacs/Makefile | 10 +++++----- editors/uemacs/files/patch-ac | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/editors/uemacs/Makefile b/editors/uemacs/Makefile index da0b721d71c0..0b28c4db4945 100644 --- a/editors/uemacs/Makefile +++ b/editors/uemacs/Makefile @@ -9,15 +9,15 @@ DISTNAME= ue400dev PKGNAME= uemacs-4.0 CATEGORIES= editors -MASTER_SITES= ftp://aquest.com/pub/uemacs400/disk2/ \ - ftp://informatik.hu-berlin.de/pub/pc/msdos/editors/ \ - ftp://ftp.biomath.jussieu.fr/pub/editors/memacs400/disk2/ +MASTER_SITES= ftp://aquest.com/pub/uemacs400/disk2/ -MAINTAINER= ports@freebsd.org +MAINTAINER= ports@FreeBSD.org NO_WRKSUBDIR= yes USE_ZIP= yes EXTRACT_BEFORE_ARGS= -Laq -FETCH_BEFORE_ARGS= -NP + +post-patch: + @${PERL} -pi -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/src/*.c .include diff --git a/editors/uemacs/files/patch-ac b/editors/uemacs/files/patch-ac index c18abe1863f3..e511ee39a9f2 100644 --- a/editors/uemacs/files/patch-ac +++ b/editors/uemacs/files/patch-ac @@ -16,7 +16,7 @@ #else - path = getenv("PATH"); + strncpy(patha, getenv("PATH"), NFILEN - 25); -+ strcat(patha, ":/usr/local/share/uemacs"); ++ strcat(patha, ":%%PREFIX%%/share/uemacs"); #endif #endif + path = patha; -- cgit