1 |
commit: 78c4c45bc9fdb6eddeb8dfcdd10dfd2770193cfe |
2 |
Author: Ulrich Müller <ulm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Mar 1 08:42:18 2018 +0000 |
4 |
Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Mar 1 08:59:47 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=78c4c45b |
7 |
|
8 |
x11-libs/motif: Drop Xprint support. |
9 |
|
10 |
This is obsolete since Xprint was removed from Xserver in 2008. |
11 |
|
12 |
Bug: https://bugs.gentoo.org/649080 |
13 |
Package-Manager: Portage-2.3.24, Repoman-2.3.6 |
14 |
|
15 |
x11-libs/motif/motif-2.3.8-r1.ebuild | 114 +++++++++++++++++++++++++++++++++++ |
16 |
1 file changed, 114 insertions(+) |
17 |
|
18 |
diff --git a/x11-libs/motif/motif-2.3.8-r1.ebuild b/x11-libs/motif/motif-2.3.8-r1.ebuild |
19 |
new file mode 100644 |
20 |
index 00000000000..d610557b64b |
21 |
--- /dev/null |
22 |
+++ b/x11-libs/motif/motif-2.3.8-r1.ebuild |
23 |
@@ -0,0 +1,114 @@ |
24 |
+# Copyright 1999-2018 Gentoo Foundation |
25 |
+# Distributed under the terms of the GNU General Public License v2 |
26 |
+ |
27 |
+EAPI=6 |
28 |
+ |
29 |
+inherit autotools flag-o-matic multilib toolchain-funcs multilib-minimal |
30 |
+ |
31 |
+DESCRIPTION="The Motif user interface component toolkit" |
32 |
+HOMEPAGE="https://sourceforge.net/projects/motif/ |
33 |
+ http://motif.ics.com/" |
34 |
+SRC_URI="mirror://sourceforge/project/motif/Motif%20${PV}%20Source%20Code/${P}.tar.gz |
35 |
+ https://dev.gentoo.org/~ulm/distfiles/${PN}-2.3.6-patches-2.tar.xz" |
36 |
+ |
37 |
+LICENSE="LGPL-2.1+ MIT" |
38 |
+SLOT="0" |
39 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris" |
40 |
+IUSE="examples jpeg +motif22-compatibility png static-libs unicode xft" |
41 |
+ |
42 |
+RDEPEND=">=x11-libs/libX11-1.6.2[${MULTILIB_USEDEP}] |
43 |
+ >=x11-libs/libXext-1.3.2[${MULTILIB_USEDEP}] |
44 |
+ >=x11-libs/libXmu-1.1.1-r1[${MULTILIB_USEDEP}] |
45 |
+ >=x11-libs/libXt-1.1.4[${MULTILIB_USEDEP}] |
46 |
+ jpeg? ( >=virtual/jpeg-0-r2:0=[${MULTILIB_USEDEP}] ) |
47 |
+ png? ( >=media-libs/libpng-1.6.10:0=[${MULTILIB_USEDEP}] ) |
48 |
+ unicode? ( >=virtual/libiconv-0-r1[${MULTILIB_USEDEP}] ) |
49 |
+ xft? ( |
50 |
+ >=media-libs/fontconfig-2.10.92[${MULTILIB_USEDEP}] |
51 |
+ >=x11-libs/libXft-2.3.1-r1[${MULTILIB_USEDEP}] |
52 |
+ )" |
53 |
+ |
54 |
+DEPEND="${RDEPEND} |
55 |
+ sys-devel/flex |
56 |
+ || ( dev-util/byacc sys-freebsd/freebsd-ubin ) |
57 |
+ x11-misc/xbitmaps" |
58 |
+ |
59 |
+src_prepare() { |
60 |
+ eapply ../patch |
61 |
+ eapply_user |
62 |
+ |
63 |
+ # disable compilation of demo binaries |
64 |
+ sed -i -e '/^SUBDIRS/{:x;/\\$/{N;bx;};s/[ \t\n\\]*demos//;}' Makefile.am |
65 |
+ |
66 |
+ # add X.Org vendor string to aliases for virtual bindings |
67 |
+ echo -e '"The X.Org Foundation"\t\t\t\t\tpc' >>bindings/xmbind.alias |
68 |
+ |
69 |
+ AT_M4DIR=. eautoreconf |
70 |
+ |
71 |
+ # get around some LANG problems in make (#15119) |
72 |
+ LANG=C |
73 |
+ |
74 |
+ # bug #80421 |
75 |
+ filter-flags -ftracer |
76 |
+ |
77 |
+ # feel free to fix properly if you care |
78 |
+ append-flags -fno-strict-aliasing |
79 |
+ |
80 |
+ # for Solaris Xos_r.h :( |
81 |
+ [[ ${CHOST} == *-solaris2.11 ]] \ |
82 |
+ && append-cppflags -DNEED_XOS_R_H -DHAVE_READDIR_R_3 |
83 |
+ |
84 |
+ if use !elibc_glibc && use !elibc_uclibc && use !elibc_musl \ |
85 |
+ && use unicode; then |
86 |
+ # libiconv detection in configure script doesn't always work |
87 |
+ # http://bugs.motifzone.net/show_bug.cgi?id=1423 |
88 |
+ export LIBS="${LIBS} -liconv" |
89 |
+ fi |
90 |
+ |
91 |
+ # "bison -y" causes runtime crashes #355795 |
92 |
+ export YACC=byacc |
93 |
+ |
94 |
+ # remember the name of the C compiler for the native ABI |
95 |
+ MY_NATIVE_CC=$(tc-getCC) |
96 |
+} |
97 |
+ |
98 |
+multilib_src_configure() { |
99 |
+ ECONF_SOURCE="${S}" econf \ |
100 |
+ --with-x \ |
101 |
+ --disable-printing \ |
102 |
+ $(use_enable static-libs static) \ |
103 |
+ $(use_enable motif22-compatibility) \ |
104 |
+ $(use_enable unicode utf8) \ |
105 |
+ $(use_enable xft) \ |
106 |
+ $(use_enable jpeg) \ |
107 |
+ $(use_enable png) |
108 |
+} |
109 |
+ |
110 |
+multilib_src_compile() { |
111 |
+ # The wmluiltok build tool is linked with libfl.a, so always |
112 |
+ # compile it for the native ABI |
113 |
+ emake -C tools/wml CC="${MY_NATIVE_CC}" LIBS="-lfl" wmluiltok |
114 |
+ emake |
115 |
+} |
116 |
+ |
117 |
+multilib_src_install() { |
118 |
+ emake DESTDIR="${D}" install |
119 |
+ |
120 |
+ if multilib_is_native_abi && use examples; then |
121 |
+ emake -C demos DESTDIR="${D}" install-data |
122 |
+ dodir /usr/share/doc/${PF}/demos |
123 |
+ mv "${ED}"/usr/share/Xm/* "${ED}"/usr/share/doc/${PF}/demos || die |
124 |
+ fi |
125 |
+} |
126 |
+ |
127 |
+multilib_src_install_all() { |
128 |
+ # mwm default configs |
129 |
+ insinto /usr/share/X11/app-defaults |
130 |
+ newins "${FILESDIR}"/Mwm.defaults Mwm |
131 |
+ |
132 |
+ # cleanup |
133 |
+ rm -rf "${ED}"/usr/share/Xm |
134 |
+ find "${D}" -type f -name "*.la" -delete || die |
135 |
+ |
136 |
+ dodoc BUGREPORT ChangeLog README RELEASE RELNOTES TODO |
137 |
+} |