ports/54636: misc/gtktalog: Remove PERL dependancy and fix configure script.

Ulrich Spoerlein q at uni.de
Sat Jul 19 13:40:16 UTC 2003


>Number:         54636
>Category:       ports
>Synopsis:       misc/gtktalog: Remove PERL dependancy and fix configure script.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jul 19 06:40:13 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator:     Ulrich Spoerlein
>Release:        FreeBSD 5.1-RELEASE i386
>Organization:
>Environment:
>Description:
gtktalog has an unnecessary PATCH_DEPENDS on PERL and the configure script fails to detect:
1) phthreads
2) xgettext
>How-To-Repeat:
Run 'make configure', watch the output closely.
>Fix:

--- patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/misc/gtktalog/Makefile,v
retrieving revision 1.8
diff -u -r1.8 Makefile
--- Makefile	14 Jul 2003 04:50:08 -0000	1.8
+++ Makefile	19 Jul 2003 13:28:04 -0000
@@ -17,19 +17,22 @@
 GNU_CONFIGURE=	yes
 USE_X_PREFIX=	yes
 USE_BZIP2=	yes
-USE_PERL5=	yes
+USE_REINPLACE=	yes
 
 MAN1=		gtktalog.1
 
 DOCS=	AUTHORS BUGS COPYING ChangeLog NEWS README TODO
 
+CONFIGURE_ENV=	XGETTEXT=${LOCALBASE}/bin/xgettext
+
 post-patch:
-	${PERL} -pi -e "s@^(Applicationsdir = ).*@\1${PREFIX}/share/gnome/apps/Applications@" ${WRKSRC}/Makefile.in
-	${PERL} -pi -e "s@^(localedir = ).*@\1${PREFIX}/share/locale@" \
+	@${REINPLACE_CMD} -e "s at -lpthread@${PTHREAD_LIBS}@" ${WRKSRC}/configure
+	@${REINPLACE_CMD} -E "s@^(Applicationsdir = ).*@\1${PREFIX}/share/gnome/apps/Applications@" ${WRKSRC}/Makefile.in
+	@${REINPLACE_CMD} -E "s@^(localedir = ).*@\1${PREFIX}/share/locale@" \
 		${WRKSRC}/po/Makefile.in.in
-	${PERL} -pi -e "s@^(gtktalog_helpdir = ).*@\1${PREFIX}/share/gnome/help/gtktalog/C@" ${WRKSRC}/Docs/C/Makefile.in
-	${PERL} -pi -e "s@^(gtktalog_helpdir = ).*@\1${PREFIX}/share/gnome/help/gtktalog/fr@" ${WRKSRC}/Docs/fr/Makefile.in
-	${PERL} -pi -e "s@^(MountPoint ).*@\1/cdrom@" \
+	@${REINPLACE_CMD} -E "s@^(gtktalog_helpdir = ).*@\1${PREFIX}/share/gnome/help/gtktalog/C@" ${WRKSRC}/Docs/C/Makefile.in
+	@${REINPLACE_CMD} -E "s@^(gtktalog_helpdir = ).*@\1${PREFIX}/share/gnome/help/gtktalog/fr@" ${WRKSRC}/Docs/fr/Makefile.in
+	@${REINPLACE_CMD} -E "s@^(MountPoint ).*@\1/cdrom@" \
 		${WRKSRC}/src/gtktalog/gtktalog.cf.in.in
 
 post-install:
--- patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list