Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 29 Jan 2001 16:02:23 +0100 (CET)
From:      Cyrille Lefevre <clefevre@citeweb.net>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/24719: gsed makefile rewritten to be more compliant w/ porters-handbook
Message-ID:  <200101291502.f0TF2Ni88214@gits.dyndns.org>

next in thread | raw e-mail | index | archive | help

>Number:         24719
>Category:       ports
>Synopsis:       gsed makefile rewritten to be more compliant w/ porters-handbook
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jan 29 07:10:01 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Cyrille Lefevre
>Release:        FreeBSD 4.2-STABLE i386
>Organization:
ACME
>Environment:

FreeBSD gits 4.2-STABLE FreeBSD 4.2-STABLE #7: Tue Jan 23 07:33:34 CET 2001     root@gits:/disk2/4.x-stable/src/sys/compile/CUSTOM  i386

>Description:

	Makefile
		PORTNAME changed from gsed to sed.
		PKGNAMEPREFIX added (a la gtar).
		do-install deleted.

	pkg-descr
		typo.

>How-To-Repeat:

	n/a

>Fix:

Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/textproc/gsed/Makefile,v
retrieving revision 1.2
diff -u -r1.2 Makefile
--- Makefile	2000/12/28 15:58:55	1.2
+++ Makefile	2001/01/29 14:48:58
@@ -5,28 +5,63 @@
 # $FreeBSD: ports/textproc/gsed/Makefile,v 1.2 2000/12/28 15:58:55 kevlo Exp $
 #
 
-PORTNAME=	gsed
+PORTNAME=	sed
 PORTVERSION=	3.02
 CATEGORIES=	textproc
 MASTER_SITES=	${MASTER_SITE_GNU}
-MASTER_SITE_SUBDIR=	sed
-DISTNAME=	sed-${PORTVERSION}
+MASTER_SITE_SUBDIR=	${PORTNAME}
+PKGNAMEPREFIX=	g
 
-MAINTAINER=	ports@FreeBSD.org
+MAINTAINER=	clefevre@citeweb.net
 
+#
+# Global variables
+#
+
 GNU_CONFIGURE=	yes
 
 # sed's configure seems to be buggy !
 # CONFIGURE_ARGS=	--program-prefix=g
 
+USE_GMAKE=	yes
+
+.if make(do-install)
+# DESTDIR isn't honored. fake it w/ prefix.
+MAKE_ARGS=	prefix=${PREFIX}
+.endif
+
 MAN1=		gsed.1
+
+#
+# Local variables
+#
+
+PATCH_SUBDIRS=	. doc lib sed
+
+SAMP_FILES=	dc.sed
+SAMP_DIR=	${PREFIX}/share/examples/${PKGBASE}
+
+#
+# Post-configure
+#
+
+post-configure: patch-makefiles
+
+patch-makefiles:
+.for subdir in ${PATCH_SUBDIRS}
+	@${PERL} -pi.fbsd -e 's/s,x,x,/s,^,g,/' ${WRKSRC}/${subdir}/Makefile
+.endfor
+
+#
+# Post-install
+#
+
+post-install: install-sample-files
 
-do-install:
-	${INSTALL_PROGRAM} ${WRKSRC}/sed/sed ${PREFIX}/bin/gsed
-	${INSTALL_MAN} ${WRKSRC}/doc/sed.1 ${PREFIX}/man/man1/gsed.1
-	${INSTALL_DATA} ${WRKSRC}/doc/sed.info ${PREFIX}/info
-	@install-info ${PREFIX}/info/sed.info ${PREFIX}/info/dir
-	@${MKDIR} ${PREFIX}/share/examples/gsed
-	${INSTALL_DATA} ${WRKSRC}/dc.sed ${PREFIX}/share/examples/gsed
+install-sample-files:
+	@${MKDIR} ${SAMP_DIR}
+.for file in ${SAMP_FILES}
+	@${INSTALL_DATA} ${WRKSRC}/${file} ${SAMP_DIR}/${file}
+.endfor
 
 .include <bsd.port.mk>
Index: pkg-descr
===================================================================
RCS file: /home/ncvs/ports/textproc/gsed/pkg-descr,v
retrieving revision 1.1
diff -u -r1.1 pkg-descr
--- pkg-descr	2000/12/19 08:13:28	1.1
+++ pkg-descr	2001/01/29 13:54:47
@@ -4,7 +4,7 @@
 versions have added functionality that is sometimes useful.
 
 Note that this port will install this utility with a `g' prefix,
-eg., gsed, but the texinfo documentation will refer to these
+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

>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200101291502.f0TF2Ni88214>