Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 352539 - Ebuild for The League of Moveable Type fonts.
Summary: Ebuild for The League of Moveable Type fonts.
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Gentoo Fonts Team
URL: http://www.theleagueofmoveabletype.com/
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-23 20:31 UTC by Myckel Habets
Modified: 2012-03-24 07:33 UTC (History)
3 users (show)

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


Attachments
TLMT Fonts ebuild (tlmt-fonts-1.ebuild,4.85 KB, text/plain)
2012-01-24 19:59 UTC, Myckel Habets
Details
tlmt-fonts-2 ebuild (tlmt-fonts-2.ebuild,4.95 KB, text/plain)
2012-03-24 07:33 UTC, Myckel Habets
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Myckel Habets 2011-01-23 20:31:52 UTC
These are a set of very nice open source fonts (licensed under the Open Font License). It would be very nice to have them in Gentoo Linux.

Reproducible: Always

Steps to Reproduce:
Comment 1 gm 2011-02-03 15:50:28 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"
Comment 2 Ryan Hill (RETIRED) gentoo-dev 2011-02-04 00:45:04 UTC
Now, what to name it?
Comment 3 Myckel Habets 2011-02-04 06:17:28 UTC
(In reply to comment #2)
> Now, what to name it?
> 

tlmt-fonts?
Comment 4 Myckel Habets 2011-02-04 06:39:49 UTC
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])
Comment 5 David 2011-06-29 06:40:04 UTC
(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 ~
Comment 6 Myckel Habets 2011-06-29 18:38:15 UTC
(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.
Comment 7 Peter Volkov (RETIRED) gentoo-dev 2011-06-30 09:15:30 UTC
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.
Comment 8 Myckel Habets 2011-06-30 20:54:14 UTC
(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?
Comment 9 Ondrej Filip 2011-12-26 08:49:35 UTC
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?
Comment 10 Ryan Hill (RETIRED) gentoo-dev 2012-01-08 05:02:47 UTC
(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.
Comment 11 Myckel Habets 2012-01-24 19:59:26 UTC
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.
Comment 12 Myckel Habets 2012-03-24 07:33:50 UTC
Created attachment 306489 [details]
tlmt-fonts-2 ebuild

Updated ebuild, contains updates to the Blackout font (new Blackout sunrise font included).