Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 393001 - media-fonts/mplus-outline-fonts-0_pre043 fails to emerge with USE=ipafont
Summary: media-fonts/mplus-outline-fonts-0_pre043 fails to emerge with USE=ipafont
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All All
: Normal normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-03 11:21 UTC by MATSUI Tetsushi
Modified: 2011-12-03 13:53 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description MATSUI Tetsushi 2011-12-03 11:21:15 UTC
media-fonts/mplus-outline-fonts-0_pre043 fails to emerge with USE=ipafont on x86-macos.

The error is:
>>> Preparing source in /Users/tetsushi/Gentoo/var/tmp/portage/media-fonts/mplus-outline-fonts-0_pre043/work/mplus-TESTFLIGHT-043 ...
cp: `/usr/share/fonts/ja-ipafonts/ipag.ttf' を stat できません: No such file or directory

It is obvious that the problem is caused by path that is not prefixed.
If I change the ebuild as follows, it successfully emerges.

@@ -2,7 +2,7 @@
 # Distributed under the terms of the GNU General Public License v2
 # $Header: /var/cvsroot/gentoo-x86/media-fonts/mplus-outline-fonts/mplus-outline-fonts-0_pre043.ebuild,v 1.1 2011/09/30 15:17:38 matsuu Exp $
 
-EAPI="2"
+EAPI="3"
 inherit font
 
 MY_P="mplus-${PV/0_pre/TESTFLIGHT-}"
@@ -30,7 +30,7 @@
 
 RESTRICT="strip binchecks"
 
-IPAFONT_DIR="/usr/share/fonts/ja-ipafonts"
+IPAFONT_DIR="${EPREFIX}/usr/share/fonts/ja-ipafonts"
 
 src_prepare() {
 	if use ipafont ; then
Comment 1 Fabian Groffen gentoo-dev 2011-12-03 13:53:15 UTC
thanks, I applied your patch