This ebuild installs the Bera fonts in Type1 format for TeX. Bera is a set of three font families: Bera Serif, Bera Sans and Bera Mono. The fonts were originally designed by Bitstream, Inc in TrueType format under the name "Bitstream Vera" and then converted to Postscript Typ1 format. Please take note: As CPAN doesn't archive older version and doesn't provide versions on their zips, I have used the unversioned link to CTAN as SRC_URI.
Created attachment 71677 [details] bera-20040930.ebuild
/usr/portage/eclass/latex-package.eclass has a bug when installing Type1 fonts which I already reported in Bug #110790
Some remarks on your ebuild : - Use ${P} for SRC_URI (and ${PN} if applicable). This is very important as it allows easy version bumps. - the SUPPLIER string must be quoted, like in latex-package.eclass - the only people who can stabilize a package (make it go from ~arch to arch) are the members of the ${arch} team. So ebuilds you post here must always have ~x86 keyword. - virtual/tetex in DEPEND is useless as it is already there in the eclass. But if you want to add new dependancies (see next entry), use DEPEND="${DEPEND} foo/bar" - as the archive is in zip format, you should add app-arch/unzip to DEPEND. - don't use latex-package_src_doinstall but latex-package_src_install, which also takes care of the doc if you set DOCS (which you should do instead of calling directly dodoc). - don't call directly texhash but the provided latex-package_rehash. Thanks.
Thanks for your hints. I've changed the ebuild according to your advice. Regarding SRC_URI, I changed it according to http://dev.gentoo.org/~ciaranm/docs/mw-faq/hardcoded.txt to mirror://gentoo/${P}.zip So ftp://tug.ctan.org/pub/tex-archive/fonts/bera.zip would have to be mirrored as bera-20040930.zip
Created attachment 72514 [details] bera-20040930.ebuild
Created attachment 72778 [details] Small correction Small correction of the DOCS variable : it's better for it to be local to src_install() and the files were not found, so I added ${S} prefix. Other than that, your ebuild is fine and I hope it'll make its way soon to the portage tree. Thanks !
It has been added to portage and I'll maitain it. By the way, please excuse me for that bad piece of advice : when inheriting from an eclass, ${DEPEND} is added *after* the ebuild is sourced, so the ${DEPEND}="${DEPEND}\nfoo" is actually wrong. I corrected it in the ebuild that got commited.