Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 8 Apr 2002 12:15:21 -0700 (PDT)
From:      KATO Tsuguru <tkato@prontomail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/36892: Update port: graphics/gsubedit 
Message-ID:  <200204081915.g38JFLe16515@freefall.freebsd.org>

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

>Number:         36892
>Category:       ports
>Synopsis:       Update port: graphics/gsubedit
>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 Apr 08 12:20:02 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     KATO Tsuguru
>Release:        4.4-RELEASE i386
>Organization:
>Environment:
>Description:
- Support CFLAGS properly
- Remove unnecessary USE_BISON
- Utilize NOPORTDOCS

Remove file:
files/patch-pixmaps::Makefile.in

>How-To-Repeat:

>Fix:
diff -urN /usr/ports/graphics/gsubedit/Makefile graphics/gsubedit/Makefile
--- /usr/ports/graphics/gsubedit/Makefile	Tue Mar 12 02:54:27 2002
+++ graphics/gsubedit/Makefile	Tue Apr  9 03:36:47 2002
@@ -8,6 +8,7 @@
 
 PORTNAME=	gsubedit
 PORTVERSION=	0.3
+PORTREVISION=	1
 CATEGORIES=	graphics
 MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
 MASTER_SITE_SUBDIR=	${PORTNAME}
@@ -15,14 +16,28 @@
 MAINTAINER=	ports@FreeBSD.org
 
 USE_X_PREFIX=	yes
-USE_BISON=	yes
+USE_GMAKE=	yes
 USE_GNOME=	yes
 GNU_CONFIGURE=	yes
-CONFIGURE_ARGS=	--with-gnome
-USE_GMAKE=	yes
+CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include" \
+		LDFLAGS="-L${LOCALBASE}/lib"
 
 post-patch:
-	@${PERL} -pi -e "s,Bison ,Bison,g" ${WRKSRC}/configure
-	@${PERL} -pi -e "s,doc/,share/doc/,g" ${WRKSRC}/Makefile.in
+	@${PERL} -pi -e 's|Bison |Bison|g ; \
+		 s|-lpthread|${PTHREAD_LIBS}|g ; \
+		 s|DATADIRNAME=lib|DATADIRNAME=share|g ; \
+		 s|share/pixmaps|share/gnome/pixmaps|g' ${WRKSRC}/configure
+	@${FIND} ${WRKSRC} -name "Makefile.in*" | ${XARGS} ${PERL} -pi -e \
+		's|^gsubeditdoc|#gsubeditdoc|g ; \
+		 s|-g -O2|| ; \
+		 s|\$$\(datadir\)/locale|\$$\(prefix\)/share/locale|'
+
+post-install:
+.if !defined(NOPORTDOCS)
+	@${MKDIR} ${DOCSDIR}
+.for file in AUTHORS ChangeLog INSTALL README TODO
+	${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
+.endfor
+.endif
 
 .include <bsd.port.mk>
diff -urN /usr/ports/graphics/gsubedit/files/patch-pixmaps::Makefile.in graphics/gsubedit/files/patch-pixmaps::Makefile.in
--- /usr/ports/graphics/gsubedit/files/patch-pixmaps::Makefile.in	Tue Mar 12 02:54:27 2002
+++ graphics/gsubedit/files/patch-pixmaps::Makefile.in	Thu Jan  1 09:00:00 1970
@@ -1,11 +0,0 @@
---- pixmaps/Makefile.in.orig	Tue Mar 12 01:34:16 2002
-+++ pixmaps/Makefile.in	Tue Mar 12 01:36:23 2002
-@@ -119,7 +119,7 @@
- cflags_set = @cflags_set@
- cxxflags_set = @cxxflags_set@
- 
--gsubedit_pixmapsdir = $(prefix)/@NO_PREFIX_PACKAGE_PIXMAPS_DIR@
-+gsubedit_pixmapsdir = $(prefix)/share/gnome/pixmaps/gsubedit
- 
- gsubedit_pixmaps_DATA = \
- 		      gsubedit_icon.png
diff -urN /usr/ports/graphics/gsubedit/pkg-plist graphics/gsubedit/pkg-plist
--- /usr/ports/graphics/gsubedit/pkg-plist	Tue Mar 12 02:54:27 2002
+++ graphics/gsubedit/pkg-plist	Mon Apr  1 05:02:59 2002
@@ -1,13 +1,12 @@
 bin/gsubedit
-share/doc/gsubedit/ABOUT-NLS
-share/doc/gsubedit/AUTHORS
-share/doc/gsubedit/COPYING
-share/doc/gsubedit/ChangeLog
-share/doc/gsubedit/INSTALL
-share/doc/gsubedit/README
-share/doc/gsubedit/TODO
+%%PORTDOCS%%share/doc/gsubedit/AUTHORS
+%%PORTDOCS%%share/doc/gsubedit/ChangeLog
+%%PORTDOCS%%share/doc/gsubedit/INSTALL
+%%PORTDOCS%%share/doc/gsubedit/README
+%%PORTDOCS%%share/doc/gsubedit/TODO
 share/gnome/apps/Applications/gsubedit.desktop
 share/gnome/help/gsubedit/C/index.html
 share/gnome/help/gsubedit/C/topic.dat
-share/gnome/locale/sv/LC_MESSAGES/gsubedit.mo
 share/gnome/pixmaps/gsubedit/gsubedit_icon.png
+share/locale/sv/LC_MESSAGES/gsubedit.mo
+%%PORTDOCS%%@dirrm share/doc/gsubedit

>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?200204081915.g38JFLe16515>