summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Ballier <aballier@gentoo.org>2010-01-25 14:43:55 +0000
committerAlexis Ballier <aballier@gentoo.org>2010-01-25 14:43:55 +0000
commit6b697f852ad5da5931a3d53e24f7f7b9f46c3b3e (patch)
treec17d1ade3984530a22e587c9318d5d0c2db6e6eb /dev-texlive/texlive-metapost
parentVersion bump KDE 4.3.5 (diff)
downloadgentoo-2-6b697f852ad5da5931a3d53e24f7f7b9f46c3b3e.tar.gz
gentoo-2-6b697f852ad5da5931a3d53e24f7f7b9f46c3b3e.tar.bz2
gentoo-2-6b697f852ad5da5931a3d53e24f7f7b9f46c3b3e.zip
Fix for prefix by ABCD
(Portage version: 2.2_rc61/cvs/Linux x86_64)
Diffstat (limited to 'dev-texlive/texlive-metapost')
-rw-r--r--dev-texlive/texlive-metapost/ChangeLog6
-rw-r--r--dev-texlive/texlive-metapost/texlive-metapost-2009.ebuild10
2 files changed, 11 insertions, 5 deletions
diff --git a/dev-texlive/texlive-metapost/ChangeLog b/dev-texlive/texlive-metapost/ChangeLog
index 9c40bed415f4..6759dc859eec 100644
--- a/dev-texlive/texlive-metapost/ChangeLog
+++ b/dev-texlive/texlive-metapost/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for dev-texlive/texlive-metapost
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-texlive/texlive-metapost/ChangeLog,v 1.31 2010/01/25 13:14:42 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-texlive/texlive-metapost/ChangeLog,v 1.32 2010/01/25 14:43:55 aballier Exp $
+
+ 25 Jan 2010; Alexis Ballier <aballier@gentoo.org>
+ texlive-metapost-2009.ebuild:
+ Fix for prefix by ABCD
25 Jan 2010; Alexis Ballier <aballier@gentoo.org>
texlive-metapost-2009.ebuild:
diff --git a/dev-texlive/texlive-metapost/texlive-metapost-2009.ebuild b/dev-texlive/texlive-metapost/texlive-metapost-2009.ebuild
index a93f0548cdce..3aa01f5a4363 100644
--- a/dev-texlive/texlive-metapost/texlive-metapost-2009.ebuild
+++ b/dev-texlive/texlive-metapost/texlive-metapost-2009.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-texlive/texlive-metapost/texlive-metapost-2009.ebuild,v 1.2 2010/01/25 13:14:42 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-texlive/texlive-metapost/texlive-metapost-2009.ebuild,v 1.3 2010/01/25 14:43:55 aballier Exp $
TEXLIVE_MODULE_CONTENTS="automata bbcard blockdraw_mp bpolynomial cmarrows drv dviincl emp epsincl expressg exteps featpost garrigues hatching latexmp metago metaobj metaplot metapost metauml mfpic mfpic4ode mp3d mpattern piechartmp roex slideshow splines suanpan textpath collection-metapost
"
@@ -23,8 +23,10 @@ RDEPEND="${DEPEND} "
# created and cause collisions.
pkg_setup() {
- if [ -f "${ROOT}/var/lib/texmf/web2c/metapost/mplib-luatex.mem" ]; then
- einfo "Removing ${ROOT}/var/lib/texmf/web2c/metapost/mplib-luatex.mem"
- rm -f "${ROOT}/var/lib/texmf/web2c/metapost/mplib-luatex.mem"
+ use prefix || EPREFIX=
+
+ if [ -f "${ROOT%/}${EPREFIX}/var/lib/texmf/web2c/metapost/mplib-luatex.mem" ]; then
+ einfo "Removing ${ROOT%/}${EPREFIX}/var/lib/texmf/web2c/metapost/mplib-luatex.mem"
+ rm -f "${ROOT%/}${EPREFIX}/var/lib/texmf/web2c/metapost/mplib-luatex.mem"
fi
}