Gentoo Archives: gentoo-commits

From: "Ulrich Mueller (ulm)" <ulm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in x11-libs/motif: motif-2.3.4-r2.ebuild ChangeLog
Date: Wed, 30 Apr 2014 18:11:15
Message-Id: 20140430181108.2BD6D2004B@flycatcher.gentoo.org
1 ulm 14/04/30 18:11:08
2
3 Modified: ChangeLog
4 Added: motif-2.3.4-r2.ebuild
5 Log:
6 Make the ebuild conform better with multilib-minimal.eclass.
7
8 (Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key 9433907D693FB5B8!)
9
10 Revision Changes Path
11 1.45 x11-libs/motif/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/motif/ChangeLog?rev=1.45&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/motif/ChangeLog?rev=1.45&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/motif/ChangeLog?r1=1.44&r2=1.45
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/x11-libs/motif/ChangeLog,v
20 retrieving revision 1.44
21 retrieving revision 1.45
22 diff -u -r1.44 -r1.45
23 --- ChangeLog 7 Feb 2014 19:50:54 -0000 1.44
24 +++ ChangeLog 30 Apr 2014 18:11:08 -0000 1.45
25 @@ -1,6 +1,12 @@
26 # ChangeLog for x11-libs/motif
27 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/x11-libs/motif/ChangeLog,v 1.44 2014/02/07 19:50:54 ulm Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/x11-libs/motif/ChangeLog,v 1.45 2014/04/30 18:11:08 ulm Exp $
30 +
31 +*motif-2.3.4-r2 (30 Apr 2014)
32 +
33 + 30 Apr 2014; Ulrich Müller <ulm@g.o> +motif-2.3.4-r2.ebuild:
34 + Make the ebuild conform better with multilib-minimal.eclass. Thanks to mgorny
35 + for his help.
36
37 07 Feb 2014; Ulrich Müller <ulm@g.o> motif-2.3.4-r1.ebuild:
38 Remove alternative dependencies on emul-linux-x86-* packages.
39
40
41
42 1.1 x11-libs/motif/motif-2.3.4-r2.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/motif/motif-2.3.4-r2.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/motif/motif-2.3.4-r2.ebuild?rev=1.1&content-type=text/plain
46
47 Index: motif-2.3.4-r2.ebuild
48 ===================================================================
49 # Copyright 1999-2014 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/x11-libs/motif/motif-2.3.4-r2.ebuild,v 1.1 2014/04/30 18:11:08 ulm Exp $
52
53 EAPI=5
54
55 inherit autotools eutils flag-o-matic multilib toolchain-funcs multilib-minimal
56
57 DESCRIPTION="The Motif user interface component toolkit"
58 HOMEPAGE="http://sourceforge.net/projects/motif/
59 http://motif.ics.com/"
60 SRC_URI="mirror://sourceforge/project/motif/Motif%20${PV}%20Source%20Code/${P}-src.tgz
61 mirror://gentoo/${P}-patches-1.tar.xz"
62
63 LICENSE="LGPL-2.1+ MIT"
64 SLOT="0"
65 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"
66 IUSE="examples jpeg +motif22-compatibility png static-libs unicode xft"
67
68 RDEPEND="abi_x86_32? ( !app-emulation/emul-linux-x86-motif[-abi_x86_32(-)] )
69 x11-libs/libX11[${MULTILIB_USEDEP}]
70 x11-libs/libXext[${MULTILIB_USEDEP}]
71 x11-libs/libXmu[${MULTILIB_USEDEP}]
72 x11-libs/libXp[${MULTILIB_USEDEP}]
73 x11-libs/libXt[${MULTILIB_USEDEP}]
74 jpeg? ( virtual/jpeg:0=[${MULTILIB_USEDEP}] )
75 png? ( >=media-libs/libpng-1.4:0=[${MULTILIB_USEDEP}] )
76 unicode? ( virtual/libiconv[${MULTILIB_USEDEP}] )
77 xft? (
78 media-libs/fontconfig[${MULTILIB_USEDEP}]
79 x11-libs/libXft[${MULTILIB_USEDEP}]
80 )"
81
82 DEPEND="${RDEPEND}
83 sys-devel/flex
84 || ( dev-util/byacc sys-freebsd/freebsd-ubin )
85 x11-misc/xbitmaps"
86
87 src_prepare() {
88 EPATCH_SUFFIX=patch epatch
89 epatch_user
90
91 # disable compilation of demo binaries
92 sed -i -e '/^SUBDIRS/{:x;/\\$/{N;bx;};s/[ \t\n\\]*demos//;}' Makefile.am
93
94 # add X.Org vendor string to aliases for virtual bindings
95 echo -e '"The X.Org Foundation"\t\t\t\t\tpc' >>bindings/xmbind.alias
96
97 AT_M4DIR=. eautoreconf
98
99 # get around some LANG problems in make (#15119)
100 LANG=C
101
102 # bug #80421
103 filter-flags -ftracer
104
105 # feel free to fix properly if you care
106 append-flags -fno-strict-aliasing
107
108 # for Solaris Xos_r.h :(
109 [[ ${CHOST} == *-solaris2.11 ]] \
110 && append-cppflags -DNEED_XOS_R_H -DHAVE_READDIR_R_3
111
112 if use !elibc_glibc && use !elibc_uclibc && use unicode; then
113 # libiconv detection in configure script doesn't always work
114 # http://bugs.motifzone.net/show_bug.cgi?id=1423
115 export LIBS="${LIBS} -liconv"
116 fi
117
118 # "bison -y" causes runtime crashes #355795
119 export YACC=byacc
120 }
121
122 multilib_src_configure() {
123 ECONF_SOURCE="${S}" econf \
124 --with-x \
125 $(use_enable static-libs static) \
126 $(use_enable motif22-compatibility) \
127 $(use_enable unicode utf8) \
128 $(use_enable xft) \
129 $(use_enable jpeg) \
130 $(use_enable png)
131 }
132
133 multilib_src_compile() {
134 # wmluiltok is linked with libfl.a, so always build it for the host ABI
135 emake -C tools/wml CC="$(tc-getBUILD_CC)" LIBS="-lfl" wmluiltok
136 emake
137 }
138
139 multilib_src_install() {
140 emake DESTDIR="${D}" install
141
142 if multilib_is_native_abi && use examples; then
143 emake -C demos DESTDIR="${D}" install-data
144 dodir /usr/share/doc/${PF}/demos
145 mv "${ED}"/usr/share/Xm/* "${ED}"/usr/share/doc/${PF}/demos || die
146 fi
147 }
148
149 multilib_src_install_all() {
150 # mwm default configs
151 insinto /usr/share/X11/app-defaults
152 newins "${FILESDIR}"/Mwm.defaults Mwm
153
154 # cleanup
155 rm -rf "${ED}"/usr/share/Xm
156 prune_libtool_files
157
158 dodoc BUGREPORT ChangeLog README RELEASE RELNOTES TODO
159 }