git: b7b216cee156 - main - math/lcalc: Improve port
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 17 May 2025 09:57:55 UTC
The branch main has been updated by diizzy: URL: https://cgit.FreeBSD.org/ports/commit/?id=b7b216cee15607d5a62145bcc8e114e0d569ab36 commit b7b216cee15607d5a62145bcc8e114e0d569ab36 Author: Daniel Engberg <diizzy@FreeBSD.org> AuthorDate: 2025-05-17 02:02:02 +0000 Commit: Daniel Engberg <diizzy@FreeBSD.org> CommitDate: 2025-05-17 09:53:15 +0000 math/lcalc: Improve port * Change PORTVERSION --> DISTVERSION * Update MASTER_SITES * Define LICENSE_FILE * Drop USES= autoreconf * Fix LIB_DEPENDS * Remove GITLAB variables * Define --with-pkgconfigdir * Minor layout changes in Makefile to closer follow Porters Handbook Source: https://github.com/sagemath/sage/releases/download/10.6/mirror_list PR: 286540 Approved by: maintainer timeout, 2+ weeks --- math/lcalc/Makefile | 36 +++++++++++++++++++----------------- 1 file changed, 19 insertions(+), 17 deletions(-) diff --git a/math/lcalc/Makefile b/math/lcalc/Makefile index c4dc68f3cd21..c2ade72e45b3 100644 --- a/math/lcalc/Makefile +++ b/math/lcalc/Makefile @@ -1,37 +1,39 @@ PORTNAME= lcalc -PORTVERSION= 2.1.0 +DISTVERSION= 2.1.0 +PORTREVISION= 1 CATEGORIES= math -MASTER_SITES= ftp://ftp.fu-berlin.de/unix/misc/sage/spkg/upstream/lcalc/ +MASTER_SITES= https://mirror.csclub.uwaterloo.ca/sage/spkg/upstream/${PORTNAME}/ \ + https://mirror.lyrahosting.com/sagemath/spkg/upstream/${PORTNAME}/ \ + https://mirror.dogado.de/sage/spkg/upstream/${PORTNAME}/ \ + http://files.sagemath.org/spkg/upstream/${PORTNAME}/ MAINTAINER= thierry@FreeBSD.org COMMENT= L-function c++ class library and the CLI program lcalc WWW= https://gitlab.com/sagemath/lcalc LICENSE= GPLv2+ +LICENSE_FILE= ${WRKSRC}/doc/COPYING BUILD_DEPENDS= gengetopt:devel/gengetopt -LIB_DEPENDS= libgmp.so:math/gmp \ - libmpfr.so:math/mpfr \ - libpari.so:math/pari +LIB_DEPENDS= libpari.so:math/pari -#USE_GITLAB= yes -#GL_ACCOUNT= sagemath - -USES= autoreconf compiler:c++11-lang gmake libtool localbase \ - pkgconfig tar:xz +USES= compiler:c++11-lang gmake libtool localbase pkgconfig tar:xz +USE_LDCONFIG= yes GNU_CONFIGURE= yes -CONFIGURE_ARGS= --with-pari + INSTALL_TARGET= install-strip TEST_TARGET= check -USE_LDCONFIG= yes + +CONFIGURE_ARGS= --with-pari \ + --with-pkgconfigdir=${PREFIX}/libdata/pkgconfig OPTIONS_DEFINE= DOCS EXAMPLES -pre-configure: -.for dir in . data - ${REINPLACE_CMD} -e 's|@docdir@/examples|${EXAMPLESDIR}|' \ - ${WRKSRC}/doc/examples/${dir}/Makefile.am -.endfor +post-configure: + ${REINPLACE_CMD} -e 's|$$(DESTDIR)$$(docdir)|${STAGEDIR}${EXAMPLESDIR}|g' \ + ${PATCH_WRKSRC}/doc/examples/Makefile + ${REINPLACE_CMD} -e 's|$$(DESTDIR)$$(docdir)|${STAGEDIR}${EXAMPLESDIR}/data|g' \ + ${PATCH_WRKSRC}/doc/examples/*/Makefile .include <bsd.port.mk>