Skip to content

Commit

Permalink
math/singular: Add DOCS and GFAN options to enable docs and gfanlib m…
Browse files Browse the repository at this point in the history
…odule

PR:		271946
Submitted by:	thierry@ (initial patch)
  • Loading branch information
yurivict committed Jun 11, 2023
1 parent 77f8df9 commit 86bbcd6
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 70 deletions.
28 changes: 24 additions & 4 deletions math/singular/Makefile
@@ -1,9 +1,10 @@
PORTNAME= singular
DISTVERSIONPREFIX= Release-
DISTVERSION= 4-3-2
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= math
#MASTER_SITES= ftp://jim.mathematik.uni-kl.de/pub/Math/Singular/SOURCES/${PORTVERSION:C/\./-/g}/
DIST_SUBDIR= ${PORTNAME}

MAINTAINER= yuri@FreeBSD.org
COMMENT= Computer algebra system for polynomial computations
Expand All @@ -25,23 +26,33 @@ GH_ACCOUNT= Singular
GH_PROJECT= Singular

GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-gmp=${LOCALBASE} --disable-dependency-tracking --without-python
CONFIGURE_ARGS= --with-gmp=${LOCALBASE} --enable-Singular --enable-factory \
--with-libparse --disable-dependency-tracking --without-python

SHEBANG_FILES= Singular/surfex \
libpolys/libpolys-config.in \
libsingular-config.in

TEST_TARGET= check

OPTIONS_DEFINE= FLINT NTL
OPTIONS_DEFAULT= FLINT NTL
OPTIONS_DEFINE= DOCS FLINT GFAN NTL
OPTIONS_DEFAULT= DOCS FLINT GFAN NTL
OPTIONS_SUB= yes

DOCS_MASTER_SITES= ftp://jim.mathematik.uni-kl.de/pub/Math/Singular/SOURCES/${PORTVERSION:C/\./-/g}/:doc
DOCS_DISTFILES= doc.tbz2:doc
DOCS_INFO= ${PORTNAME}
PORTDOCS= *

FLINT_DESC= Use FLINT library
FLINT_CONFIGURE_ON= --with-flint=${LOCALBASE}
FLINT_CONFIGURE_OFF= --with-flint=no
FLINT_LIB_DEPENDS= libflint.so:math/flint2

GFAN_DESC= Build gfanlib library (bundled)
GFAN_CONFIGURE_ENABLE= gfanlib
GFAN_BUILD_DEPENDS= gfan_tropicalbasis:math/gfan

NTL_DESC= Use NTL library
NTL_USES= compiler:c11
NTL_CONFIGURE_ON= --with-ntl=${LOCALBASE}
Expand All @@ -57,4 +68,13 @@ post-patch:
post-install:
@${FIND} ${STAGEDIR}${PREFIX} -name "*.so" | ${XARGS} ${STRIP_CMD}

# Singular tarballs made using "make dist" (without --enable-doc-build)
# do not contain built documentation (from Sagemath).
post-install-DOCS-on:
${MKDIR} ${STAGEDIR}${PREFIX}/${INFO_PATH} \
${STAGEDIR}${DOCSDIR}
(cd ${STAGEDIR}${DOCSDIR} && ${TAR} xfj ${_DISTDIR}/doc.tbz2)
${MV} ${STAGEDIR}${DOCSDIR}/singular.info \
${STAGEDIR}${PREFIX}/${INFO_PATH}

.include <bsd.port.mk>
8 changes: 5 additions & 3 deletions math/singular/distinfo
@@ -1,3 +1,5 @@
TIMESTAMP = 1677437026
SHA256 (Singular-Singular-Release-4-3-2_GH0.tar.gz) = d74da6aa27b92ed5e099a15d2959fc9cbc325b989ddacb9096b473c6e8395278
SIZE (Singular-Singular-Release-4-3-2_GH0.tar.gz) = 13744295
TIMESTAMP = 1686474908
SHA256 (singular/doc.tbz2) = 10334afd99fe3a3e91669185ef5c104a25c97f0fd0dd6c53d98b47d5243df939
SIZE (singular/doc.tbz2) = 3976252
SHA256 (singular/Singular-Singular-Release-4-3-2_GH0.tar.gz) = d74da6aa27b92ed5e099a15d2959fc9cbc325b989ddacb9096b473c6e8395278
SIZE (singular/Singular-Singular-Release-4-3-2_GH0.tar.gz) = 13744295
18 changes: 0 additions & 18 deletions math/singular/files/patch-Makefile.am

This file was deleted.

12 changes: 0 additions & 12 deletions math/singular/files/patch-Singular_Makefile.am

This file was deleted.

31 changes: 0 additions & 31 deletions math/singular/files/patch-configure.ac

This file was deleted.

8 changes: 6 additions & 2 deletions math/singular/pkg-plist
@@ -1,6 +1,7 @@
bin/ESingular
bin/Singular
bin/TSingular
bin/libparse
bin/libpolys-config
bin/libsingular-config
include/factory/cf_gmp.h
Expand Down Expand Up @@ -255,8 +256,8 @@ libexec/singular/MOD/customstd.a
libexec/singular/MOD/customstd.so
libexec/singular/MOD/freealgebra.a
libexec/singular/MOD/freealgebra.so
libexec/singular/MOD/gfanlib.a
libexec/singular/MOD/gfanlib.so
%%GFAN%%libexec/singular/MOD/gfanlib.a
%%GFAN%%libexec/singular/MOD/gfanlib.so
libexec/singular/MOD/gitfan.a
libexec/singular/MOD/gitfan.so
libexec/singular/MOD/interval.a
Expand Down Expand Up @@ -293,6 +294,9 @@ libexec/singular/MOD/systhreads.so
libexec/singular/MOD/syzextra.a
libexec/singular/MOD/syzextra.so
libexec/singular/MOD/toric_ideal
man/man1/ESingular.1.gz
man/man1/Singular.1.gz
man/man1/TSingular.1.gz
share/applications/Singular-manual.desktop
share/applications/Singular.desktop
share/factory/gftables/10201
Expand Down

0 comments on commit 86bbcd6

Please sign in to comment.