Please find attached calc-2.02f.ebuild together with an Emacs site-init file and two patches. From the introduction to the manual: "Calc" is an advanced calculator and mathematical tool that runs as part of the GNU Emacs environment. Very roughly based on the HP-28/48 series of calculators, its many features include: * Choice of algebraic or RPN (stack-based) entry of calculations. * Arbitrary precision integers and floating-point numbers. * Arithmetic on rational numbers, complex numbers (rectangular and polar), error forms with standard deviations, open and closed intervals, vectors and matrices, dates and times, infinities, sets, quantities with units, and algebraic formulas. * Mathematical operations such as logarithms and trigonometric functions. * Programmer's features (bitwise operations, non-decimal numbers). * Financial functions such as future value and internal rate of return. * Number theoretical features such as prime factorization and arithmetic modulo M for any M. * Algebraic manipulation features, including symbolic calculus. * Moving data to and from regular editing buffers. * "Embedded mode" for manipulating Calc formulas and data directly inside any editing buffer. * Graphics using GNUPLOT, a versatile (and free) plotting program. * Easy programming using keyboard macros, algebraic formulas, algebraic rewrite rules, or extended Emacs Lisp. I have tested the package with emacs-21.4. Category would be app-emacs.
Created attachment 80703 [details] calc-2.02f.ebuild
Created attachment 80704 [details] files/50calc-gentoo.el
Created attachment 80705 [details, diff] files/calc-2.02f-emacs-21.patch
Created attachment 80706 [details, diff] files/calc-2.02f-info-dir.patch
Created attachment 81385 [details] files/50calc-gentoo.el Use @SITELISP@ for load-path.
Thanks for the ebuild contribution and for tracking down the necessary patches! I have added it to portage.