Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 19 Jul 2003 15:31:31 +0200 (CEST)
From:      Ulrich Spoerlein <q@uni.de>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        rael@vectorstar.net
Subject:   ports/54636: misc/gtktalog: Remove PERL dependancy and fix configure script.
Message-ID:  <200307191331.h6JDVVwT034335@roadrunner.local>
Resent-Message-ID: <200307191340.h6JDeEqL046359@freefall.freebsd.org>

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

>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@-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:



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