/[gentoo-x86]/app-editors/joe/joe-3.5.ebuild
Gentoo

Contents of /app-editors/joe/joe-3.5.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.17 - (show annotations) (download)
Tue Oct 19 06:25:19 2010 UTC (3 years, 10 months ago) by leio
Branch: MAIN
CVS Tags: HEAD
Changes since 1.16: +3 -3 lines
Drop to ~mips

(Portage version: 2.1.9.14/cvs/Linux mips64)

1 # Copyright 1999-2010 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-editors/joe/joe-3.5.ebuild,v 1.16 2009/11/15 19:26:48 armin76 Exp $
4
5 inherit flag-o-matic eutils
6
7 DESCRIPTION="A free ASCII-Text Screen Editor for UNIX"
8 HOMEPAGE="http://sourceforge.net/projects/joe-editor/"
9 SRC_URI="mirror://sourceforge/joe-editor/${P}.tar.gz"
10
11 LICENSE="GPL-1"
12 SLOT="0"
13 KEYWORDS="alpha amd64 arm ~ia64 ~mips ppc ppc64 sparc x86"
14 IUSE="xterm"
15
16 DEPEND=">=sys-libs/ncurses-5.2-r2"
17 RDEPEND="xterm? ( >=x11-terms/xterm-239 )"
18
19 src_unpack() {
20 unpack ${A}
21 cd "${S}"/rc
22
23 # Enable xterm mouse support in the rc files
24 if use xterm; then
25 for i in *rc*.in; do
26 sed -e 's/^ -\(mouse\|joexterm\)/-\1/' -i "${i}" || die "sed failed"
27 done
28 fi
29 }
30
31 src_compile() {
32 # Bug 34609 (joe 2.9.8 editor seg-faults on 'find and replace' when compiled with -Os)
33 replace-flags "-Os" "-O2"
34
35 econf || die
36 emake || die
37 }
38
39 src_install() {
40 make install DESTDIR="${D}" || die "make install failed"
41 dodoc ChangeLog HACKING HINTS LIST NEWS README TODO
42 # remove superfluous documentation, fixes bug #116861
43 rm -rf "${D}"/etc/joe/doc
44 }
45
46 pkg_postinst() {
47 if use xterm; then
48 elog "To enable full xterm clipboard you need to set the allowWindowOps"
49 elog "resources to true. This is usually found in /etc/X11/app-defaults/XTerm"
50 elog "This is false by default due to potential security problems on some"
51 elog "architectures (see bug #91453)."
52 fi
53 }

  ViewVC Help
Powered by ViewVC 1.1.20