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