Index: head/math/symmetrica/Makefile =================================================================== --- head/math/symmetrica/Makefile (revision 530240) +++ head/math/symmetrica/Makefile (revision 530241) @@ -1,23 +1,33 @@ # $FreeBSD$ PORTNAME= symmetrica DISTVERSION= 2.0 +PORTREVISION= 1 CATEGORIES= math MASTER_SITES= http://www.algorithm.uni-bayreuth.de/en/research/SYMMETRICA/ DISTFILES= SYM2_0_tar.gz MAINTAINER= yuri@FreeBSD.org COMMENT= Collection of routines for combinatorial mathematics LICENSE= PD -USES= gmake MAKEFILE= makefile NO_WRKSUBDIR= yes -PLIST_FILES= bin/${PORTNAME} +PLIST_FILES= bin/${PORTNAME} \ + include/${PORTNAME}/def.h \ + include/${PORTNAME}/macro.h \ + lib/libsymmetrica.a \ + lib/libsymmetrica.so \ + lib/libsymmetrica.so.0 do-install: ${INSTALL_PROGRAM} ${WRKSRC}/test ${STAGEDIR}${PREFIX}/bin/${PORTNAME} + ${MKDIR} ${STAGEDIR}${PREFIX}/include/${PORTNAME} ${STAGEDIR}${PREFIX}/lib + ${INSTALL_DATA} ${WRKSRC}/*.h ${STAGEDIR}${PREFIX}/include/${PORTNAME} + ${INSTALL_DATA} ${WRKSRC}/libsymmetrica.a ${STAGEDIR}${PREFIX}/lib + ${INSTALL_LIB} ${WRKSRC}/libsymmetrica.so ${STAGEDIR}${PREFIX}/lib/libsymmetrica.so.0 + ${LN} -sf libsymmetrica.so.0 ${STAGEDIR}${PREFIX}/lib/libsymmetrica.so .include Index: head/math/symmetrica/files/patch-bar.c =================================================================== --- head/math/symmetrica/files/patch-bar.c (nonexistent) +++ head/math/symmetrica/files/patch-bar.c (revision 530241) @@ -0,0 +1,35 @@ +--- bar.c.orig 2007-12-06 16:29:59 UTC ++++ bar.c +@@ -1,4 +1,5 @@ + /* file bar.c symmetrica */ ++/* Patch from SageMath */ + #include "def.h" + #include "macro.h" + +@@ -237,7 +238,7 @@ INT rz_lehmercode_bar(a,b) OP a,b; + g = callocobject(); + e = S_V_I(a,0L); + f = S_V_I(a,1L); +- erg += sum(f,g); ++ erg += sym_sum(f,g); + j=0L; + for (i=0L;i=0;j--) +@@ -1767,8 +1768,8 @@ static int rec01(INT ni, OP vec) /* to compute number of partitions */ { INT erg = OK; - if (ni<0) return; - if (not EMPTYP(S_V_I(vec,ni))) return; -+ if (ni<0) return 0; -+ if (not EMPTYP(S_V_I(vec,ni))) return 0; ++ if (ni<0) return NULL; ++ if (not EMPTYP(S_V_I(vec,ni))) return NULL; else if (ni<=1) M_I_I(1,S_V_I(vec,ni)); else { Index: head/math/symmetrica/files/patch-perm.c =================================================================== --- head/math/symmetrica/files/patch-perm.c (nonexistent) +++ head/math/symmetrica/files/patch-perm.c (revision 530241) @@ -0,0 +1,47 @@ +--- perm.c.orig 2007-12-06 16:30:19 UTC ++++ perm.c +@@ -1,4 +1,5 @@ + /* SYMMETRICA perm.c */ ++/* Patch from SageMath */ + #include "def.h" + #include "macro.h" + +@@ -833,9 +834,9 @@ komponeten. */ + /* s = Anzahl der spalten */ + + s = S_V_LI(S_V_I(a,0L)); +- sum(S_V_I(a,0L),summe);/* composition ist vector */ ++ sym_sum(S_V_I(a,0L),summe);/* composition ist vector */ + z = S_I_I(summe); +- FREEALL(summe); ++ FREEALL(summe); + m_ilih_nm(s,z,b); + C_O_K(b,KRANZTYPUS); + for (i=0L;i