/[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.5 - (show annotations) (download)
Tue May 11 21:04:45 2010 UTC (9 years, 9 months ago) by ranger
Branch: MAIN
Changes since 1.4: +2 -2 lines
stable ppc64, bug 318313
(Portage version: 2.1.7.17/cvs/Linux ppc64)

1 # Copyright 1999-2010 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sys-libs/slang/slang-2.2.2.ebuild,v 1.4 2010/05/10 18:40:08 nixnut Exp $
4
5 EAPI=2
6 inherit eutils
7
8 DESCRIPTION="a portable programmer's library designed to allow a developer to create robust portable software."
9 HOMEPAGE="http://www.s-lang.org"
10 SRC_URI="ftp://ftp.fu-berlin.de/pub/unix/misc/slang/v${PV%.*}/${P}.tar.bz2"
11
12 LICENSE="GPL-2"
13 SLOT="0"
14 KEYWORDS="~alpha ~amd64 ~arm hppa ~ia64 ~mips ppc ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd"
15 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
29 sed -i \
30 -e '/^TERMCAP=/s:=.*:=:' \
31 configure || die
32 }
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