Index: math/singular/Makefile =================================================================== --- math/singular/Makefile (revision 474760) +++ math/singular/Makefile (working copy) @@ -14,7 +14,7 @@ LIB_DEPENDS= libgmp.so:math/gmp \ libmpfr.so:math/mpfr -USES= gmake libtool perl5 pkgconfig shebangfix +USES= gmake libtool ncurses perl5 pkgconfig shebangfix USE_PERL5= build USE_LDCONFIG= yes GNU_CONFIGURE= yes @@ -23,4 +23,10 @@ SHEBANG_FILES= libpolys/libpolys-config.in \ libsingular-config.in +# not a shebang but "/bin/bash" is hardcoded in some files +post-patch: + @${REINPLACE_CMD} -e "s|/bin/bash|${LOCALBASE}/bin/bash|g" \ + ${WRKSRC}/emacs/.emacs-general + + .include