summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Cummings <mcummings@gentoo.org>2002-09-10 01:55:54 +0000
committerMichael Cummings <mcummings@gentoo.org>2002-09-10 01:55:54 +0000
commitff945d06b1611168ccab3258d984ffe495728c9c (patch)
tree081f1df8a1a4dda30b6f5b1124dd6f61a59aac16 /dev-perl
parentNew ebuild corrects reported problems with gd support (diff)
downloadhistorical-ff945d06b1611168ccab3258d984ffe495728c9c.tar.gz
historical-ff945d06b1611168ccab3258d984ffe495728c9c.tar.bz2
historical-ff945d06b1611168ccab3258d984ffe495728c9c.zip
Corrected syntax in ebuild; fixed sed lines
Diffstat (limited to 'dev-perl')
-rw-r--r--dev-perl/GD/GD-2.01.ebuild18
1 files changed, 17 insertions, 1 deletions
diff --git a/dev-perl/GD/GD-2.01.ebuild b/dev-perl/GD/GD-2.01.ebuild
index 61319d59c10f..f7612d91c1f4 100644
--- a/dev-perl/GD/GD-2.01.ebuild
+++ b/dev-perl/GD/GD-2.01.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
-# $Header: /var/cvsroot/gentoo-x86/dev-perl/GD/GD-2.01.ebuild,v 1.1 2002/09/09 21:53:26 mcummings Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-perl/GD/GD-2.01.ebuild,v 1.2 2002/09/10 01:55:54 mcummings Exp $
inherit perl-module
@@ -18,6 +18,8 @@ DEPEND="${DEPEND}
>=media-libs/libgd-2.0.1
X? ( virtual/x11 )"
+
+
src_unpack() {
unpack ${A}
cd ${S}
@@ -30,7 +32,21 @@ src_unpack() {
cp Makefile.PL Makefile.PL.orig
sed -e "s:my \$XPM.*:my \$XPM='y';:" \
Makefile.PL.orig > Makefile.PL
+ ) || ( \
+ cp Makefile.PL Makefile.PL.orig
+ sed -e "s:my \$XPM.*:my \$XPM='n';:"\
+ Makefile.PL.orig > Makefile.PL
+ )
+ use truetype && ( \
+ cp Makefile.PL Makefile.PL.orig
+ sed -e "s:my \$FT.*:my \$FT='y';:"\
+ Makefile.PL.orig > Makefile.PL
+ ) || ( \
+ cp Makefile.PL Makefile.PL.orig
+ sed -e "s:my \$FT.*:my \$FT='n';:"\
+ Makefile.PL.orig > Makefile.PL
)
+
}
src_install () {