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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Thu Dec 17 18:36:01 2009 UTC (10 years, 1 month ago) by ssuominen
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
old
(Portage version: 2.2_rc59/cvs/Linux x86_64)

1 # Copyright 1999-2009 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.1.ebuild,v 1.1 2009/10/07 23:12:02 matsuu 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
30 src_configure() {
31 local myconf
32
33 if use readline; then
34 myconf+=" --with-readline=gnu"
35 else
36 myconf+=" --with-readline=slang"
37 fi
38
39 econf \
40 $(use_with cjk onig) \
41 $(use_with pcre) \
42 $(use_with png) \
43 $(use_with zlib z) \
44 ${myconf}
45 }
46
47 src_compile() {
48 emake -j1 elf static || die "emake elf static failed"
49
50 cd slsh
51 emake -j1 slsh || die "emake slsh failed"
52 }
53
54 src_install() {
55 emake -j1 DESTDIR="${D}" install-all || die "emake install-all failed"
56
57 rm -rf "${D}"/usr/share/doc/{slang,slsh}
58
59 dodoc NEWS README *.txt doc/{,internal,text}/*.txt
60 dohtml doc/slangdoc.html slsh/doc/html/*.html
61 }

  ViewVC Help
Powered by ViewVC 1.1.20