ports/144011: [PATCH]math/ntl: update to 5.5.2

bf bf1783 at gmail.com
Tue Feb 16 19:20:11 UTC 2010


>Number:         144011
>Category:       ports
>Synopsis:       [PATCH]math/ntl: update to 5.5.2
>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:   Tue Feb 16 19:20:11 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     bf
>Release:        9-CURRENT amd64
>Organization:
-
>Environment:
>Description:
Update to 5.5.2.  Support non-default PREFIX/LOCALBASE.  Allow the port to be built with lang/gcc4* and devel/binutils.  Simplify a few parts of the Makefile.  Add a test target.

I did not add a shared library because our devel/libtool22 has problems with lang/gcc4*, and I wanted to make it possible to use the later compilers, without having to patch the port.  I may revisit this in a later commit, and possibly also add gf2x support, if nobody else has done so.
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

diff -x 'old.*' -x 'new.*' -ruN ntl.orig/Makefile ntl/Makefile
--- ntl.orig/Makefile	2010-02-16 13:48:10.000000000 -0500
+++ ntl/Makefile	2010-02-16 14:03:41.000000000 -0500
@@ -6,8 +6,7 @@
 #
 
 PORTNAME=	ntl
-PORTVERSION=	5.4.2
-PORTREVISION=	2
+PORTVERSION=	5.5.2
 CATEGORIES=	math
 MASTER_SITES=	http://www.shoup.net/ntl/
 
@@ -17,31 +16,35 @@
 # ntl is faster with libgmp4, but you can disable it
 .if !defined(WITHOUT_GMP)
 LIB_DEPENDS=	gmp.8:${PORTSDIR}/math/libgmp4
+
+CONFIGURE_ARGS=	NTL_GMP_LIP=on
 .endif
 
 USE_PERL5_BUILD=	yes
 HAS_CONFIGURE=	yes
-CONFIGURE_ARGS=	CC="${CC}" CFLAGS="${CFLAGS}" \
-		CXX="${CXX}" CXXFLAGS="${CXXFLAGS}" NTL_STD_CXX=on
-
-.if !defined(WITHOUT_GMP)
-CONFIGURE_ARGS+=	NTL_GMP_LIP=on GMP_PREFIX="${LOCALBASE}"
-.endif
-
-CONFIGURE_WRKSRC=	${BUILD_WRKSRC}
+CONFIGURE_ARGS+=	AR="${AR}" \
+		CC="${CC}" CFLAGS="${CFLAGS}" \
+		CXX="${CXX}" CXXFLAGS="${CXXFLAGS}" \
+		DEF_PREFIX="${LOCALBASE}" \
+		LDFLAGS="${LDFLAGS}" NTL_STD_CXX=on \
+		PREFIX="${PREFIX}" RANLIB="${RANLIB}"
 
-BUILD_WRKSRC=	${WRKSRC}/src
+WRKSRC=	${WRKDIR}/${DISTNAME}/src
 MAKEFILE=	makefile
 
 do-install:
 	${MKDIR} ${PREFIX}/include/NTL
-	${INSTALL_DATA} ${WRKSRC}/include/NTL/*  ${PREFIX}/include/NTL/
-	${INSTALL_DATA} ${BUILD_WRKSRC}/ntl.a ${PREFIX}/lib/libntl.a
+	${INSTALL_DATA} ${WRKSRC}/../include/NTL/*  ${PREFIX}/include/NTL/
+	${INSTALL_DATA} ${WRKSRC}/ntl.a ${PREFIX}/lib/libntl.a
 
 post-install:
 .if !defined(NOPORTDOCS)
 	${MKDIR} ${DOCSDIR}
-	${INSTALL_DATA} ${WRKSRC}/doc/* ${DOCSDIR}
+	${INSTALL_DATA} ${WRKSRC}/../doc/* ${DOCSDIR}
 .endif
 
+test: build
+	@(cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE} \
+		${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} check)
+
 .include <bsd.port.mk>
diff -x 'old.*' -x 'new.*' -ruN ntl.orig/distinfo ntl/distinfo
--- ntl.orig/distinfo	2010-02-16 13:48:10.000000000 -0500
+++ ntl/distinfo	2010-02-16 11:47:29.000000000 -0500
@@ -1,3 +1,3 @@
-MD5 (ntl-5.4.2.tar.gz) = 0aac5c680eee09a19732e1601b237a0b
-SHA256 (ntl-5.4.2.tar.gz) = 06925936cabba68e4c3d7371e8681381292d21e8cc22ac68314bf36e265ded58
-SIZE (ntl-5.4.2.tar.gz) = 692630
+MD5 (ntl-5.5.2.tar.gz) = 2e0afa1fa3b325e562ce89da57cba983
+SHA256 (ntl-5.5.2.tar.gz) = ef7fe7c8b60ec6e05b2a279caad0081263f7fb68b7360120846644cde726ff56
+SIZE (ntl-5.5.2.tar.gz) = 707247
diff -x 'old.*' -x 'new.*' -ruN ntl.orig/pkg-plist ntl/pkg-plist
--- ntl.orig/pkg-plist	2010-02-16 13:48:10.000000000 -0500
+++ ntl/pkg-plist	2010-02-16 13:26:33.000000000 -0500
@@ -148,6 +148,7 @@
 %%PORTDOCS%%%%DOCSDIR%%/tour-ex5.html
 %%PORTDOCS%%%%DOCSDIR%%/tour-ex6.html
 %%PORTDOCS%%%%DOCSDIR%%/tour-examples.html
+%%PORTDOCS%%%%DOCSDIR%%/tour-gf2x.html
 %%PORTDOCS%%%%DOCSDIR%%/tour-gmp.html
 %%PORTDOCS%%%%DOCSDIR%%/tour-impl.html
 %%PORTDOCS%%%%DOCSDIR%%/tour-intro.html
@@ -156,6 +157,7 @@
 %%PORTDOCS%%%%DOCSDIR%%/tour-stdcxx.html
 %%PORTDOCS%%%%DOCSDIR%%/tour-struct.html
 %%PORTDOCS%%%%DOCSDIR%%/tour-time.html
+%%PORTDOCS%%%%DOCSDIR%%/tour-tips.html
 %%PORTDOCS%%%%DOCSDIR%%/tour-unix.html
 %%PORTDOCS%%%%DOCSDIR%%/tour-win.html
 %%PORTDOCS%%%%DOCSDIR%%/tour.html


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list