ulm         15/01/10 20:13:35

  Modified:             ChangeLog
  Added:                motif-2.3.4-r3.ebuild
  Log:
  Call tc-getCC in src_prepare to get the name of the compiler for the native 
ABI. Previously used tc-getBUILD_CC did not work with crossdev, bug 533678.
  
  (Portage version: 2.2.15/cvs/Linux x86_64, signed Manifest commit with key 
9433907D693FB5B8!)

Revision  Changes    Path
1.56                 x11-libs/motif/ChangeLog

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/motif/ChangeLog?rev=1.56&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/motif/ChangeLog?rev=1.56&content-type=text/plain
diff : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/motif/ChangeLog?r1=1.55&r2=1.56

Index: ChangeLog
===================================================================
RCS file: /var/cvsroot/gentoo-x86/x11-libs/motif/ChangeLog,v
retrieving revision 1.55
retrieving revision 1.56
diff -u -r1.55 -r1.56
--- ChangeLog   8 Jan 2015 14:34:31 -0000       1.55
+++ ChangeLog   10 Jan 2015 20:13:35 -0000      1.56
@@ -1,6 +1,12 @@
 # ChangeLog for x11-libs/motif
 # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/x11-libs/motif/ChangeLog,v 1.55 2015/01/08 
14:34:31 jlec Exp $
+# $Header: /var/cvsroot/gentoo-x86/x11-libs/motif/ChangeLog,v 1.56 2015/01/10 
20:13:35 ulm Exp $
+
+*motif-2.3.4-r3 (10 Jan 2015)
+
+  10 Jan 2015; Ulrich Müller <[email protected]> +motif-2.3.4-r3.ebuild:
+  Call tc-getCC in src_prepare to get the name of the compiler for the native
+  ABI. Previously used tc-getBUILD_CC did not work with crossdev, bug 533678.
 
   08 Jan 2015; Justin Lecher <[email protected]> motif-2.2.3-r12.ebuild,
   metadata.xml:



1.1                  x11-libs/motif/motif-2.3.4-r3.ebuild

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/motif/motif-2.3.4-r3.ebuild?rev=1.1&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/motif/motif-2.3.4-r3.ebuild?rev=1.1&content-type=text/plain

Index: motif-2.3.4-r3.ebuild
===================================================================
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-libs/motif/motif-2.3.4-r3.ebuild,v 1.1 
2015/01/10 20:13:35 ulm Exp $

EAPI=5

inherit autotools eutils flag-o-matic multilib toolchain-funcs multilib-minimal

DESCRIPTION="The Motif user interface component toolkit"
HOMEPAGE="http://sourceforge.net/projects/motif/
        http://motif.ics.com/";
SRC_URI="mirror://sourceforge/project/motif/Motif%20${PV}%20Source%20Code/${P}-src.tgz
        mirror://gentoo/${P}-patches-1.tar.xz"

LICENSE="LGPL-2.1+ MIT"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 
~ppc-aix ~amd64-fbsd ~x86-fbsd ~ia64-hpux ~x86-interix ~amd64-linux ~x86-linux 
~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
IUSE="examples jpeg +motif22-compatibility png static-libs unicode xft"

RDEPEND="abi_x86_32? ( !app-emulation/emul-linux-x86-motif[-abi_x86_32(-)] )
        >=x11-libs/libX11-1.6.2[${MULTILIB_USEDEP}]
        >=x11-libs/libXext-1.3.2[${MULTILIB_USEDEP}]
        >=x11-libs/libXmu-1.1.1-r1[${MULTILIB_USEDEP}]
        >=x11-libs/libXp-1.0.2[${MULTILIB_USEDEP}]
        >=x11-libs/libXt-1.1.4[${MULTILIB_USEDEP}]
        jpeg? ( >=virtual/jpeg-0-r2:0=[${MULTILIB_USEDEP}] )
        png? ( >=media-libs/libpng-1.6.10:0=[${MULTILIB_USEDEP}] )
        unicode? ( >=virtual/libiconv-0-r1[${MULTILIB_USEDEP}] )
        xft? (
                >=media-libs/fontconfig-2.10.92[${MULTILIB_USEDEP}]
                >=x11-libs/libXft-2.3.1-r1[${MULTILIB_USEDEP}]
        )"

DEPEND="${RDEPEND}
        sys-devel/flex
        || ( dev-util/byacc sys-freebsd/freebsd-ubin )
        x11-misc/xbitmaps"

src_prepare() {
        EPATCH_SUFFIX=patch epatch
        epatch_user

        # disable compilation of demo binaries
        sed -i -e '/^SUBDIRS/{:x;/\\$/{N;bx;};s/[ \t\n\\]*demos//;}' Makefile.am

        # add X.Org vendor string to aliases for virtual bindings
        echo -e '"The X.Org Foundation"\t\t\t\t\tpc' >>bindings/xmbind.alias

        AT_M4DIR=. eautoreconf

        # get around some LANG problems in make (#15119)
        LANG=C

        # bug #80421
        filter-flags -ftracer

        # feel free to fix properly if you care
        append-flags -fno-strict-aliasing

        # for Solaris Xos_r.h :(
        [[ ${CHOST} == *-solaris2.11 ]] \
                && append-cppflags -DNEED_XOS_R_H -DHAVE_READDIR_R_3

        if use !elibc_glibc && use !elibc_uclibc && use unicode; then
                # libiconv detection in configure script doesn't always work
                # http://bugs.motifzone.net/show_bug.cgi?id=1423
                export LIBS="${LIBS} -liconv"
        fi

        # "bison -y" causes runtime crashes #355795
        export YACC=byacc

        # remember the name of the C compiler for the native ABI
        MY_NATIVE_CC=$(tc-getCC)
}

multilib_src_configure() {
        ECONF_SOURCE="${S}" econf \
                --with-x \
                $(use_enable static-libs static) \
                $(use_enable motif22-compatibility) \
                $(use_enable unicode utf8) \
                $(use_enable xft) \
                $(use_enable jpeg) \
                $(use_enable png)
}

multilib_src_compile() {
        # The wmluiltok build tool is linked with libfl.a, so always
        # compile it for the native ABI
        emake -C tools/wml CC="${MY_NATIVE_CC}" LIBS="-lfl" wmluiltok
        emake
}

multilib_src_install() {
        emake DESTDIR="${D}" install

        if multilib_is_native_abi && use examples; then
                emake -C demos DESTDIR="${D}" install-data
                dodir /usr/share/doc/${PF}/demos
                mv "${ED}"/usr/share/Xm/* "${ED}"/usr/share/doc/${PF}/demos || 
die
        fi
}

multilib_src_install_all() {
        # mwm default configs
        insinto /usr/share/X11/app-defaults
        newins "${FILESDIR}"/Mwm.defaults Mwm

        # cleanup
        rmdir "${ED}"/usr/share/Xm || die
        prune_libtool_files

        dodoc BUGREPORT ChangeLog README RELEASE RELNOTES TODO
}




Reply via email to