Gentoo Archives: gentoo-commits

From: "Michal Gorny (mgorny)" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-devel/flex: flex-2.5.39-r1.ebuild ChangeLog
Date: Fri, 30 May 2014 14:25:11
Message-Id: 20140530142507.2C0F02004E@flycatcher.gentoo.org
1 mgorny 14/05/30 14:25:07
2
3 Modified: ChangeLog
4 Added: flex-2.5.39-r1.ebuild
5 Log:
6 Enable multilib support for libfl.a.
7
8 (Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key EFB4464E!)
9
10 Revision Changes Path
11 1.117 sys-devel/flex/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-devel/flex/ChangeLog?rev=1.117&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-devel/flex/ChangeLog?rev=1.117&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-devel/flex/ChangeLog?r1=1.116&r2=1.117
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sys-devel/flex/ChangeLog,v
20 retrieving revision 1.116
21 retrieving revision 1.117
22 diff -u -r1.116 -r1.117
23 --- ChangeLog 29 Mar 2014 02:44:21 -0000 1.116
24 +++ ChangeLog 30 May 2014 14:25:06 -0000 1.117
25 @@ -1,6 +1,11 @@
26 # ChangeLog for sys-devel/flex
27 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sys-devel/flex/ChangeLog,v 1.116 2014/03/29 02:44:21 radhermit Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sys-devel/flex/ChangeLog,v 1.117 2014/05/30 14:25:06 mgorny Exp $
30 +
31 +*flex-2.5.39-r1 (30 May 2014)
32 +
33 + 30 May 2014; Michał Górny <mgorny@g.o> +flex-2.5.39-r1.ebuild:
34 + Enable multilib support for libfl.a.
35
36 *flex-2.5.39 (29 Mar 2014)
37
38
39
40
41 1.1 sys-devel/flex/flex-2.5.39-r1.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-devel/flex/flex-2.5.39-r1.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-devel/flex/flex-2.5.39-r1.ebuild?rev=1.1&content-type=text/plain
45
46 Index: flex-2.5.39-r1.ebuild
47 ===================================================================
48 # Copyright 1999-2014 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/sys-devel/flex/flex-2.5.39-r1.ebuild,v 1.1 2014/05/30 14:25:06 mgorny Exp $
51
52 EAPI="4"
53
54 inherit eutils flag-o-matic multilib-minimal
55
56 DESCRIPTION="The Fast Lexical Analyzer"
57 HOMEPAGE="http://flex.sourceforge.net/"
58 SRC_URI="mirror://sourceforge/flex/${P}.tar.xz"
59
60 LICENSE="FLEX"
61 SLOT="0"
62 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~arm-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
63 IUSE="nls static test"
64
65 # We want bison explicitly and not yacc in general #381273
66 RDEPEND="sys-devel/m4"
67 DEPEND="${RDEPEND}
68 app-arch/xz-utils
69 nls? ( sys-devel/gettext )
70 test? ( sys-devel/bison )"
71
72 src_configure() {
73 use static && append-ldflags -static
74
75 multilib-minimal_src_configure
76 }
77
78 multilib_src_configure() {
79 # Do not install shared libs #503522
80 ECONF_SOURCE=${S} \
81 econf \
82 --disable-shared \
83 $(use_enable nls) \
84 --docdir='$(datarootdir)/doc/'${PF}
85 }
86
87 multilib_src_compile() {
88 if multilib_is_native_abi; then
89 default
90 else
91 emake -f Makefile -f - lib <<< 'lib: $(lib_LTLIBRARIES)'
92 fi
93 }
94
95 multilib_src_test() {
96 multilib_is_native_abi && emake check
97 }
98
99 multilib_src_install() {
100 if multilib_is_native_abi; then
101 default
102 else
103 emake DESTDIR="${D}" install-libLTLIBRARIES install-includeHEADERS
104 fi
105 }
106
107 multilib_src_install_all() {
108 einstalldocs
109 dodoc ONEWS
110 prune_libtool_files --all
111 rm "${ED}"/usr/share/doc/${PF}/{COPYING,flex.pdf} || die
112 dosym flex /usr/bin/lex
113 }