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.0-r3.ebuild openmotif-2.3.0-r2.ebuild
Date: Sat, 10 May 2008 08:54:24
Message-Id: E1JukqT-0000vs-LN@stork.gentoo.org
1 ulm 08/05/10 08:54:21
2
3 Modified: ChangeLog
4 Added: openmotif-2.3.0-r3.ebuild
5 Removed: openmotif-2.3.0-r2.ebuild
6 Log:
7 Don't install the motif-config script, since no package needs it anymore.
8 (Portage version: 2.1.5_rc9)
9
10 Revision Changes Path
11 1.180 x11-libs/openmotif/ChangeLog
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/openmotif/ChangeLog?rev=1.180&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/openmotif/ChangeLog?rev=1.180&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/openmotif/ChangeLog?r1=1.179&r2=1.180
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/x11-libs/openmotif/ChangeLog,v
20 retrieving revision 1.179
21 retrieving revision 1.180
22 diff -u -r1.179 -r1.180
23 --- ChangeLog 8 May 2008 10:41:30 -0000 1.179
24 +++ ChangeLog 10 May 2008 08:54:21 -0000 1.180
25 @@ -1,6 +1,12 @@
26 # ChangeLog for x11-libs/openmotif
27 # Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/x11-libs/openmotif/ChangeLog,v 1.179 2008/05/08 10:41:30 ulm Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/x11-libs/openmotif/ChangeLog,v 1.180 2008/05/10 08:54:21 ulm Exp $
30 +
31 +*openmotif-2.3.0-r3 (10 May 2008)
32 +
33 + 10 May 2008; Ulrich Mueller <ulm@g.o> -openmotif-2.3.0-r2.ebuild,
34 + +openmotif-2.3.0-r3.ebuild:
35 + Don't install the motif-config script, since no package needs it anymore.
36
37 08 May 2008; Ulrich Mueller <ulm@g.o> openmotif-2.3.0-r1.ebuild,
38 openmotif-2.3.0-r2.ebuild:
39
40
41
42 1.1 x11-libs/openmotif/openmotif-2.3.0-r3.ebuild
43
44 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/openmotif/openmotif-2.3.0-r3.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/openmotif/openmotif-2.3.0-r3.ebuild?rev=1.1&content-type=text/plain
46
47 Index: openmotif-2.3.0-r3.ebuild
48 ===================================================================
49 # Copyright 1999-2008 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/x11-libs/openmotif/openmotif-2.3.0-r3.ebuild,v 1.1 2008/05/10 08:54:21 ulm Exp $
52
53 inherit eutils flag-o-matic multilib autotools
54
55 DESCRIPTION="Open Motif"
56 HOMEPAGE="http://www.motifzone.org/"
57 SRC_URI="ftp://ftp.ics.com/openmotif/2.3/${PV}/${P}.tar.gz
58 doc? ( http://www.motifzone.net/files/documents/${P}-manual.pdf.tgz )"
59
60 LICENSE="MOTIF libXpm doc? ( OPL )"
61 SLOT="0"
62 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd"
63 IUSE="doc examples jpeg png xft"
64
65 # make people unmerge motif-config and all previous slots
66 # since the slotting is finally gone now
67 RDEPEND="!x11-libs/motif-config
68 !x11-libs/lesstif
69 !<=x11-libs/openmotif-2.3.0
70 x11-libs/libXmu
71 x11-libs/libXp
72 virtual/libiconv
73 xft? ( x11-libs/libXft )
74 jpeg? ( media-libs/jpeg )
75 png? ( media-libs/libpng )"
76
77 DEPEND="${RDEPEND}
78 x11-misc/xbitmaps"
79
80 PROVIDE="virtual/motif"
81
82 pkg_setup() {
83 # clean up orphaned cruft left over by motif-config
84 local i l count=0
85 for i in "${ROOT}"usr/bin/{mwm,uil,xmbind} \
86 "${ROOT}"usr/include/{Xm,uil,Mrm} \
87 "${ROOT}"usr/$(get_libdir)/lib{Xm,Uil,Mrm}.*; do
88 [[ -L "${i}" ]] || continue
89 l=$(readlink "${i}")
90 if [[ ${l} == *openmotif-* || ${l} == *lesstif-* ]]; then
91 einfo "Cleaning up orphaned ${i} symlink ..."
92 rm -f "${i}"
93 fi
94 done
95
96 cd "${ROOT}"usr/share/man
97 for i in $(find . -type l); do
98 l=$(readlink "${i}")
99 if [[ ${l} == *-openmotif-* || ${l} == *-lesstif-* ]]; then
100 (( count++ ))
101 rm -f "${i}"
102 fi
103 done
104 [[ ${count} -ne 0 ]] && \
105 einfo "Cleaned up ${count} orphaned symlinks in ${ROOT}usr/share/man"
106 }
107
108 src_unpack() {
109 unpack ${A}
110 cd "${S}"
111 epatch "${FILESDIR}/${P}-sensitivity-invisible.patch"
112 epatch "${FILESDIR}/${P}-fix-nedit-segfaults.patch"
113 epatch "${FILESDIR}/${P}-freebsd-libiconv.patch"
114
115 # disable compilation of demo binaries
116 sed -i -e '/^SUBDIRS/{:x;/\\$/{N;bx;};s/[ \t\n\\]*demos//;}' Makefile.am
117
118 # fix libtool-2.2 breakage, bug 220599
119 sed -i -e 's/LT_HAVE/FINDXFT_HAVE/g' ac_find_xft.m4
120
121 # add X.Org vendor string to aliases for virtual bindings
122 echo -e '"The X.Org Foundation"\t\t\t\t\tpc' >>bindings/xmbind.alias
123
124 AT_M4DIR=. eautoreconf
125 }
126
127 src_compile() {
128 # get around some LANG problems in make (#15119)
129 unset LANG
130
131 # bug #80421
132 filter-flags -ftracer
133
134 # multilib includes don't work right in this package...
135 has_multilib_profile && append-flags "-I$(get_ml_incdir)"
136
137 # feel free to fix properly if you care
138 append-flags -fno-strict-aliasing
139
140 econf --with-x \
141 $(use_enable xft) \
142 $(use_enable jpeg) \
143 $(use_enable png)
144
145 emake -j1 || die "emake failed"
146 }
147
148 src_install() {
149 emake -j1 DESTDIR="${D}" install || die "emake install failed"
150
151 # mwm default configs
152 insinto /usr/share/X11/app-defaults
153 newins "${FILESDIR}"/Mwm.defaults Mwm
154
155 dodir /etc/X11/mwm
156 mv -f "${D}"/usr/$(get_libdir)/X11/system.mwmrc "${D}"/etc/X11/mwm
157 dosym /etc/X11/mwm/system.mwmrc /usr/$(get_libdir)/X11/
158
159 if use examples ; then
160 emake -j1 -C demos DESTDIR="${D}" install-data \
161 || die "installation of demos failed"
162 dodir /usr/share/doc/${PF}/demos
163 mv "${D}"/usr/share/Xm/* "${D}"/usr/share/doc/${PF}/demos
164 fi
165 rm -rf "${D}"/usr/share/Xm
166
167 dodoc README RELEASE RELNOTES BUGREPORT TODO
168 use doc && cp "${WORKDIR}"/*.pdf "${D}"/usr/share/doc/${PF}
169 }
170
171 pkg_postinst() {
172 local line
173 while read line; do elog "${line}"; done <<-EOF
174 Gentoo is no longer providing slotted Open Motif libraries.
175 See bug 204249 and its dependencies for the reasons.
176
177 From the Open Motif 2.3.0 (upstream) release notes:
178 "Open Motif 2.3 is an updated version of 2.2. Any applications
179 built against a previous 2.x release of Open Motif will be binary
180 compatible with this release."
181
182 If you have binary-only applications requiring libXm.so.3, you may
183 therefore create a symlink from libXm.so.3 to libXm.so.4.
184 Please note, however, that there will be no Gentoo support for this.
185 Alternatively, you may install x11-libs/openmotif-compat-2.2* for
186 the Open Motif 2.2 libraries.
187 EOF
188 }
189
190
191
192 --
193 gentoo-commits@l.g.o mailing list