Gentoo Archives: gentoo-commits

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