Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] need help with an font ebuild
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
ocin
Guru
Guru


Joined: 01 Jan 2006
Posts: 500

PostPosted: Sat Apr 05, 2008 9:57 pm    Post subject: [solved] need help with an font ebuild Reply with quote

Hello there,

I created an ebuild[1] for profont but it returns an error during the install phase:
Code:
[...]
>>> Install profont-2 into /var/tmp/portage/media-fonts/profont-2/image/ category media-fonts
 * Creating fonts.scale & fonts.dir ...
/var/tmp/portage/media-fonts/profont-2/temp/environment: line 1218: cd: /var/tmp/portage/media-fonts/profont-2/work/profont-2: No such file or directory
>>> Completed installing profont-2 into /var/tmp/portage/media-fonts/profont-2/image/
[...]

The error happens because in the eclass is a "cd ${S}" and regardless to what $S is set, it returns No such file or directory. I guess it should work when $S is set to $S_FONT but it does not (also tried that).

After unpacking the archive, there is only one folder (profont-x11) which contains the .pcf files.
The ebuild installs but I want to get rid of that error.
Complete merge at [2]

[1] http://svn.engelkotzen.net/public/devnull/media-fonts/profont/profont-2.ebuild
[2] http://rafb.net/p/zq8kn881.html


Last edited by ocin on Sun Apr 06, 2008 1:14 pm; edited 1 time in total
Back to top
View user's profile Send private message
rhill
Retired Dev
Retired Dev


Joined: 22 Oct 2004
Posts: 1629
Location: sk.ca

PostPosted: Sun Apr 06, 2008 2:16 am    Post subject: Reply with quote

throw a ${WORKDIR} in there:

Code:
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit font

S="${WORKDIR}/${PN}-x11"
FONT_S="${S}"
FONT_SUFFIX="pcf"

DESCRIPTION="ProFont - The ultimate programming font."
HOMEPAGE="http://www.tobias-jung.de/seekingprofont/"
SRC_URI="http://www.tobiasjung.net/dl/profont-x11.tar.gz"
LICENSE="as-is"

SLOT="0"
KEYWORDS="~amd64 ~x86 ~x86-fbsd"
IUSE=""

_________________
by design, by neglect
for a fact or just for effect
Back to top
View user's profile Send private message
ocin
Guru
Guru


Joined: 01 Jan 2006
Posts: 500

PostPosted: Sun Apr 06, 2008 1:14 pm    Post subject: Reply with quote

thank you :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum