Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Sep 2002 09:48:19 -0700 (PDT)
From:      KATO Tsuguru <tkato@prontomail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/42878: Update port: devel/gindent
Message-ID:  <200209171648.g8HGmJHr014398@www.freebsd.org>

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

>Number:         42878
>Category:       ports
>Synopsis:       Update port: devel/gindent
>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:   Tue Sep 17 10:10:02 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     KATO Tsuguru
>Release:        4.6.2-RELEASE i386
>Organization:
>Environment:
>Description:
- Support CFLAGS/CXXFLAGS properly
- Utilize NOPORTDOCS

>How-To-Repeat:

>Fix:
diff -urN /usr/ports/devel/gindent/Makefile devel/gindent/Makefile
--- /usr/ports/devel/gindent/Makefile	Tue Sep 10 20:08:12 2002
+++ devel/gindent/Makefile	Sun Sep 15 03:16:34 2002
@@ -8,6 +8,7 @@
 
 PORTNAME=	gindent
 PORTVERSION=	2.2.8a
+PORTREVISION=	1
 CATEGORIES=	devel
 MASTER_SITES=	http://home.hccnet.nl/d.ingamells/ \
 		${MASTER_SITE_GNU}
@@ -16,13 +17,14 @@
 
 MAINTAINER=	ports@FreeBSD.org
 
-LIB_DEPENDS=	intl:${PORTSDIR}/devel/gettext
+LIB_DEPENDS=	intl.4:${PORTSDIR}/devel/gettext
 
 USE_REINPLACE=	yes
 GNU_CONFIGURE=	yes
-CONFIGURE_ENV=	CPPFLAGS="${CXXFLAGS} -I${LOCALBASE}/include" \
+CONFIGURE_TARGET=	--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include" \
 		LDFLAGS="-L${LOCALBASE}/lib"
-CONFIGURE_ARGS=	--program-prefix=g --without-included-gettext
+CONFIGURE_ARGS=	--program-prefix=g
 MAKE_ARGS=	BERKELEY_DEFAULTS=1
 
 MAN1=		gindent.1
@@ -30,5 +32,9 @@
 post-patch:
 	@${GREP} -lR "malloc.h" ${WRKSRC} | ${XARGS} \
 		${REINPLACE_CMD} -e "s/malloc.h/stdlib.h/g"
+
+post-install:
+	@${MKDIR} ${DOCSDIR}
+	${INSTALL_DATA} ${WRKSRC}/doc/indent.html ${DOCSDIR}
 
 .include <bsd.port.mk>
diff -urN /usr/ports/devel/gindent/files/patch-doc:Makefile.in devel/gindent/files/patch-doc:Makefile.in
--- /usr/ports/devel/gindent/files/patch-doc:Makefile.in	Tue Jun 25 15:38:17 2002
+++ devel/gindent/files/patch-doc:Makefile.in	Sun Sep 15 03:21:25 2002
@@ -1,11 +1,15 @@
---- doc/Makefile.in.orig	Tue Jun 25 14:31:43 2002
-+++ doc/Makefile.in	Tue Jun 25 14:32:50 2002
-@@ -103,7 +103,7 @@
+--- doc/Makefile.in.orig	Wed May 22 04:01:16 2002
++++ doc/Makefile.in	Sun Sep 15 03:21:16 2002
+@@ -364,9 +364,9 @@
  
- info_TEXINFOS = indent.texinfo
  
--docdir = $(prefix)/doc/@PACKAGE@
-+docdir = $(prefix)/share/doc/@PACKAGE@
- dvidir = $(docdir)
- psdir = $(docdir)
- pdfdir = $(docdir)
+ all-local: html
+-install-data-local: install-html
+-installdirs-local: installdirs-html
+-uninstall-local: uninstall-html
++install-data-local: # install-html
++installdirs-local: # installdirs-html
++uninstall-local: # uninstall-html
+ 
+ html: html-$(HTMLSTYLE)
+ install-html: install-html-$(HTMLSTYLE)
diff -urN /usr/ports/devel/gindent/pkg-plist devel/gindent/pkg-plist
--- /usr/ports/devel/gindent/pkg-plist	Tue Sep 10 20:08:15 2002
+++ devel/gindent/pkg-plist	Sun Sep 15 03:20:06 2002
@@ -3,7 +3,7 @@
 @unexec install-info --delete %D/info/indent.info %D/info/dir
 info/indent.info
 @exec install-info %D/info/indent.info %D/info/dir
-share/doc/indent/indent.html
+%%PORTDOCS%%share/doc/gindent/indent.html
 share/locale/ca/LC_MESSAGES/indent.mo
 share/locale/da/LC_MESSAGES/indent.mo
 share/locale/de/LC_MESSAGES/indent.mo
@@ -21,4 +21,4 @@
 share/locale/sv/LC_MESSAGES/indent.mo
 share/locale/tr/LC_MESSAGES/indent.mo
 share/locale/zh_TW.Big5/LC_MESSAGES/indent.mo
-@dirrm share/doc/indent
+%%PORTDOCS%%@dirrm share/doc/gindent

>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?200209171648.g8HGmJHr014398>