summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Sterrett <mr_bones_@gentoo.org>2003-11-15 22:03:49 +0000
committerMichael Sterrett <mr_bones_@gentoo.org>2003-11-15 22:03:49 +0000
commit0c7f6f16b8a03867f126ab8690086741ff90be72 (patch)
tree1672a8dc1b2b71fa0f2c77cc48f8e958a1028e5b /games-board/daemonshogi/daemonshogi-0.1.3.ebuild
parentbzip2 support in makeself files (diff)
downloadhistorical-0c7f6f16b8a03867f126ab8690086741ff90be72.tar.gz
historical-0c7f6f16b8a03867f126ab8690086741ff90be72.tar.bz2
historical-0c7f6f16b8a03867f126ab8690086741ff90be72.zip
fix for bug 33347 - patch from Mamoru KOMACHI to work with gettext-12
Diffstat (limited to 'games-board/daemonshogi/daemonshogi-0.1.3.ebuild')
-rw-r--r--games-board/daemonshogi/daemonshogi-0.1.3.ebuild19
1 files changed, 5 insertions, 14 deletions
diff --git a/games-board/daemonshogi/daemonshogi-0.1.3.ebuild b/games-board/daemonshogi/daemonshogi-0.1.3.ebuild
index cfc7d6d9051c..2cfd74d2195e 100644
--- a/games-board/daemonshogi/daemonshogi-0.1.3.ebuild
+++ b/games-board/daemonshogi/daemonshogi-0.1.3.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/games-board/daemonshogi/daemonshogi-0.1.3.ebuild,v 1.2 2003/11/13 07:21:35 mr_bones_ Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-board/daemonshogi/daemonshogi-0.1.3.ebuild,v 1.3 2003/11/15 22:03:46 mr_bones_ Exp $
inherit games
@@ -15,21 +15,12 @@ SLOT="0"
IUSE="nls"
DEPEND="gnome-base/gnome-libs
- >=sys-apps/sed-4"
-RDEPEND="nls? ( >=sys-devel/gettext-0.10.38 )"
-
-src_unpack() {
- unpack ${A}
- cd ${S}
-
- # fix the .po file for gettext-12 (bug 33347)
- sed -i \
- -e 's/ENCODING/8bit/' \
- -e 's/CHARSET/EUC-JP/' po/ja.po || \
- die "sed po/ja.po failed"
-}
+ nls? ( >=sys-devel/gettext-0.10.38 )"
src_compile() {
+ if use nls && has_version '>=sys-devel/gettext-0.12' ; then
+ export XGETTEXT="/usr/bin/xgettext --from-code=EUC-JP"
+ fi
egamesconf `use_enable nls` || die
emake || die "emake failed"
}