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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.14 - (show annotations) (download)
Tue Nov 19 12:41:59 2013 UTC (6 years, 2 months ago) by slyfox
Branch: MAIN
CVS Tags: HEAD
Changes since 1.13: +3 -2 lines
Fix implicit memset() declaration in png module.

(Portage version: 2.2.7_p18/cvs/Linux x86_64, signed Manifest commit with key 611FF3AA)

1 # Copyright 1999-2013 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.4.ebuild,v 1.13 2012/10/08 00:45:28 naota Exp $
4
5 EAPI=4
6 inherit eutils
7
8 DESCRIPTION="A multi-platform programmer's library designed to allow a developer to create robust software"
9 HOMEPAGE="http://www.jedsoft.org/slang/"
10 SRC_URI="mirror://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 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x86-solaris"
15 IUSE="cjk pcre png readline static-libs zlib"
16
17 # ncurses for ncurses5-config to get terminfo directory
18 RDEPEND="sys-libs/ncurses
19 pcre? ( dev-libs/libpcre )
20 png? ( >=media-libs/libpng-1.2:0 )
21 cjk? ( dev-libs/oniguruma )
22 readline? ( sys-libs/readline )
23 zlib? ( sys-libs/zlib )"
24 DEPEND="${RDEPEND}"
25
26 MAKEOPTS="${MAKEOPTS} -j1"
27
28 src_prepare() {
29 epatch "${FILESDIR}"/${PN}-2.2.3-slsh-libs.patch
30 epatch "${FILESDIR}"/${PN}-2.2.4-memset.patch
31
32 # avoid linking to -ltermcap race with some systems
33 sed -i -e '/^TERMCAP=/s:=.*:=:' configure || die
34 # we use the GNU linker also on Solaris
35 sed -i -e 's/-G -fPIC/-shared -fPIC/g' \
36 -e 's/-Wl,-h,/-Wl,-soname,/g' configure || die
37 }
38
39 src_configure() {
40 local myconf=slang
41 use readline && myconf=gnu
42
43 econf \
44 --with-readline=${myconf} \
45 $(use_with pcre) \
46 $(use_with cjk onig) \
47 $(use_with png) \
48 $(use_with zlib z)
49 }
50
51 src_compile() {
52 emake elf $(use static-libs && echo static)
53
54 pushd slsh >/dev/null
55 emake slsh
56 popd
57 }
58
59 src_install() {
60 emake DESTDIR="${D}" install $(use static-libs && echo install-static)
61
62 rm -rf "${ED}"/usr/share/doc/{slang,slsh}
63
64 dodoc NEWS README *.txt doc/{,internal,text}/*.txt
65 dohtml doc/slangdoc.html slsh/doc/html/*.html
66 }

  ViewVC Help
Powered by ViewVC 1.1.20