Summary: | Ebuild for The League of Moveable Type fonts. | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Myckel Habets <myckel> |
Component: | [OLD] Unspecified | Assignee: | Gentoo Fonts Team <fonts> |
Status: | CONFIRMED --- | ||
Severity: | enhancement | CC: | chytzkoi, gm, write2David |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
URL: | http://www.theleagueofmoveabletype.com/ | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
TLMT Fonts ebuild
tlmt-fonts-2 ebuild |
Description
Myckel Habets
2011-01-23 20:31:52 UTC
I think this will work. Not at home so I can't test it right now. # Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit font DESCRIPTION="The League Of Movable Type" HOMEPAGE="http://www.theleagueofmoveabletype.com/" SRC_BASE="http://s3.amazonaws.com/theleague-production/fonts" SRC_URI="${SRC_BASE}/junction.zip ${SRC_BASE}/sniglet.zip ${SRC_BASE}/flaminia-type-system.zip ${SRC_BASE}/chunk.zip ${SRC_BASE}/blackout.zip ${SRC_BASE}/sorts-mill-goudy.zip ${SRC_BASE}/league-gothic.zip ${SRC_BASE}/goudy-bookletter-1911.zip ${SRC_BASE}/orbitron.zip ${SRC_BASE}/prociono.zip ${SRC_BASE}/raleway.zip ${SRC_BASE}/league-script-1.zip ${SRC_BASE}/linden-hill.zip ${SRC_BASE}/fanwood.zip" LICENSE="OFL" SLOT="0" KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 s390 sh sparc x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x86-macos" DEPEND="virtual/x11 app-arch/unzip" FONT_SUFFIX="otf" Now, what to name it? (In reply to comment #2) > Now, what to name it? > tlmt-fonts? emerge -pv tlmt-fonts These are the packages that would be merged, in order: Calculating dependencies... done! emerge: there are no ebuilds to satisfy "virtual/x11". (dependency required by "media-fonts/tlmt-fonts-1.0" [ebuild]) (dependency required by "tlmt-fonts" [argument]) (In reply to comment #4) > emerge -pv tlmt-fonts > > These are the packages that would be merged, in order: > > Calculating dependencies... done! > > emerge: there are no ebuilds to satisfy "virtual/x11". > (dependency required by "media-fonts/tlmt-fonts-1.0" [ebuild]) > (dependency required by "tlmt-fonts" [argument]) Same here. Though I'm not sure it's the "proper" solution, removing "virtual/x11" from the ebuild allows the package to install just fine. Would be great to see this in the portage tree ~ (In reply to comment #5) > (In reply to comment #4) > > Same here. > > Though I'm not sure it's the "proper" solution, removing "virtual/x11" from the > ebuild allows the package to install just fine. Would be great to see this in > the portage tree ~ There are more issues with this ebuild. Most of the fonts aren't installed (various different formats, but the ebuild only recognizes one). @fonts, is there an ebuild writing manual for fonts? Devmanual doesn't mention anything about font-related specifics if I remember correctly. Myckel, emerge app-portage/eclass-manpages and you'll have man page for font eclass. On the other hand you may wish to read font.eclass itself. (In reply to comment #7) > Myckel, emerge app-portage/eclass-manpages and you'll have man page for font > eclass. On the other hand you may wish to read font.eclass itself. Thank you, didn't knew that. I've tried picking this up, but bumping into a problem. When unpacked most zip files unpack into $WORKDIR, but some unpack the fonts into $WORKDIR/some_folder. The latter ones aren't installed. So I thought to move the files to $WORKDIR, but now the question is in what function to do that. I tried font_pkg_setup and src_compile, but those didn't work. Any thoughts on how to do this properly? Myckel, great work! Could you please attach your version of ebuild so it is possible to continue to improve it even if you personally does not have resources to work on it? (In reply to comment #8) > (In reply to comment #7) > > Myckel, emerge app-portage/eclass-manpages and you'll have man page for font > > eclass. On the other hand you may wish to read font.eclass itself. > > Thank you, didn't knew that. > > I've tried picking this up, but bumping into a problem. > When unpacked most zip files unpack into $WORKDIR, but some unpack the fonts > into $WORKDIR/some_folder. The latter ones aren't installed. So I thought to > move the files to $WORKDIR, but now the question is in what function to do > that. I tried font_pkg_setup and src_compile, but those didn't work. > > Any thoughts on how to do this properly? Move them in src_unpack(). See sil-charis for an example. The eclass really needs to be improved to handle multiple font directories and types but it's hard to do without breaking everything else. I started a rewrite a while back but never got back to it. Created attachment 299779 [details]
TLMT Fonts ebuild
I've rewritten the ebuild. The League of Moveable Type moved to github to store their fonts. I've fixed the downloads to the current state of the head branch. I've selected the otf files where available, and the ttf if not available. Some fonts offer both types, but it seems useless to me to install both.
Feel free to provide feedback. An initial test (using them in inkscape) seems to be working fine.
Created attachment 306489 [details]
tlmt-fonts-2 ebuild
Updated ebuild, contains updates to the Blackout font (new Blackout sunrise font included).
|