Gentoo Archives: gentoo-commits

From: "Matsuu Takuto (matsuu)" <matsuu@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-libs/slang: ChangeLog slang-2.1.2.ebuild
Date: Tue, 18 Sep 2007 16:55:05
Message-Id: E1IXgEH-0006RT-F9@stork.gentoo.org
1 matsuu 07/09/18 16:47:17
2
3 Modified: ChangeLog
4 Added: slang-2.1.2.ebuild
5 Log:
6 Version bumped, bug #182339.
7 (Portage version: 2.1.3.9)
8
9 Revision Changes Path
10 1.62 sys-libs/slang/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/slang/ChangeLog?rev=1.62&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/slang/ChangeLog?rev=1.62&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/slang/ChangeLog?r1=1.61&r2=1.62
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/sys-libs/slang/ChangeLog,v
19 retrieving revision 1.61
20 retrieving revision 1.62
21 diff -u -r1.61 -r1.62
22 --- ChangeLog 30 Aug 2007 12:45:53 -0000 1.61
23 +++ ChangeLog 18 Sep 2007 16:47:16 -0000 1.62
24 @@ -1,6 +1,12 @@
25 # ChangeLog for sys-libs/slang
26 # Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/sys-libs/slang/ChangeLog,v 1.61 2007/08/30 12:45:53 phreak Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/sys-libs/slang/ChangeLog,v 1.62 2007/09/18 16:47:16 matsuu Exp $
29 +
30 +*slang-2.1.2 (18 Sep 2007)
31 +
32 + 18 Sep 2007; MATSUU Takuto <matsuu@g.o>
33 + +files/slang-2.1.2-slsh-libs.patch, +slang-2.1.2.ebuild:
34 + Version bumped, bug #182339.
35
36 30 Aug 2007; Christian Heim <phreak@g.o> metadata.xml:
37 Removing liquidx from metadata due to his retirement (see #171155 for
38
39
40
41 1.1 sys-libs/slang/slang-2.1.2.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/slang/slang-2.1.2.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/slang/slang-2.1.2.ebuild?rev=1.1&content-type=text/plain
45
46 Index: slang-2.1.2.ebuild
47 ===================================================================
48 # Copyright 1999-2007 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/sys-libs/slang/slang-2.1.2.ebuild,v 1.1 2007/09/18 16:47:16 matsuu Exp $
51
52 inherit eutils
53
54 DESCRIPTION="Console display library used by most text viewer"
55 HOMEPAGE="http://www.s-lang.org/"
56 SRC_URI="ftp://space.mit.edu/pub/davis/slang/v${PV%.*}/${P}.tar.gz"
57
58 LICENSE="GPL-2"
59 SLOT="2"
60 KEYWORDS="~amd64 ~x86"
61 # USE=cjk is broken; see http://www.jedsoft.org/pipermail/slang-users_jedsoft.org/2006/000399.html
62 IUSE="pcre png"
63
64 DEPEND=">=sys-libs/ncurses-5.2-r2
65 pcre? ( dev-libs/libpcre )
66 png? ( media-libs/libpng )"
67
68 MAKEOPTS="${MAKEOPTS} -j1"
69
70 src_unpack() {
71 unpack ${A}
72 cd "${S}"
73
74 epatch "${FILESDIR}/${P}-slsh-libs.patch"
75
76 sed -i -e '/^THIS_LIB/s/slang/slang-2/' src/Makefile.in || die
77
78 grep -rlZ -- '-lslang\>' "${S}" | xargs -0 sed -i -e 's:-lslang:-lslang-2:g'
79 }
80
81 src_compile() {
82 econf \
83 $(use_with pcre) \
84 $(use_with png) || die "econf failed"
85 emake all || die "make all failed"
86 cd slsh
87 emake slsh || die "make slsh failed"
88 }
89
90 src_install() {
91 emake DESTDIR="${D}" install install-static || die "make install failed"
92
93 # Move headers around
94 dodir /usr/include/slang-2
95 mv "${D}"/usr/include/*.h "${D}/usr/include/slang-2"
96
97 rm -rf "${D}/usr/share/doc/{slang,slsh}"
98
99 dodoc NEWS README *.txt
100 dodoc doc/*.txt doc/internal/*.txt doc/text/*.txt
101 dohtml doc/slangdoc.html
102 dohtml slsh/doc/html/*.html
103 }
104
105 pkg_postinst() {
106 elog "For compatibility reason slang 2.x is installed in Gentoo as libslang-2."
107 elog "This has the unfortunate consequence that if you want to build something"
108 elog "from sources that uses slang 2.x, you need to change the linking library"
109 elog "to -lslang-2 instead of simply -lslang."
110 elog "We're sorry for the inconvenience, but it's to overcome an otherwise"
111 elog "problematic situation."
112 }
113
114
115
116 --
117 gentoo-commits@g.o mailing list