[Midnightbsd-cvs] mports: mports/textproc: add gnu sed.

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Mon Mar 30 11:15:33 EDT 2009


Log Message:
-----------
add gnu sed.  it's an option for bash-completion missing for 3 years.

Modified Files:
--------------
    mports/textproc:
        Makefile (r1.113 -> r1.114)

Added Files:
-----------
    mports/textproc/gsed:
        Makefile (r1.1)
        distinfo (r1.1)
        pkg-descr (r1.1)
        pkg-plist (r1.1)
    mports/textproc/gsed/files:
        patch-configure (r1.1)

-------------- next part --------------
Index: Makefile
===================================================================
RCS file: /home/cvs/mports/textproc/Makefile,v
retrieving revision 1.113
retrieving revision 1.114
diff -L textproc/Makefile -L textproc/Makefile -u -r1.113 -r1.114
--- textproc/Makefile
+++ textproc/Makefile
@@ -43,6 +43,7 @@
     SUBDIR += glimpse
     SUBDIR += gnome-doc-utils
     SUBDIR += gnome-spell
+    SUBDIR += gsed
     SUBDIR += gtkspell
     SUBDIR += html
     SUBDIR += html2text
--- /dev/null
+++ textproc/gsed/pkg-descr
@@ -0,0 +1,10 @@
+The Free Software Foundation's "sed" stream editor.
+
+This utility exists in the MidnightBSD base collection, but the GNU
+versions have added functionality that is sometimes useful.
+
+Note that this port will install this utility with a `g' prefix,
+for example gsed, but the texinfo documentation will refer to these
+utilities without the `g' prefix.
+
+WWW: http://www.gnu.org/software/sed/sed.html
--- /dev/null
+++ textproc/gsed/pkg-plist
@@ -0,0 +1,7 @@
+ at comment $FreeBSD: ports/textproc/gsed/pkg-plist,v 1.5 2005/12/02 17:44:28 garga Exp $
+bin/gsed
+%%EXAMPLESDIR%%/binary.sed
+%%EXAMPLESDIR%%/binary2.sed
+%%EXAMPLESDIR%%/binary3.sed
+%%EXAMPLESDIR%%/dc.sed
+ at dirrm %%EXAMPLESDIR%%
--- /dev/null
+++ textproc/gsed/Makefile
@@ -0,0 +1,60 @@
+# $MidnightBSD: mports/textproc/gsed/Makefile,v 1.1 2009/03/30 15:15:31 laffer1 Exp $
+
+PORTNAME=	sed
+PORTVERSION=	4.1.5
+CATEGORIES=	textproc
+MASTER_SITES=	${MASTER_SITE_GNU}
+MASTER_SITE_SUBDIR=	${PORTNAME}
+PKGNAMEPREFIX=	g
+
+MAINTAINER=	ports at MidnightBSD.org
+COMMENT=	The GNU stream editor
+LICENSE=	gpl2
+
+# Global variables
+GNU_CONFIGURE=	yes
+CONFIGURE_ENV+=	MAKEINFO="makeinfo --no-split"
+CONFIGURE_ARGS+=--disable-nls
+USE_GMAKE=	yes
+INFO=		sed
+MAN1=		gsed.1
+
+# Local variables
+PATCH_SUBDIRS=	. doc lib sed
+DATADIR=	${PREFIX}/share/${PKGBASE}
+SAMP_FILES=	binary*.sed dc.sed
+EXAMPLESDIR=	${PREFIX}/share/examples/${PKGBASE}
+PORTDOCS=	AUTHORS BUGS COPYING COPYING.DOC NEWS README THANKS
+DOCSDIR=	${PREFIX}/share/doc/${PKGBASE}
+
+.include <bsd.port.pre.mk>
+
+post-patch:
+	@${REINPLACE_CMD} 's,^\* sed:,* GNU sed:,' \
+		${WRKSRC}/doc/config.texi
+	@${REINPLACE_CMD} "s|#include <alloca.h>||" ${WRKSRC}/lib/regex_internal.h
+
+post-configure:
+.for subdir in ${PATCH_SUBDIRS}
+	@${REINPLACE_CMD} -e 's|s,x,x,|s,^,g,|' \
+			  -e 's|^doc_DATA|#doc_DATA|' \
+		${WRKSRC}/${subdir}/Makefile
+.endfor
+
+post-install:
+	@${MKDIR} ${EXAMPLESDIR}
+.for f in ${SAMP_FILES}
+	@${INSTALL_DATA} ${WRKSRC}/testsuite/${f} ${EXAMPLESDIR}
+.endfor
+.if !defined(NOPORTDOCS)
+	@${MKDIR} ${DOCSDIR}
+.for f in ${PORTDOCS}
+	@${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
+.endfor
+.endif
+
+# Maintainer only
+test:
+	@cd ${WRKSRC}/testsuite; ${MAKE} check
+
+.include <bsd.port.post.mk>
--- /dev/null
+++ textproc/gsed/distinfo
@@ -0,0 +1,3 @@
+MD5 (sed-4.1.5.tar.gz) = 7a1cbbbb3341287308e140bd4834c3ba
+SHA256 (sed-4.1.5.tar.gz) = be955bef7a81d69222e929689e0de0ecf64c13dc5b15b2ee5696d5ef66fdeec0
+SIZE (sed-4.1.5.tar.gz) = 799584
--- /dev/null
+++ textproc/gsed/files/patch-configure
@@ -0,0 +1,15 @@
+--- configure.orig	Tue Feb 28 01:55:46 2006
++++ configure	Tue Feb 28 01:56:06 2006
+@@ -11266,12 +11266,10 @@
+     done ;;
+     gettext-fix )
+   sed -e '/^mkinstalldirs *=/a\' \
+-      -e "install_sh=$install_sh" \
+       -e 's/^mkinstalldirs *=.*/mkinstalldirs=$(MKINSTALLDIRS)/' \
+       intl/Makefile > intl/Makefile.tmp
+   mv intl/Makefile.tmp intl/Makefile
+   sed -e '/^mkinstalldirs *=/a\' \
+-      -e "install_sh=$install_sh" \
+       -e 's/^mkinstalldirs *=.*/mkinstalldirs=$(MKINSTALLDIRS)/' \
+       po/Makefile > po/Makefile.tmp
+   mv po/Makefile.tmp po/Makefile ;;


More information about the Midnightbsd-cvs mailing list