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/openmotif: ChangeLog openmotif-2.3.2-r2.ebuild openmotif-2.3.2-r1.ebuild
Date: Thu, 11 Feb 2010 10:22:59
Message-Id: E1NfWCH-0002RP-Dc@stork.gentoo.org
1 ulm 10/02/11 10:22:57
2
3 Modified: ChangeLog
4 Added: openmotif-2.3.2-r2.ebuild
5 Removed: openmotif-2.3.2-r1.ebuild
6 Log:
7 Fix layout problem with ddd, bug 303887. Add prefix keywords.
8 (Portage version: 2.2_rc62/cvs/Linux i686)
9
10 Revision Changes Path
11 1.227 x11-libs/openmotif/ChangeLog
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/openmotif/ChangeLog?rev=1.227&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/openmotif/ChangeLog?rev=1.227&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/openmotif/ChangeLog?r1=1.226&r2=1.227
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/x11-libs/openmotif/ChangeLog,v
20 retrieving revision 1.226
21 retrieving revision 1.227
22 diff -u -r1.226 -r1.227
23 --- ChangeLog 6 Feb 2010 15:47:55 -0000 1.226
24 +++ ChangeLog 11 Feb 2010 10:22:56 -0000 1.227
25 @@ -1,6 +1,14 @@
26 # ChangeLog for x11-libs/openmotif
27 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/x11-libs/openmotif/ChangeLog,v 1.226 2010/02/06 15:47:55 ulm Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/x11-libs/openmotif/ChangeLog,v 1.227 2010/02/11 10:22:56 ulm Exp $
30 +
31 +*openmotif-2.3.2-r2 (11 Feb 2010)
32 +
33 + 11 Feb 2010; Ulrich Mueller <ulm@g.o> -openmotif-2.3.2-r1.ebuild,
34 + +openmotif-2.3.2-r2.ebuild, +files/openmotif-2.3.2-ddd-layout.patch,
35 + +files/openmotif-2.3.2-solaris-2.11.patch:
36 + Fix layout problem with ddd, bug 303887. Some fixes for Solaris 2.11, from
37 + prefix overlay. Add keywords for prefix architectures.
38
39 *openmotif-2.3.2-r1 (06 Feb 2010)
40
41
42
43
44 1.1 x11-libs/openmotif/openmotif-2.3.2-r2.ebuild
45
46 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/openmotif/openmotif-2.3.2-r2.ebuild?rev=1.1&view=markup
47 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/openmotif/openmotif-2.3.2-r2.ebuild?rev=1.1&content-type=text/plain
48
49 Index: openmotif-2.3.2-r2.ebuild
50 ===================================================================
51 # Copyright 1999-2010 Gentoo Foundation
52 # Distributed under the terms of the GNU General Public License v2
53 # $Header: /var/cvsroot/gentoo-x86/x11-libs/openmotif/openmotif-2.3.2-r2.ebuild,v 1.1 2010/02/11 10:22:56 ulm Exp $
54
55 EAPI=3
56
57 inherit autotools eutils flag-o-matic multilib
58
59 DOC_P=${PN}-2.3.0
60 DESCRIPTION="Open Motif"
61 HOMEPAGE="http://www.motifzone.net/"
62 SRC_URI="ftp://ftp.ics.com/openmotif/${PV%.*}/${PV}/${P}.tar.gz"
63
64 LICENSE="MOTIF MIT"
65 SLOT="0"
66 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~ppc-aix ~x86-fbsd ~ia64-hpux ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
67 IUSE="doc examples jpeg png unicode xft"
68 # license allows usage only on "open source operating systems"
69 RESTRICT="!kernel_linux? (
70 !kernel_FreeBSD? (
71 !kernel_Darwin? (
72 !kernel_SunOS? (
73 fetch bindist
74 ) ) ) )"
75
76 # make people unmerge motif-config and all previous slots
77 # since the slotting is finally gone now
78 RDEPEND="!x11-libs/motif-config
79 !x11-libs/lesstif
80 !<=x11-libs/openmotif-2.3.0
81 x11-libs/libXmu
82 x11-libs/libXp
83 doc? ( app-doc/openmotif-manual )
84 unicode? ( virtual/libiconv )
85 xft? ( x11-libs/libXft )
86 jpeg? ( media-libs/jpeg )
87 png? ( media-libs/libpng )"
88
89 DEPEND="${RDEPEND}
90 sys-devel/flex
91 x11-misc/xbitmaps"
92
93 pkg_nofetch() {
94 local line
95 while read line; do einfo "${line}"; done <<-EOF
96 From the Open Motif license: "This software is subject to an open
97 license. It may only be used on, with or for operating systems which
98 are themselves open source systems. You must contact The Open Group
99 for a license allowing distribution and sublicensing of this software
100 on, with, or for operating systems which are not open source programs."
101
102 If you have got such a license, you may download the file:
103 ${SRC_URI}
104 and place it in ${DISTDIR}.
105 EOF
106 }
107
108 pkg_setup() {
109 # clean up orphaned cruft left over by motif-config
110 local i l count=0
111 for i in "${EROOT}"/usr/bin/{mwm,uil,xmbind} \
112 "${EROOT}"/usr/include/{Xm,uil,Mrm} \
113 "${EROOT}"/usr/$(get_libdir)/lib{Xm,Uil,Mrm}.*; do
114 [[ -L "${i}" ]] || continue
115 l=$(readlink "${i}")
116 if [[ ${l} == *openmotif-* || ${l} == *lesstif-* ]]; then
117 einfo "Cleaning up orphaned ${i} symlink ..."
118 rm -f "${i}"
119 fi
120 done
121
122 cd "${EROOT}"/usr/share/man
123 for i in $(find . -type l); do
124 l=$(readlink "${i}")
125 if [[ ${l} == *-openmotif-* || ${l} == *-lesstif-* ]]; then
126 (( count++ ))
127 rm -f "${i}"
128 fi
129 done
130 [[ ${count} -ne 0 ]] && \
131 einfo "Cleaned up ${count} orphaned symlinks in ${EROOT}/usr/share/man"
132 }
133
134 src_prepare() {
135 epatch "${FILESDIR}/${PN}-2.3.1-multilist-stipple.patch" #215984
136 epatch "${FILESDIR}/${PN}-2.3.1-ac-editres.patch" #82081
137 epatch "${FILESDIR}/${P}-ldflags.patch" #293573
138 epatch "${FILESDIR}/${P}-ddd-layout.patch" #303887
139 epatch "${FILESDIR}/${P}-sanitise-paths.patch"
140 [[ ${CHOST} == *-solaris2.11 ]] \
141 && epatch "${FILESDIR}/${P}-solaris-2.11.patch"
142
143 # disable compilation of demo binaries
144 sed -i -e '/^SUBDIRS/{:x;/\\$/{N;bx;};s/[ \t\n\\]*demos//;}' Makefile.am
145
146 # add X.Org vendor string to aliases for virtual bindings
147 echo -e '"The X.Org Foundation"\t\t\t\t\tpc' >>bindings/xmbind.alias
148
149 AT_M4DIR=. eautoreconf
150 }
151
152 src_configure() {
153 # get around some LANG problems in make (#15119)
154 unset LANG
155
156 # bug #80421
157 filter-flags -ftracer
158
159 # multilib includes don't work right in this package...
160 has_multilib_profile && append-flags "-I$(get_ml_incdir)"
161
162 # feel free to fix properly if you care
163 append-flags -fno-strict-aliasing
164
165 # For Solaris Xos_r.h :(
166 [[ ${CHOST} == *-solaris2.11 ]] && append-flags -DNEED_XOS_R_H=1
167
168 if use !elibc_glibc && use !elibc_uclibc && use unicode; then
169 # libiconv detection in configure script doesn't always work
170 # http://bugs.motifzone.net/show_bug.cgi?id=1423
171 export LIBS="${LIBS} -liconv"
172 fi
173
174 econf --with-x \
175 $(use_enable unicode utf8) \
176 $(use_enable xft) \
177 $(use_enable jpeg) \
178 $(use_enable png)
179 }
180
181 src_compile() {
182 emake -j1 || die "emake failed"
183 }
184
185 src_install() {
186 emake -j1 DESTDIR="${D}" install || die "emake install failed"
187
188 # mwm default configs
189 insinto /usr/share/X11/app-defaults
190 newins "${FILESDIR}"/Mwm.defaults Mwm
191
192 dodir /etc/X11/mwm
193 mv -f "${ED}"/usr/$(get_libdir)/X11/system.mwmrc "${ED}"/etc/X11/mwm
194 dosym /etc/X11/mwm/system.mwmrc /usr/$(get_libdir)/X11/
195
196 if use examples; then
197 emake -j1 -C demos DESTDIR="${D}" install-data \
198 || die "installation of demos failed"
199 dodir /usr/share/doc/${PF}/demos
200 mv "${ED}"/usr/share/Xm/* "${ED}"/usr/share/doc/${PF}/demos
201 fi
202 rm -rf "${ED}"/usr/share/Xm
203
204 dodoc BUGREPORT ChangeLog README RELEASE RELNOTES TODO
205 }
206
207 pkg_postinst() {
208 local line
209 while read line; do elog "${line}"; done <<-EOF
210 From the Open Motif 2.3.0 (upstream) release notes:
211 "Open Motif 2.3 is an updated version of 2.2. Any applications
212 built against a previous 2.x release of Open Motif will be binary
213 compatible with this release."
214
215 If you have binary-only applications requiring libXm.so.3, you may
216 therefore create a symlink from libXm.so.3 to libXm.so.4.
217 Please note, however, that there will be no Gentoo support for this.
218 Alternatively, you may install x11-libs/openmotif-compat-2.2* for
219 the Open Motif 2.2 libraries.
220 EOF
221 }