diff --git a/sci-mathematics/gfan/files/gfan-0.6.2-gcc15.patch b/sci-mathematics/gfan/files/gfan-0.6.2-gcc15.patch new file mode 100644 index 0000000000000..3e4b75e292c56 --- /dev/null +++ b/sci-mathematics/gfan/files/gfan-0.6.2-gcc15.patch @@ -0,0 +1,22 @@ +https://github.com/Singular/Singular/commit/d3f73432d73ac0dd041 + +diff --git a/src/gfanlib_matrix.h b/src/gfanlib_matrix.h +index 418fa4c..27818b2 100644 +--- a/src/gfanlib_matrix.h ++++ b/src/gfanlib_matrix.h +@@ -115,6 +115,7 @@ public: + p[i][j]=s*(q[i][j]); + return p; + } ++ /* + friend Matrix operator*(const Matrix& a, const Matrix& b) + { + assert(a.width==b.height); +@@ -123,6 +124,7 @@ public: + ret[i]=a.vectormultiply(b.column(i)); + return ret.transposed(); + } ++ */ + /* template + Matrix(const Matrix& c):v(c.size()){ + for(int i=0;i /dev/null || die + # The LaTeX build commands need to be repeated until the + # document "stops changing," which is not as easy as it + # sounds to detect. Running it twice seems to work here. + for iteration in 1 2; do + latex manual.tex && \ + bibtex manual && \ + dvipdf manual.dvi manual.pdf || die + done + popd > /dev/null || die + fi +} + +src_install() { + emake PREFIX="${ED}/usr" install + use doc && dodoc doc/manual.pdf +}