summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Palimaka <kensington@gentoo.org>2012-10-18 12:04:52 +0000
committerMichael Palimaka <kensington@gentoo.org>2012-10-18 12:04:52 +0000
commit3766433934c0a6e8de113897a5da06e314f2c1e3 (patch)
tree882167b38d874e1b9f489177112c638621103f10 /app-misc/sl
parentx86 stable, see bug 394809 (diff)
downloadgentoo-2-3766433934c0a6e8de113897a5da06e314f2c1e3.tar.gz
gentoo-2-3766433934c0a6e8de113897a5da06e314f2c1e3.tar.bz2
gentoo-2-3766433934c0a6e8de113897a5da06e314f2c1e3.zip
Add vanilla USE flag to toggle original behaviour, wrt bug #225159. Update HOMEPAGE.
(Portage version: 2.1.11.29/cvs/Linux x86_64, signed Manifest commit with key 675D0D2C)
Diffstat (limited to 'app-misc/sl')
-rw-r--r--app-misc/sl/ChangeLog9
-rw-r--r--app-misc/sl/files/Makefile5
-rw-r--r--app-misc/sl/sl-3.03-r3.ebuild63
3 files changed, 76 insertions, 1 deletions
diff --git a/app-misc/sl/ChangeLog b/app-misc/sl/ChangeLog
index a94c95f23b72..00363a4d84c0 100644
--- a/app-misc/sl/ChangeLog
+++ b/app-misc/sl/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for app-misc/sl
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-misc/sl/ChangeLog,v 1.24 2012/10/18 08:51:45 kensington Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-misc/sl/ChangeLog,v 1.25 2012/10/18 12:04:52 kensington Exp $
+
+*sl-3.03-r3 (18 Oct 2012)
+
+ 18 Oct 2012; Michael Palimaka <kensington@gentoo.org> +files/Makefile,
+ +sl-3.03-r3.ebuild:
+ Add vanilla USE flag to toggle original behaviour, wrt bug #225159. Update
+ HOMEPAGE.
*sl-3.03-r2 (18 Oct 2012)
diff --git a/app-misc/sl/files/Makefile b/app-misc/sl/files/Makefile
new file mode 100644
index 000000000000..663a9bff6b1d
--- /dev/null
+++ b/app-misc/sl/files/Makefile
@@ -0,0 +1,5 @@
+LDLIBS = -lncurses
+all: sl
+sl: sl.o
+clean:
+ rm -f sl sl.o
diff --git a/app-misc/sl/sl-3.03-r3.ebuild b/app-misc/sl/sl-3.03-r3.ebuild
new file mode 100644
index 000000000000..c1cfab37d6ef
--- /dev/null
+++ b/app-misc/sl/sl-3.03-r3.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-misc/sl/sl-3.03-r3.ebuild,v 1.1 2012/10/18 12:04:52 kensington Exp $
+
+EAPI=4
+
+inherit eutils toolchain-funcs flag-o-matic
+
+SL_PATCH="sl5-1.patch"
+
+DESCRIPTION="sophisticated graphical program which corrects your miss typing"
+HOMEPAGE="http://www.tkl.iis.u-tokyo.ac.jp/~toyoda/index_e.html http://www.izumix.org.uk/sl/"
+SRC_URI="http://www.tkl.iis.u-tokyo.ac.jp/~toyoda/sl/${PN}.tar
+ !vanilla? (
+ http://www.linet.gr.jp/~izumi/sl/${SL_PATCH}
+ http://www.sodan.ecc.u-tokyo.ac.jp/~okayama/sl/${PN}.en.1.gz
+ )"
+
+LICENSE="freedist"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos"
+IUSE="debug linguas_ja vanilla"
+
+REQUIRED_USE="debug? ( !vanilla )"
+
+DEPEND="sys-libs/ncurses"
+RDEPEND="${DEPEND}"
+
+S=${WORKDIR}/${PN}
+
+pkg_setup() {
+ tc-export CC
+ use debug && append-cppflags -DDEBUG
+}
+
+src_prepare() {
+ if ! use vanilla ; then
+ epatch -p1 "${DISTDIR}/${SL_PATCH}"
+ epatch "${FILESDIR}/${P}-gentoo.diff"
+ epatch "${FILESDIR}/fix_compilation.patch"
+ fi
+
+ cp "${FILESDIR}"/Makefile "${S}" || die
+
+ if use linguas_ja; then
+ iconv -f ISO-2022-JP -t EUC-JP sl.1 > sl.ja.1
+ fi
+}
+
+src_install() {
+ dobin sl
+ dodoc sl.txt
+
+ if ! use vanilla ; then
+ newman "${WORKDIR}/sl.en.1" sl.1
+ fi
+
+ if use linguas_ja ; then
+ dodoc README*
+ insinto /usr/share/man/ja/man1
+ newins sl.ja.1 sl.1
+ fi
+}