From never@kurush.osdn.org.ua  Wed Oct 23 08:59:35 2002
Return-Path: <never@kurush.osdn.org.ua>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP
	id 9F28F37B401; Wed, 23 Oct 2002 08:59:35 -0700 (PDT)
Received: from kurush.osdn.org.ua (external.osdn.org.ua [212.40.34.156])
	by mx1.FreeBSD.org (Postfix) with ESMTP
	id 5856A43E6E; Wed, 23 Oct 2002 08:59:27 -0700 (PDT)
	(envelope-from never@kurush.osdn.org.ua)
Received: from kurush.osdn.org.ua (never@localhost [127.0.0.1])
	by kurush.osdn.org.ua (8.12.6/8.12.6) with ESMTP id g9NFxMqT044255;
	Wed, 23 Oct 2002 18:59:23 +0300 (EEST)
	(envelope-from never@kurush.osdn.org.ua)
Received: (from never@localhost)
	by kurush.osdn.org.ua (8.12.6/8.12.6/Submit) id g9NFxMTK044254;
	Wed, 23 Oct 2002 18:59:22 +0300 (EEST)
Message-Id: <200210231559.g9NFxMTK044254@kurush.osdn.org.ua>
Date: Wed, 23 Oct 2002 18:59:22 +0300 (EEST)
From: Alexandr Kovalenko <never@nevermind.kiev.ua>
Reply-To: Alexandr Kovalenko <never@nevermind.kiev.ua>
To: FreeBSD-gnats-submit@freebsd.org
Cc: Oliver Braun <obraun@freebsd.org>
Subject: [MAINTAINER UPDATE] converters/enca: Add support for NOPORTDOCS
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         44412
>Category:       ports
>Synopsis:       [MAINTAINER UPDATE] converters/enca: Add support for NOPORTDOCS
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Wed Oct 23 09:00:20 PDT 2002
>Closed-Date:    Wed Oct 23 10:05:23 PDT 2002
>Last-Modified:  Wed Oct 23 10:05:23 PDT 2002
>Originator:     Alexandr Kovalenko
>Release:        FreeBSD 4.7-RELEASE i386
>Organization:
Self-employed
>Environment:
System: FreeBSD kurush.osdn.org.ua 4.7-RELEASE FreeBSD 4.7-RELEASE #1: Tue Oct 15 17:18:12 EEST 2002 root@kurush.osdn.org.ua:/usr/obj/usr/src/sys/kurush i386

>Description:
	- Add support for NOPORTDOCS

	Requested by: Oliver Braun <obraun@FreeBSD.org>
>How-To-Repeat:
N/A
>Fix:

diff -ruN enca/Makefile enca-devel/Makefile
--- enca/Makefile	Wed Oct 23 17:24:54 2002
+++ enca-devel/Makefile	Wed Oct 23 18:55:36 2002
@@ -17,6 +17,7 @@
 USE_BZIP2=	yes
 USE_GMAKE=	yes
 USE_LIBTOOL=	yes
+USE_REINPLACE=	yes
 INSTALLS_SHLIB=	yes
 CONFIGURE_ARGS=	--with-html-dir=${PREFIX}/share/doc/enca \
 		--without-librecode \
@@ -26,5 +27,10 @@
 
 MAN1=	enca.1
 MLINKS=	enca.1 enconv.1
+
+post-patch::
+.if defined(NOPORTDOCS)
+	@${REINPLACE_CMD} -e 's#\ devel-docs##g' ${WRKSRC}/Makefile.in
+.endif
 
 .include <bsd.port.mk>
diff -ruN enca/pkg-plist enca-devel/pkg-plist
--- enca/pkg-plist	Wed Oct 23 17:18:19 2002
+++ enca-devel/pkg-plist	Wed Oct 23 18:37:37 2002
@@ -8,12 +8,12 @@
 lib/libenca.a
 lib/libenca.so
 lib/libenca.so.2
-share/doc/enca/libenca/c4.html
-share/doc/enca/libenca/index.html
-share/doc/enca/libenca/index.sgml
-share/doc/enca/libenca/libenca-analyser.html
-share/doc/enca/libenca/libenca-auxiliary-functions.html
-share/doc/enca/libenca/libenca-charsets-and-surfaces.html
-share/doc/enca/libenca/libenca-typedefs-and-constants.html
-@dirrm share/doc/enca/libenca
-@dirrm share/doc/enca
+%%PORTDOCS%%share/doc/enca/libenca/c4.html
+%%PORTDOCS%%share/doc/enca/libenca/index.html
+%%PORTDOCS%%share/doc/enca/libenca/index.sgml
+%%PORTDOCS%%share/doc/enca/libenca/libenca-analyser.html
+%%PORTDOCS%%share/doc/enca/libenca/libenca-auxiliary-functions.html
+%%PORTDOCS%%share/doc/enca/libenca/libenca-charsets-and-surfaces.html
+%%PORTDOCS%%share/doc/enca/libenca/libenca-typedefs-and-constants.html
+%%PORTDOCS%%@dirrm share/doc/enca/libenca
+%%PORTDOCS%%@dirrm share/doc/enca
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: obraun 
State-Changed-When: Wed Oct 23 10:04:18 PDT 2002 
State-Changed-Why:  
Committed, thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=44412 
>Unformatted:
