/[gentoo-x86]/sys-apps/less/less-451.ebuild
Gentoo

Contents of /sys-apps/less/less-451.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download)
Sun Jul 22 18:05:29 2012 UTC (9 months, 3 weeks ago) by vapier
Branch: MAIN
Version bump.

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

1 vapier 1.1 # Copyright 1999-2012 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3     # $Header: /var/cvsroot/gentoo-x86/sys-apps/less/less-450.ebuild,v 1.1 2012/07/16 05:55:31 radhermit Exp $
4    
5     EAPI="4"
6    
7     inherit eutils
8    
9     DESCRIPTION="Excellent text file viewer"
10     HOMEPAGE="http://www.greenwoodsoftware.com/less/"
11     SRC_URI="http://www.greenwoodsoftware.com/less/${P}.tar.gz
12     http://www-zeuthen.desy.de/~friebel/unix/less/code2color"
13    
14     LICENSE="|| ( GPL-3 BSD-2 )"
15     SLOT="0"
16     KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
17     IUSE="pcre unicode"
18    
19     DEPEND=">=app-misc/editor-wrapper-3
20     >=sys-libs/ncurses-5.2
21     pcre? ( dev-libs/libpcre )"
22     RDEPEND="${DEPEND}"
23    
24     src_unpack() {
25     unpack ${P}.tar.gz
26     cp "${DISTDIR}"/code2color "${S}"/
27     }
28    
29     src_prepare() {
30     epatch "${FILESDIR}"/code2color.patch
31     }
32    
33     src_configure() {
34     export ac_cv_lib_ncursesw_initscr=$(usex unicode)
35     export ac_cv_lib_ncurses_initscr=$(usex !unicode)
36     econf \
37     --with-regex=$(usex pcre pcre posix) \
38     --with-editor="${EPREFIX}"/usr/libexec/editor
39     }
40    
41     src_install() {
42     default
43    
44     dobin code2color
45     newbin "${FILESDIR}"/lesspipe.sh lesspipe
46     dosym lesspipe /usr/bin/lesspipe.sh
47     newenvd "${FILESDIR}"/less.envd 70less
48    
49     dodoc "${FILESDIR}"/README.Gentoo
50     }
51    
52     pkg_postinst() {
53     einfo "lesspipe offers colorization options. Run 'lesspipe -h' for info."
54     }

  ViewVC Help
Powered by ViewVC 1.1.13