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

Contents of /app-editors/joe/joe-3.7-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.9 - (show annotations) (download)
Tue Aug 21 14:21:29 2012 UTC (2 years, 3 months ago) by flameeyes
Branch: MAIN
CVS Tags: HEAD
Changes since 1.8: +2 -2 lines
QA: restore src_compile after prefix screwup.

(Portage version: 2.2.0_alpha120/cvs/Linux x86_64)

1 # Copyright 1999-2012 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.7-r1.ebuild,v 1.8 2012/02/10 17:53:39 grobian Exp $
4
5 EAPI="3"
6
7 inherit flag-o-matic eutils
8
9 DESCRIPTION="A free ASCII-Text Screen Editor for UNIX"
10 HOMEPAGE="http://sourceforge.net/projects/joe-editor/"
11 SRC_URI="mirror://sourceforge/joe-editor/${P}.tar.gz"
12
13 LICENSE="GPL-1"
14 SLOT="0"
15 KEYWORDS="alpha amd64 arm ~ia64 ~mips ppc ppc64 sparc x86 ~x86-fbsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris"
16 IUSE="xterm"
17
18 DEPEND=">=sys-libs/ncurses-5.2-r2"
19 RDEPEND="xterm? ( >=x11-terms/xterm-239 )"
20
21 src_prepare() {
22 # Fix segfault, bug 283508
23 epatch "${FILESDIR}/${P}-segfault-fix.patch"
24 epatch "${FILESDIR}/${P}-sanitise-includes.patch"
25
26 cd ./rc
27
28 # Enable xterm mouse support in the rc files
29 if use xterm; then
30 for i in *rc*.in; do
31 sed -e 's/^ -\(mouse\|joexterm\)/-\1/' -i "${i}" || die "sed failed"
32 done
33 fi
34 }
35
36 src_configure() {
37 # Bug 34609 (joe 2.9.8 editor seg-faults on 'find and replace' when compiled with -Os)
38 replace-flags "-Os" "-O2"
39
40 econf --docdir="${EPREFIX}"/usr/share/doc/${PF} || die
41 }
42
43 src_install() {
44 make install DESTDIR="${D}" || die "make install failed"
45 dodoc ChangeLog HACKING HINTS LIST NEWS README TODO
46 }
47
48 pkg_postinst() {
49 if use xterm; then
50 elog "To enable full xterm clipboard you need to set the allowWindowOps"
51 elog "resources to true. This is usually found in /etc/X11/app-defaults/XTerm"
52 elog "This is false by default due to potential security problems on some"
53 elog "architectures (see bug #91453)."
54 fi
55 }

  ViewVC Help
Powered by ViewVC 1.1.20