Index: Makefile =================================================================== RCS file: /usr/cvs/ports/textproc/gsed/Makefile,v retrieving revision 1.23 diff -u -r1.23 Makefile --- Makefile 20 Apr 2006 05:51:54 -0000 1.23 +++ Makefile 7 Aug 2006 09:59:59 -0000 @@ -7,6 +7,7 @@ PORTNAME= sed PORTVERSION= 4.1.5 +PORTREVISION= 1 CATEGORIES= textproc MASTER_SITES= ${MASTER_SITE_GNU} MASTER_SITE_SUBDIR= ${PORTNAME} @@ -26,11 +27,11 @@ # Local variables PATCH_SUBDIRS= . doc lib sed -DATADIR= ${PREFIX}/share/${PKGBASE} +DATADIR= ${TARGETDIR}/share/${PKGBASE} SAMP_FILES= binary*.sed dc.sed -EXAMPLESDIR= ${PREFIX}/share/examples/${PKGBASE} +EXAMPLESDIR= ${TARGETDIR}/share/examples/${PKGBASE} PORTDOCS= AUTHORS BUGS COPYING COPYING.DOC NEWS README THANKS -DOCSDIR= ${PREFIX}/share/doc/${PKGBASE} +DOCSDIR= ${TARGETDIR}/share/doc/${PKGBASE} .include @@ -41,8 +42,9 @@ .endif post-patch: - @${REINPLACE_CMD} -e 's,^\* sed:,* CNU sed:,' \ + @${REINPLACE_CMD} 's,^\* sed:,* GNU sed:,' \ ${WRKSRC}/doc/config.texi + @${REINPLACE_CMD} "s|#include ||" ${WRKSRC}/lib/regex_internal.h post-configure: .for subdir in ${PATCH_SUBDIRS} Index: files/patch-lib-regex_internal.h =================================================================== RCS file: files/patch-lib-regex_internal.h diff -N files/patch-lib-regex_internal.h --- files/patch-lib-regex_internal.h 15 Apr 2006 15:34:38 -0000 1.1 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,11 +0,0 @@ ---- lib/regex_internal.h.orig Tue Feb 28 01:36:13 2006 -+++ lib/regex_internal.h Tue Feb 28 01:36:38 2006 -@@ -410,8 +410,6 @@ - #define re_string_skip_bytes(pstr,idx) ((pstr)->cur_idx += (idx)) - #define re_string_set_index(pstr,idx) ((pstr)->cur_idx = (idx)) - --#include -- - #ifndef _LIBC - # if HAVE_ALLOCA - /* The OS usually guarantees only one guard page at the bottom of the stack,