Any objections? I'll commit this soon otherwise :)
On Sat, Dec 22, 2018 at 01:23:32AM +0200, Paul Irofti wrote:
> Hi,
>
> Here is an update for libcerf 1.10.
>
> There are a couple of important changes among which a major library
> bump and a migration from autoconf to cmake. More details here:
>
> http://apps.jcns.fz-juelich.de/src/libcerf/CHANGELOG
>
> I also patched the manpage install directory.
>
> OK?
>
> Paul
>
>
> Index: Makefile
> ===================================================================
> RCS file: /cvs/ports/math/libcerf/Makefile,v
> retrieving revision 1.1.1.1
> diff -u -p -u -p -r1.1.1.1 Makefile
> --- Makefile 4 Nov 2017 11:50:52 -0000 1.1.1.1
> +++ Makefile 21 Dec 2018 23:20:32 -0000
> @@ -2,13 +2,13 @@
>
> COMMENT = implementation of complex error functions
>
> -V = 1.5
> +V = 1.10
> DISTNAME = libcerf-${V}
> EXTRACT_SUFX = .tgz
> CATEGORIES = math
> MASTER_SITES = http://apps.jcns.fz-juelich.de/src/libcerf/
>
> -SHARED_LIBS += cerf 0.0 # 1.5
> +SHARED_LIBS += cerf 1.0 # 1.10
>
> HOMEPAGE = http://apps.jcns.fz-juelich.de/doku/sc/libcerf
>
> @@ -19,10 +19,8 @@ PERMIT_PACKAGE_CDROM = Yes
>
> WANTLIB += c m ${COMPILER_LIBCXX}
>
> -COMPILER = ports-gcc # imaginary constants are a GNU extension
> -CONFIGURE_STYLE = gnu
> +MODULES = devel/cmake
>
> -CONFIGURE_ENV = CPPFLAGS="-I${LOCALBASE}/include" \
> - LDFLAGS="-L${LOCALBASE}/lib"
> +COMPILER = ports-gcc # imaginary constants are a GNU extension
>
> .include <bsd.port.mk>
> Index: distinfo
> ===================================================================
> RCS file: /cvs/ports/math/libcerf/distinfo,v
> retrieving revision 1.1.1.1
> diff -u -p -u -p -r1.1.1.1 distinfo
> --- distinfo 4 Nov 2017 11:50:52 -0000 1.1.1.1
> +++ distinfo 21 Dec 2018 23:20:32 -0000
> @@ -1,2 +1,2 @@
> -SHA256 (libcerf-1.5.tgz) = 423BR+f/+BFDB0ohVQwlm1qsG5n8MU/ArjMpQjHKXIY=
> -SIZE (libcerf-1.5.tgz) = 413926
> +SHA256 (libcerf-1.10.tgz) = akEsE+QEQR13EFxzGnVjhJcEJNb2XRxMY3WMKBg9S2E=
> +SIZE (libcerf-1.10.tgz) = 60208
> Index: patches/patch-man_CMakeLists_txt
> ===================================================================
> RCS file: patches/patch-man_CMakeLists_txt
> diff -N patches/patch-man_CMakeLists_txt
> --- /dev/null 1 Jan 1970 00:00:00 -0000
> +++ patches/patch-man_CMakeLists_txt 21 Dec 2018 23:20:32 -0000
> @@ -0,0 +1,17 @@
> +$OpenBSD$
> +
> +Manual pages should go under ${PREFIX}/man/ rather than under
> +${PREFIX}/share/man/.
> +
> +Index: man/CMakeLists.txt
> +--- man/CMakeLists.txt.orig
> ++++ man/CMakeLists.txt
> +@@ -15,7 +15,7 @@ function(one_page pname section srcname)
> + )
> + install(
> + FILES ${CMAKE_CURRENT_BINARY_DIR}/${pname}.${section}
> +- DESTINATION "${CMAKE_INSTALL_PREFIX}/share/man/man${section}"
> ++ DESTINATION "${CMAKE_INSTALL_PREFIX}/man/man${section}"
> + )
> + install(
> + FILES ${CMAKE_CURRENT_BINARY_DIR}/${pname}.html
> Index: pkg/PLIST
> ===================================================================
> RCS file: /cvs/ports/math/libcerf/pkg/PLIST,v
> retrieving revision 1.1.1.1
> diff -u -p -u -p -r1.1.1.1 PLIST
> --- pkg/PLIST 4 Nov 2017 11:50:52 -0000 1.1.1.1
> +++ pkg/PLIST 21 Dec 2018 23:20:32 -0000
> @@ -1,7 +1,5 @@
> @comment $OpenBSD: PLIST,v 1.1.1.1 2017/11/04 11:50:52 pirofti Exp $
> include/cerf.h
> -lib/libcerf.a
> -lib/libcerf.la
> @lib lib/libcerf.so.${LIBcerf_VERSION}
> lib/pkgconfig/libcerf.pc
> @man man/man3/cdawson.3
> @@ -12,13 +10,21 @@ lib/pkgconfig/libcerf.pc
> @man man/man3/dawson.3
> @man man/man3/erfcx.3
> @man man/man3/erfi.3
> -@man man/man3/im_w_of_x.3
> +@man man/man3/im_w_of_z.3
> @man man/man3/voigt.3
> +@man man/man3/voigt_hwhm.3
> @man man/man3/w_of_z.3
> share/doc/libcerf/
> -share/doc/libcerf/cerf.html
> -share/doc/libcerf/dawson.html
> -share/doc/libcerf/erfcx.html
> -share/doc/libcerf/erfi.html
> -share/doc/libcerf/voigt.html
> -share/doc/libcerf/w_of_z.html
> +share/doc/libcerf/html/
> +share/doc/libcerf/html/cdawson.html
> +share/doc/libcerf/html/cerf.html
> +share/doc/libcerf/html/cerfc.html
> +share/doc/libcerf/html/cerfcx.html
> +share/doc/libcerf/html/cerfi.html
> +share/doc/libcerf/html/dawson.html
> +share/doc/libcerf/html/erfcx.html
> +share/doc/libcerf/html/erfi.html
> +share/doc/libcerf/html/im_w_of_z.html
> +share/doc/libcerf/html/voigt.html
> +share/doc/libcerf/html/voigt_hwhm.html
> +share/doc/libcerf/html/w_of_z.html