mgorny      14/05/30 14:25:07

  Modified:             ChangeLog
  Added:                flex-2.5.39-r1.ebuild
  Log:
  Enable multilib support for libfl.a.
  
  (Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key 
EFB4464E!)

Revision  Changes    Path
1.117                sys-devel/flex/ChangeLog

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-devel/flex/ChangeLog?rev=1.117&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-devel/flex/ChangeLog?rev=1.117&content-type=text/plain
diff : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-devel/flex/ChangeLog?r1=1.116&r2=1.117

Index: ChangeLog
===================================================================
RCS file: /var/cvsroot/gentoo-x86/sys-devel/flex/ChangeLog,v
retrieving revision 1.116
retrieving revision 1.117
diff -u -r1.116 -r1.117
--- ChangeLog   29 Mar 2014 02:44:21 -0000      1.116
+++ ChangeLog   30 May 2014 14:25:06 -0000      1.117
@@ -1,6 +1,11 @@
 # ChangeLog for sys-devel/flex
 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-devel/flex/ChangeLog,v 1.116 2014/03/29 
02:44:21 radhermit Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/flex/ChangeLog,v 1.117 2014/05/30 
14:25:06 mgorny Exp $
+
+*flex-2.5.39-r1 (30 May 2014)
+
+  30 May 2014; Michał Górny <[email protected]> +flex-2.5.39-r1.ebuild:
+  Enable multilib support for libfl.a.
 
 *flex-2.5.39 (29 Mar 2014)
 



1.1                  sys-devel/flex/flex-2.5.39-r1.ebuild

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-devel/flex/flex-2.5.39-r1.ebuild?rev=1.1&view=markup
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

Index: flex-2.5.39-r1.ebuild
===================================================================
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $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 $

EAPI="4"

inherit eutils flag-o-matic multilib-minimal

DESCRIPTION="The Fast Lexical Analyzer"
HOMEPAGE="http://flex.sourceforge.net/";
SRC_URI="mirror://sourceforge/flex/${P}.tar.xz"

LICENSE="FLEX"
SLOT="0"
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"
IUSE="nls static test"

# We want bison explicitly and not yacc in general #381273
RDEPEND="sys-devel/m4"
DEPEND="${RDEPEND}
        app-arch/xz-utils
        nls? ( sys-devel/gettext )
        test? ( sys-devel/bison )"

src_configure() {
        use static && append-ldflags -static

        multilib-minimal_src_configure
}

multilib_src_configure() {
        # Do not install shared libs #503522
        ECONF_SOURCE=${S} \
        econf \
                --disable-shared \
                $(use_enable nls) \
                --docdir='$(datarootdir)/doc/'${PF}
}

multilib_src_compile() {
        if multilib_is_native_abi; then
                default
        else
                emake -f Makefile -f - lib <<< 'lib: $(lib_LTLIBRARIES)'
        fi
}

multilib_src_test() {
        multilib_is_native_abi && emake check
}

multilib_src_install() {
        if multilib_is_native_abi; then
                default
        else
                emake DESTDIR="${D}" install-libLTLIBRARIES 
install-includeHEADERS
        fi
}

multilib_src_install_all() {
        einstalldocs
        dodoc ONEWS
        prune_libtool_files --all
        rm "${ED}"/usr/share/doc/${PF}/{COPYING,flex.pdf} || die
        dosym flex /usr/bin/lex
}




Reply via email to