1 |
jsin 07/09/16 01:46:22 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: openmotif-2.3.0.ebuild |
5 |
Log: |
6 |
new ebuild per bug #183736 |
7 |
(Portage version: 2.1.2.12) |
8 |
|
9 |
Revision Changes Path |
10 |
1.137 x11-libs/openmotif/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/openmotif/ChangeLog?rev=1.137&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/openmotif/ChangeLog?rev=1.137&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/openmotif/ChangeLog?r1=1.136&r2=1.137 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/x11-libs/openmotif/ChangeLog,v |
19 |
retrieving revision 1.136 |
20 |
retrieving revision 1.137 |
21 |
diff -u -r1.136 -r1.137 |
22 |
--- ChangeLog 11 May 2007 21:22:19 -0000 1.136 |
23 |
+++ ChangeLog 16 Sep 2007 01:46:21 -0000 1.137 |
24 |
@@ -1,6 +1,12 @@ |
25 |
# ChangeLog for x11-libs/openmotif |
26 |
# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/x11-libs/openmotif/ChangeLog,v 1.136 2007/05/11 21:22:19 bangert Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/x11-libs/openmotif/ChangeLog,v 1.137 2007/09/16 01:46:21 jsin Exp $ |
29 |
+ |
30 |
+*openmotif-2.3.0 (16 Sep 2007) |
31 |
+ |
32 |
+ 16 Sep 2007; Jason Smathers (jsin) <jsin@g.o> |
33 |
+ +openmotif-2.3.0.ebuild: |
34 |
+ adding ebuild submitted by Dmitry S. Kulyabov in bug #183736 |
35 |
|
36 |
11 May 2007; Thilo Bangert <bangert@g.o> metadata.xml: |
37 |
fix herd |
38 |
|
39 |
|
40 |
|
41 |
1.1 x11-libs/openmotif/openmotif-2.3.0.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/openmotif/openmotif-2.3.0.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/openmotif/openmotif-2.3.0.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: openmotif-2.3.0.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2007 Gentoo Foundation |
49 |
# Distributed under the terms of the GNU General Public License v2 |
50 |
# $Header: /var/cvsroot/gentoo-x86/x11-libs/openmotif/openmotif-2.3.0.ebuild,v 1.1 2007/09/16 01:46:21 jsin Exp $ |
51 |
|
52 |
WANT_AUTOCONF="latest" |
53 |
WANT_AUTOMAKE="1.6" |
54 |
|
55 |
inherit eutils libtool flag-o-matic multilib autotools |
56 |
|
57 |
DESCRIPTION="Open Motif" |
58 |
HOMEPAGE="http://www.motifzone.org/" |
59 |
SRC_URI="ftp://ftp.ics.com/openmotif/2.3/${PV}/${P}.tar.gz |
60 |
doc? ( http://www.motifzone.net/files/documents/${P}-manual.pdf.tgz )" |
61 |
|
62 |
LICENSE="MOTIF" |
63 |
SLOT="2.3" |
64 |
KEYWORDS="~x86 ~x86-fbsd" |
65 |
IUSE="doc xft jpeg png examples" |
66 |
|
67 |
RDEPEND="virtual/libc |
68 |
x11-libs/libXmu |
69 |
x11-libs/libXaw |
70 |
x11-libs/libXp |
71 |
x11-proto/printproto |
72 |
xft? ( x11-libs/libXft ) |
73 |
jpeg? ( media-libs/jpeg ) |
74 |
png? ( media-libs/libpng ) |
75 |
>=x11-libs/motif-config-0.9" |
76 |
DEPEND="${RDEPEND} |
77 |
>=sys-apps/sed-4 |
78 |
x11-misc/xbitmaps" |
79 |
|
80 |
PROVIDE="virtual/motif" |
81 |
|
82 |
pkg_setup() { |
83 |
# multilib includes don't work right in this package... |
84 |
[ -n "${ABI}" ] && append-flags "-I/usr/include/gentoo-multilib/${ABI}" |
85 |
} |
86 |
|
87 |
src_compile() { |
88 |
local myconf |
89 |
|
90 |
# get around some LANG problems in make (#15119) |
91 |
unset LANG |
92 |
|
93 |
# bug #80421 |
94 |
filter-flags -ftracer |
95 |
|
96 |
append-flags -fno-strict-aliasing |
97 |
|
98 |
use xft && myconf="${myconf} `use_enable xft`" |
99 |
use jpeg && myconf="${myconf} `use_enable jpeg`" |
100 |
use png && myconf="${myconf} `use_enable png`" |
101 |
|
102 |
econf --with-x \ |
103 |
${myconf} || die "configuration failed" |
104 |
|
105 |
emake -j1 || die "make failed, if you have lesstif installed removed it, compile openmotif and recompile lesstif" |
106 |
} |
107 |
|
108 |
|
109 |
src_install() { |
110 |
make DESTDIR=${D} install || die "make install failed" |
111 |
|
112 |
# cleanups |
113 |
rm -fR ${D}/usr/$(get_libdir)/X11 |
114 |
rm -fR ${D}/usr/$(get_libdir)/X11/bindings |
115 |
rm -fR ${D}/usr/include/X11/ |
116 |
|
117 |
list="/usr/share/man/man1/mwm.1 /usr/share/man/man4/mwmrc.4" |
118 |
for f in $list; do |
119 |
dosed 's:/usr/lib/X11/\(.*system\\&\.mwmrc\):/etc/X11/mwm/\1:g' "$f" |
120 |
dosed 's:/usr/lib/X11/app-defaults:/etc/X11/app-defaults:g' "$f" |
121 |
done |
122 |
|
123 |
|
124 |
einfo "Fixing binaries" |
125 |
dodir /usr/$(get_libdir)/openmotif-${SLOT} |
126 |
for file in `ls ${D}/usr/bin` |
127 |
do |
128 |
mv ${D}/usr/bin/${file} ${D}/usr/$(get_libdir)/openmotif-${SLOT}/${file} |
129 |
done |
130 |
|
131 |
einfo "Fixing libraries" |
132 |
mv ${D}/usr/$(get_libdir)/* ${D}/usr/$(get_libdir)/openmotif-${SLOT}/ |
133 |
|
134 |
einfo "Fixing includes" |
135 |
dodir /usr/include/openmotif-${SLOT}/ |
136 |
mv ${D}/usr/include/* ${D}/usr/include/openmotif-${SLOT} |
137 |
|
138 |
einfo "Fixing man pages" |
139 |
mans="1 3 4 5" |
140 |
for man in $mans; do |
141 |
dodir /usr/share/man/man${man} |
142 |
for file in `ls ${D}/usr/share/man/man${man}` |
143 |
do |
144 |
file=${file/.${man}/} |
145 |
mv ${D}/usr/share/man/man$man/${file}.${man} ${D}/usr/share/man/man${man}/${file}-openmotif-2.2.${man} |
146 |
done |
147 |
done |
148 |
|
149 |
# install docs |
150 |
dodoc README RELEASE RELNOTES BUGREPORT TODO |
151 |
|
152 |
use doc && cp ${WORKDIR}/*.pdf ${D}/usr/share/doc/${PF} |
153 |
|
154 |
if ( use examples ) |
155 |
then |
156 |
dodir /usr/share/doc/${PF}/demos |
157 |
mv ${D}/usr/share/Xm ${D}/usr/share/doc/${PF}/demos |
158 |
else |
159 |
rm -rf ${D}/usr/share/Xm |
160 |
fi |
161 |
|
162 |
# profile stuff |
163 |
dodir /etc/env.d |
164 |
echo "LDPATH=/usr/$(get_libdir)/openmotif-${SLOT}" > ${D}/etc/env.d/15openmotif-${SLOT} |
165 |
dodir /usr/$(get_libdir)/motif |
166 |
echo "PROFILE=openmotif-${SLOT}" > ${D}/usr/$(get_libdir)/motif/openmotif-${SLOT} |
167 |
} |
168 |
|
169 |
pkg_postinst() { |
170 |
/usr/bin/motif-config -s |
171 |
} |
172 |
|
173 |
pkg_postrm() { |
174 |
/usr/bin/motif-config -s |
175 |
} |
176 |
|
177 |
|
178 |
|
179 |
-- |
180 |
gentoo-commits@g.o mailing list |