From nobody@FreeBSD.org  Sat Dec  8 11:11:01 2001
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21])
	by hub.freebsd.org (Postfix) with ESMTP id 9EC0E37B41D
	for <freebsd-gnats-submit@FreeBSD.org>; Sat,  8 Dec 2001 11:11:00 -0800 (PST)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.11.6/8.11.6) id fB8JB0X99598;
	Sat, 8 Dec 2001 11:11:00 -0800 (PST)
	(envelope-from nobody)
Message-Id: <200112081911.fB8JB0X99598@freefall.freebsd.org>
Date: Sat, 8 Dec 2001 11:11:00 -0800 (PST)
From: KATO Tsuguru <tkato@prontomail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Update port: math/GiNaC
X-Send-Pr-Version: www-1.0

>Number:         32623
>Category:       ports
>Synopsis:       Update port: math/GiNaC
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Dec 08 11:20:00 PST 2001
>Closed-Date:    Sat Dec 8 12:30:56 PST 2001
>Last-Modified:  Sat Dec 08 12:31:04 PST 2001
>Originator:     KATO Tsuguru
>Release:        4.4-RELEASE i386
>Organization:
>Environment:
>Description:
- Fix pkg-plist

New file:
files/patch-ltmain.sh

>How-To-Repeat:

>Fix:
diff -urN /usr/ports/math/GiNaC/Makefile math/GiNaC/Makefile
--- /usr/ports/math/GiNaC/Makefile	Tue Nov 27 20:34:48 2001
+++ math/GiNaC/Makefile	Sat Dec  8 10:32:19 2001
@@ -8,32 +8,36 @@
 
 PORTNAME=	GiNaC
 PORTVERSION=	1.0.1
+PORTREVISION=	1
 CATEGORIES=	math
 MASTER_SITES=	ftp://ftpthep.physik.uni-mainz.de/pub/GiNaC/ \
 		http://www.ginac.de/
 
 MAINTAINER=	ports@FreeBSD.org
 
-USE_BZIP2=	yes
-LIB_DEPENDS=	cln:${PORTSDIR}/math/cln
+LIB_DEPENDS=	cln.2:${PORTSDIR}/math/cln
 
-USE_LIBTOOL=	yes
-USE_GMAKE=	yes
+USE_BZIP2=	yes
 USE_NEWGCC=	yes
-
+USE_GMAKE=	yes
+GNU_CONFIGURE=	yes
+CONFIGURE_TARGET=	--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include" \
+		LDFLAGS="-L${LOCALBASE}/lib" \
+		MAKEINFO="makeinfo --no-split"
 INSTALLS_SHLIB=	yes
 
-MAN1=	ginsh.1 viewgar.1 ginac-config.1
+MAN1=	ginac-config.1 ginsh.1 viewgar.1
+
+post-extract:
+	@${RM} -f ${WRKSRC}/doc/tutorial/ginac.info*
 
 post-patch:
-	@${PERL} -pi -e "s,sstream,strstream,g" ${WRKSRC}/configure
-.for file in numeric.cpp tostring.h
-	@${PERL} -pi -e "s,sstream,strstream,g ; \
-		s,stringstream,strstream,g" ${WRKSRC}/ginac/${file}
+.for file in configure ginac/numeric.cpp ginac/tostring.h
+	@${PERL} -pi -e 's|sstream|strstream|g ; \
+		 s|stringstream|strstream|g' ${WRKSRC}/${file}
 .endfor
-
-pre-build:
-	@(cd ${WRKSRC} ; \
-	  ${LN} -sf ${PREFIX}/bin/libtool)
+	@${PERL} -pi -e 's|-release \$$\(LT_RELEASE\)||g' \
+		${WRKSRC}/ginac/Makefile.in
 
 .include <bsd.port.mk>
diff -urN /usr/ports/math/GiNaC/files/patch-ltmain.sh math/GiNaC/files/patch-ltmain.sh
--- /usr/ports/math/GiNaC/files/patch-ltmain.sh	Thu Jan  1 09:00:00 1970
+++ math/GiNaC/files/patch-ltmain.sh	Fri Dec  7 23:34:59 2001
@@ -0,0 +1,32 @@
+--- ltmain.sh.orig	Thu Nov 22 23:00:08 2001
++++ ltmain.sh	Fri Dec  7 23:34:47 2001
+@@ -1043,14 +1043,14 @@
+ 	    # These systems don't actually have a C library (as such)
+ 	    test "X$arg" = "X-lc" && continue
+ 	    ;;
+-	  *-*-openbsd*)
++	  *-*-openbsd* | *-*-freebsd*)
+ 	    # Do not include libc due to us having libc/libc_r.
+ 	    test "X$arg" = "X-lc" && continue
+ 	    ;;
+ 	  esac
+ 	 elif test "X$arg" = "X-lc_r"; then
+ 	  case $host in
+-	  *-*-openbsd*)
++	  *-*-openbsd* | *-*-freebsd*)
+ 	    # Do not include libc_r directly, use -pthread flag.
+ 	    continue
+ 	    ;;
+@@ -4210,10 +4210,12 @@
+ 	fi
+ 
+ 	# Install the pseudo-library for information purposes.
++	if /usr/bin/false ; then
+ 	name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
+ 	instname="$dir/$name"i
+ 	$show "$install_prog $instname $destdir/$name"
+ 	$run eval "$install_prog $instname $destdir/$name" || exit $?
++	fi
+ 
+ 	# Maybe install the static library, too.
+ 	test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"
diff -urN /usr/ports/math/GiNaC/pkg-plist math/GiNaC/pkg-plist
--- /usr/ports/math/GiNaC/pkg-plist	Tue Nov 27 20:34:49 2001
+++ math/GiNaC/pkg-plist	Sat Dec  8 03:17:31 2001
@@ -5,9 +5,9 @@
 include/ginac/archive.h
 include/ginac/assertion.h
 include/ginac/basic.h
-include/ginac/constant.h
 include/ginac/clifford.h
 include/ginac/color.h
+include/ginac/constant.h
 include/ginac/ex.h
 include/ginac/expair.h
 include/ginac/expairseq.h
@@ -39,16 +39,11 @@
 include/ginac/tinfos.h
 include/ginac/version.h
 include/ginac/wildcard.h
-@dirrm include/ginac
 @unexec install-info --delete %D/info/ginac.info %D/info/dir
 info/ginac.info
-info/ginac.info-1
-info/ginac.info-2
-info/ginac.info-3
-info/ginac.info-4
-info/ginac.info-5
 @exec install-info %D/info/ginac.info %D/info/dir
 lib/libginac.a
 lib/libginac.so
-lib/libginac-1.0.so.0
+lib/libginac.so.0
 share/aclocal/ginac.m4
+@dirrm include/ginac

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: ijliao 
State-Changed-When: Sat Dec 8 12:30:56 PST 2001 
State-Changed-Why:  
committed, thanks 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=32623 
>Unformatted:
