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