Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Dec 2020 12:29:12 +0000 (UTC)
From:      Max Brazhnikov <makc@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r558158 - head/math/cddlib
Message-ID:  <202012151229.0BFCTCQ7095596@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: makc
Date: Tue Dec 15 12:29:12 2020
New Revision: 558158
URL: https://svnweb.freebsd.org/changeset/ports/558158

Log:
  math/cddlib:
  - Update to 0.94l
  - Adopt port
  - Simplify COMMENT.
  - Remove USE_GITHUB and include MASTER_SITES instead. We are only working with
    releases anyway, and the release tar.gz includes already build documentation,
    which means we don't depend on TeX Live for building the manual anymore.
  - Replace MANUAL with the more common DOCS option.
  - Remove do-install target and non-standard variable HEADERSDIR. The header
    files are installed in ${PREFIX}/include/cddlib by default. Create a link to
    ${PREFIX}/include/cdd in post-install target. Some applications expect the
    headers to be in cdddlib others in cdd, so we should provide both
    directories.
  - Rewrite pkg-descr.
  
  PR:		250878
  Submitted by:	Moritz Schmitt

Modified:
  head/math/cddlib/Makefile
  head/math/cddlib/distinfo
  head/math/cddlib/pkg-descr
  head/math/cddlib/pkg-plist

Modified: head/math/cddlib/Makefile
==============================================================================
--- head/math/cddlib/Makefile	Tue Dec 15 12:01:34 2020	(r558157)
+++ head/math/cddlib/Makefile	Tue Dec 15 12:29:12 2020	(r558158)
@@ -1,12 +1,12 @@
 # $FreeBSD$
 
 PORTNAME=	cddlib
-PORTVERSION=	0.94j
-PORTREVISION=	2
+PORTVERSION=	0.94l
 CATEGORIES=	math
+MASTER_SITES=	https://github.com/cddlib/cddlib/releases/download/${DISTVERSION}/
 
-MAINTAINER=	ports@FreeBSD.org
-COMMENT=	C implementation of the Double Description Method of Motzkin et al
+MAINTAINER=	moritz@schmi.tt
+COMMENT=	C-library implementation of the Double Description Method
 
 LICENSE=	GPLv2+
 LICENSE_FILE=	${WRKSRC}/COPYING
@@ -15,40 +15,18 @@ LIB_DEPENDS=	libgmp.so:math/gmp
 
 USES=		autoreconf gmake libtool:build localbase:ldflags
 USE_LDCONFIG=	yes
-USE_GITHUB=	yes
-GH_ACCOUNT=	cddlib
 
 GNU_CONFIGURE=	yes
 
-OPTIONS_DEFINE=	MANUAL EXAMPLES
+OPTIONS_DEFINE=	DOCS EXAMPLES
 OPTIONS_SUB=	yes
-MANUAL_DESC=	User manual (many dependencies, including texlive)
-MANUAL_BUILD_DEPENDS=	latex:print/tex-formats \
-			dvips:print/tex-dvipsk
+DOCS_DESC=	Install cddlib user manual
+EXAMPLES_DESC=	Install cddlib examples
 
-HEADERSDIR=	${PREFIX}/include/cdd
-
-pre-build-MANUAL-off:
-	${REINPLACE_CMD} 's,doc lib-src,lib-src,' ${WRKSRC}/Makefile.am
-
-do-install:
-	${MKDIR} ${STAGEDIR}${HEADERSDIR}
-	cd ${WRKSRC}/src/.libs && ${COPYTREE_BIN} . ${STAGEDIR}${PREFIX}/bin
-	cd ${WRKSRC}/lib-src/.libs && ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/lib '-name *\.so*'
-	cd ${WRKSRC}/lib-src/.libs && ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/lib '-name *\.a'
-	cd ${WRKSRC}/lib-src && ${COPYTREE_SHARE} . ${STAGEDIR}${HEADERSDIR} '-name *\.h'
-
-post-install-MANUAL-on:
-	${MKDIR} ${STAGEDIR}${DOCSDIR}
-	${INSTALL_MAN} ${WRKSRC}/doc/cddlibman.dvi ${STAGEDIR}${DOCSDIR}
-	${INSTALL_MAN} ${WRKSRC}/doc/cddlibman.pdf ${STAGEDIR}${DOCSDIR}
-	${INSTALL_MAN} ${WRKSRC}/doc/cddlibman.ps ${STAGEDIR}${DOCSDIR}
-
-post-install-EXAMPLES-on:
-	${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
-	cd ${WRKSRC} && ${COPYTREE_SHARE} "examples*" ${STAGEDIR}${EXAMPLESDIR}
-
 post-install:
 	${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/*.so
+	${RLN} ${STAGEDIR}${PREFIX}/include/cddlib ${STAGEDIR}${PREFIX}/include/cdd
+	${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+	${MV} ${STAGEDIR}${DOCSDIR}/example* ${STAGEDIR}${EXAMPLESDIR}
 
 .include <bsd.port.mk>

Modified: head/math/cddlib/distinfo
==============================================================================
--- head/math/cddlib/distinfo	Tue Dec 15 12:01:34 2020	(r558157)
+++ head/math/cddlib/distinfo	Tue Dec 15 12:29:12 2020	(r558158)
@@ -1,3 +1,3 @@
-TIMESTAMP = 1535463043
-SHA256 (cddlib-cddlib-0.94j_GH0.tar.gz) = f54bba785b9f6814be5cf6d76861dd61082997c7b48e0244fc3ccea7195892d4
-SIZE (cddlib-cddlib-0.94j_GH0.tar.gz) = 496651
+TIMESTAMP = 1604604071
+SHA256 (cddlib-0.94l.tar.gz) = 1ef6b1ee44509a26d480cda699ca1a9a38ecc9a2aba5092dbd7390ca285769e0
+SIZE (cddlib-0.94l.tar.gz) = 1350988

Modified: head/math/cddlib/pkg-descr
==============================================================================
--- head/math/cddlib/pkg-descr	Tue Dec 15 12:01:34 2020	(r558157)
+++ head/math/cddlib/pkg-descr	Tue Dec 15 12:29:12 2020	(r558158)
@@ -1,13 +1,5 @@
-Cddlib is a C library that implements the Double Description Method
-of Motzkin et al. for generating all vertices (i.e. extreme points)
-and extreme rays of a general convex polyhedron given by a system of
-linear inequalities in any finite dimensional real coordinate space.
-
-The program can be used for the reverse operation (i.e. convex hull
-computation). This means that one can move back and forth between an
-inequality representation and a generator (i.e. vertex and ray) 
-representation of a polyhedron with cddlib. Also, cddlib can solve a
-linear programming problem, i.e. a problem of maximizing and
-minimizing a linear function over P.
+cddlib is a C library implementation of the Double Description Method. Given a
+convex polyhedron P in R^n, it can be used to change between the V- and
+H-representation and to solve linear programming problems over P.
 
 WWW: https://github.com/cddlib/cddlib

Modified: head/math/cddlib/pkg-plist
==============================================================================
--- head/math/cddlib/pkg-plist	Tue Dec 15 12:01:34 2020	(r558157)
+++ head/math/cddlib/pkg-plist	Tue Dec 15 12:29:12 2020	(r558158)
@@ -12,12 +12,6 @@ bin/projection
 bin/projection_gmp
 bin/redcheck
 bin/redcheck_gmp
-bin/redexter
-bin/redexter_gmp
-bin/redundancies
-bin/redundancies_clarkson
-bin/redundancies_clarkson_gmp
-bin/redundancies_gmp
 bin/scdd
 bin/scdd_gmp
 bin/testcdd1
@@ -32,25 +26,27 @@ bin/testlp3
 bin/testlp3_gmp
 bin/testshoot
 bin/testshoot_gmp
-include/cdd/cdd.h
-include/cdd/cdd_f.h
-include/cdd/cddmp.h
-include/cdd/cddmp_f.h
-include/cdd/cddtypes.h
-include/cdd/cddtypes_f.h
-include/cdd/setoper.h
-include/cdd/splitmix64.h
+include/cdd
+include/cddlib/cdd.h
+include/cddlib/cdd_f.h
+include/cddlib/cddmp.h
+include/cddlib/cddmp_f.h
+include/cddlib/cddtypes.h
+include/cddlib/cddtypes_f.h
+include/cddlib/setoper.h
+include/cddlib/splitmix64.h
 lib/libcdd.a
 lib/libcdd.so
 lib/libcdd.so.0
-lib/libcdd.so.0.0.0
+lib/libcdd.so.0.1.1
 lib/libcddgmp.a
 lib/libcddgmp.so
 lib/libcddgmp.so.0
 lib/libcddgmp.so.0.0.0
-%%MANUAL%%%%DOCSDIR%%/cddlibman.dvi
-%%MANUAL%%%%DOCSDIR%%/cddlibman.pdf
-%%MANUAL%%%%DOCSDIR%%/cddlibman.ps
+libdata/pkgconfig/cddlib.pc
+%%PORTDOCS%%%%DOCSDIR%%/cddlibman.dvi
+%%PORTDOCS%%%%DOCSDIR%%/cddlibman.pdf
+%%PORTDOCS%%%%DOCSDIR%%/cddlibman.ps
 %%PORTEXAMPLES%%%%EXAMPLESDIR%%/examples-ext/ccc4.ext
 %%PORTEXAMPLES%%%%EXAMPLESDIR%%/examples-ext/ccc5.ext
 %%PORTEXAMPLES%%%%EXAMPLESDIR%%/examples-ext/ccc6.ext



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202012151229.0BFCTCQ7095596>