/[gentoo-x86]/sys-libs/slang/slang-2.2.2.ebuild
Gentoo

Contents of /sys-libs/slang/slang-2.2.2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.10 - (hide annotations) (download)
Fri Mar 2 20:20:40 2012 UTC (7 years, 11 months ago) by ssuominen
Branch: MAIN
CVS Tags: HEAD
Changes since 1.9: +1 -1 lines
FILE REMOVED
old

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

1 ssuominen 1.2 # Copyright 1999-2010 Gentoo Foundation
2 matsuu 1.1 # Distributed under the terms of the GNU General Public License v2
3 ssuominen 1.10 # $Header: /var/cvsroot/gentoo-x86/sys-libs/slang/slang-2.2.2.ebuild,v 1.9 2010/12/27 12:51:44 ssuominen Exp $
4 matsuu 1.1
5     EAPI=2
6     inherit eutils
7    
8 ssuominen 1.9 DESCRIPTION="A portable programmer's library designed to allow a developer to create robust portable software"
9     HOMEPAGE="http://www.jedsoft.org/slang/"
10     SRC_URI="mirror://slang/v${PV%.*}/${P}.tar.bz2"
11 matsuu 1.1
12     LICENSE="GPL-2"
13     SLOT="0"
14 pacho 1.8 KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~sparc-fbsd ~x86-fbsd"
15 matsuu 1.1 IUSE="cjk pcre png readline zlib"
16    
17     RDEPEND="sys-libs/ncurses
18     pcre? ( dev-libs/libpcre )
19     png? ( media-libs/libpng )
20     cjk? ( dev-libs/oniguruma )
21     readline? ( sys-libs/readline )
22     zlib? ( sys-libs/zlib )"
23     DEPEND="${RDEPEND}"
24    
25     src_prepare() {
26     epatch "${FILESDIR}"/${PN}-2.1.2-slsh-libs.patch \
27     "${FILESDIR}"/${PN}-2.1.3-uclibc.patch
28 ssuominen 1.2
29     sed -i \
30     -e '/^TERMCAP=/s:=.*:=:' \
31     configure || die
32 matsuu 1.1 }
33    
34     src_configure() {
35     local myconf
36    
37     if use readline; then
38     myconf+=" --with-readline=gnu"
39     else
40     myconf+=" --with-readline=slang"
41     fi
42    
43     econf \
44     $(use_with cjk onig) \
45     $(use_with pcre) \
46     $(use_with png) \
47     $(use_with zlib z) \
48     ${myconf}
49     }
50    
51     src_compile() {
52     emake -j1 elf static || die "emake elf static failed"
53    
54     cd slsh
55     emake -j1 slsh || die "emake slsh failed"
56     }
57    
58     src_install() {
59     emake -j1 DESTDIR="${D}" install-all || die "emake install-all failed"
60    
61     rm -rf "${D}"/usr/share/doc/{slang,slsh}
62    
63     dodoc NEWS README *.txt doc/{,internal,text}/*.txt
64     dohtml doc/slangdoc.html slsh/doc/html/*.html
65     }

  ViewVC Help
Powered by ViewVC 1.1.20