diff options
author | Michael Sterrett <mr_bones_@gentoo.org> | 2010-09-16 17:10:37 +0000 |
---|---|---|
committer | Michael Sterrett <mr_bones_@gentoo.org> | 2010-09-16 17:10:37 +0000 |
commit | e8c329cdc37c4a6ea2df300dfcd50886f0cbd323 (patch) | |
tree | 1bd0cc4d692c3d7bf06e59388905fe6bad5c9b4e /games-misc/fortune-mod-at-linux | |
parent | virtual/glut -> media-libs/glut (diff) | |
download | gentoo-2-e8c329cdc37c4a6ea2df300dfcd50886f0cbd323.tar.gz gentoo-2-e8c329cdc37c4a6ea2df300dfcd50886f0cbd323.tar.bz2 gentoo-2-e8c329cdc37c4a6ea2df300dfcd50886f0cbd323.zip |
convert file to utf8 if desired (bug #322111)
(Portage version: 2.1.8.3/cvs/Linux i686)
Diffstat (limited to 'games-misc/fortune-mod-at-linux')
-rw-r--r-- | games-misc/fortune-mod-at-linux/ChangeLog | 8 | ||||
-rw-r--r-- | games-misc/fortune-mod-at-linux/fortune-mod-at-linux-20030120.ebuild | 17 |
2 files changed, 20 insertions, 5 deletions
diff --git a/games-misc/fortune-mod-at-linux/ChangeLog b/games-misc/fortune-mod-at-linux/ChangeLog index 03560f905f65..ec613a693f23 100644 --- a/games-misc/fortune-mod-at-linux/ChangeLog +++ b/games-misc/fortune-mod-at-linux/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for games-misc/fortune-mod-at-linux -# Copyright 2000-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/games-misc/fortune-mod-at-linux/ChangeLog,v 1.11 2006/07/19 19:41:24 flameeyes Exp $ +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/games-misc/fortune-mod-at-linux/ChangeLog,v 1.12 2010/09/16 17:10:37 mr_bones_ Exp $ + + 16 Sep 2010; Michael Sterrett <mr_bones_@gentoo.org> + fortune-mod-at-linux-20030120.ebuild: + convert file to utf8 if desired (bug #322111) 19 Jul 2006; Diego Pettenò <flameeyes@gentoo.org> fortune-mod-at-linux-20030120.ebuild: diff --git a/games-misc/fortune-mod-at-linux/fortune-mod-at-linux-20030120.ebuild b/games-misc/fortune-mod-at-linux/fortune-mod-at-linux-20030120.ebuild index ec7ce0cb36da..41a06076a3e6 100644 --- a/games-misc/fortune-mod-at-linux/fortune-mod-at-linux-20030120.ebuild +++ b/games-misc/fortune-mod-at-linux/fortune-mod-at-linux-20030120.ebuild @@ -1,6 +1,6 @@ -# Copyright 1999-2006 Gentoo Foundation +# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/games-misc/fortune-mod-at-linux/fortune-mod-at-linux-20030120.ebuild,v 1.10 2006/07/19 19:41:24 flameeyes Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-misc/fortune-mod-at-linux/fortune-mod-at-linux-20030120.ebuild,v 1.11 2010/09/16 17:10:36 mr_bones_ Exp $ MY_P="fortune-mod-at.linux-${PV}" DESCRIPTION="Quotes from at.linux" @@ -10,12 +10,23 @@ SRC_URI="mirror://sourceforge/fortune-mod-fvl/${MY_P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="alpha amd64 arm hppa ia64 m68k mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd" -IUSE="" +IUSE="unicode" RDEPEND="games-misc/fortune-mod" +DEPEND="${RDEPEND} + unicode? ( virtual/libiconv )" S=${WORKDIR}/${MY_P} +src_compile() { + # bug #322111 + if use unicode ; then + iconv --from-code=ISO-8859-1 --to-code=UTF-8 at.linux > at.linux-utf8 + mv at.linux-utf8 at.linux + strfile -s at.linux + fi +} + src_install() { insinto /usr/share/fortune doins at.linux at.linux.dat || die |