Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 110793 - bera-20040930.ebuild: Bera fonts for TeX (New package)
Summary: bera-20040930.ebuild: Bera fonts for TeX (New package)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Text-Markup Team (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on: 110790
Blocks:
  Show dependency tree
 
Reported: 2005-10-29 08:19 UTC by Patric Mueller
Modified: 2005-12-01 09:27 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
bera-20040930.ebuild (bera-20040930.ebuild,1.06 KB, text/plain)
2005-10-29 08:20 UTC, Patric Mueller
Details
bera-20040930.ebuild (bera-20040930.ebuild,1.03 KB, text/plain)
2005-11-09 12:25 UTC, Patric Mueller
Details
Small correction (bera-20040930.ebuild,1.05 KB, text/plain)
2005-11-12 15:44 UTC, Alexandre Buisse (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Patric Mueller 2005-10-29 08:19:25 UTC
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.
Comment 1 Patric Mueller 2005-10-29 08:20:23 UTC
Created attachment 71677 [details]
bera-20040930.ebuild
Comment 2 Patric Mueller 2005-10-29 08:22:37 UTC
/usr/portage/eclass/latex-package.eclass has a bug when installing Type1 fonts
which I already reported in Bug #110790
Comment 3 Alexandre Buisse (RETIRED) gentoo-dev 2005-11-07 10:46:33 UTC
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.
Comment 4 Patric Mueller 2005-11-09 12:23:38 UTC
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
Comment 5 Patric Mueller 2005-11-09 12:25:55 UTC
Created attachment 72514 [details]
bera-20040930.ebuild
Comment 6 Alexandre Buisse (RETIRED) gentoo-dev 2005-11-12 15:44:09 UTC
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 !
Comment 7 Alexandre Buisse (RETIRED) gentoo-dev 2005-12-01 09:27:03 UTC
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.