Gentoo Archives: gentoo-commits

From: Justin Lecher <jlec@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: x11-libs/xview/
Date: Mon, 22 Feb 2016 13:26:30
Message-Id: 1456139967.3e0a8c14f67d70ca851753dee63bbae19621ab7b.jlec@gentoo
1 commit: 3e0a8c14f67d70ca851753dee63bbae19621ab7b
2 Author: Justin Lecher <jlec <AT> gentoo <DOT> org>
3 AuthorDate: Mon Feb 22 11:19:27 2016 +0000
4 Commit: Justin Lecher <jlec <AT> gentoo <DOT> org>
5 CommitDate: Mon Feb 22 11:19:27 2016 +0000
6 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=3e0a8c14
7
8 x11-libs/xview: Bump to EAPI=6
9
10 * Break lines at < 80 chars
11 * Add missing die
12
13 Package-Manager: portage-2.2.27
14 Signed-off-by: Justin Lecher <jlec <AT> gentoo.org>
15
16 x11-libs/xview/metadata.xml | 2 +-
17 x11-libs/xview/xview-3.2-r8.ebuild | 49 ++++++++++++++++++++++----------------
18 2 files changed, 30 insertions(+), 21 deletions(-)
19
20 diff --git a/x11-libs/xview/metadata.xml b/x11-libs/xview/metadata.xml
21 index fc33570..1d8b530 100644
22 --- a/x11-libs/xview/metadata.xml
23 +++ b/x11-libs/xview/metadata.xml
24 @@ -5,7 +5,7 @@
25 <email>jlec@g.o</email>
26 <name>Justin Lecher</name>
27 </maintainer>
28 -<maintainer type="project">
29 + <maintainer type="project">
30 <email>sci@g.o</email>
31 <name>Gentoo Science Project</name>
32 </maintainer>
33
34 diff --git a/x11-libs/xview/xview-3.2-r8.ebuild b/x11-libs/xview/xview-3.2-r8.ebuild
35 index 28b02c9..7aa0d76 100644
36 --- a/x11-libs/xview/xview-3.2-r8.ebuild
37 +++ b/x11-libs/xview/xview-3.2-r8.ebuild
38 @@ -1,8 +1,8 @@
39 -# Copyright 1999-2014 Gentoo Foundation
40 +# Copyright 1999-2016 Gentoo Foundation
41 # Distributed under the terms of the GNU General Public License v2
42 # $Id$
43
44 -EAPI=5
45 +EAPI=6
46
47 inherit eutils toolchain-funcs flag-o-matic multilib
48
49 @@ -34,21 +34,21 @@ DEPEND="${RDEPEND}
50
51 S=${WORKDIR}/${MY_PN}
52
53 +PATCHES=(
54 + "${FILESDIR}"/${P}-impl-dec.patch
55 + "${WORKDIR}"/debian/patches/{debian-changes-3.2p1.4-26,display_setting}
56 +)
57 +
58 src_prepare() {
59 + default
60 +
61 append-flags -m32
62 append-ldflags -m32
63
64 - EPATCH_OPTS="-p1"
65 -
66 - epatch \
67 - "${FILESDIR}"/${P}-impl-dec.patch \
68 - "${WORKDIR}"/debian/patches/{debian-changes-3.2p1.4-26,display_setting}
69 -
70 # Do not build xgettext and msgfmt since they are provided by the gettext
71 # package. Using the programs provided by xview breaks many packages
72 # including vim, grep and binutils.
73 - sed \
74 - -e 's/MSG_UTIL = xgettext msgfmt/#MSG_UTIL = xgettext msgfmt/' \
75 + sed -e 's/MSG_UTIL = xgettext msgfmt/#MSG_UTIL = xgettext msgfmt/' \
76 -i util/Imakefile || die "gettext sed failed"
77
78 # (#120910) Look for imake in the right place
79 @@ -57,12 +57,15 @@ src_prepare() {
80 sed -i -e 's:/usr/X11R6:/usr:' config/XView.cf Build-LinuxXView.bash || die
81
82 # Nasty hacks to force CC and CFLAGS
83 - sed \
84 - -e "s:^\(IMAKEINCLUDE=.*\)\"$:\1 -DCcCmd=$(tc-getCC)\":" \
85 - -e "s:usr/lib/X11/config:usr/$(get_libdir)/X11/config:" -i Build-LinuxXView.bash || die
86 - sed -e "s:\(.*STD_DEFINES =.*\)$:\1 -D_GNU_SOURCE ${CFLAGS}:" -i config/XView.obj || die
87 - sed -e "s:\(.*define LibXViewDefines .*\)$:\1 -D_GNU_SOURCE ${CFLAGS}:" -i config/XView.cf || die
88 - sed -e "s:^\(MORECCFLAGS.*\)$:\1 -D_GNU_SOURCE ${CFLAGS}:" -i clients/olvwm-4.1/Imakefile
89 + sed -e "s:^\(IMAKEINCLUDE=.*\)\"$:\1 -DCcCmd=$(tc-getCC)\":" \
90 + -e "s:usr/lib/X11/config:usr/$(get_libdir)/X11/config:" \
91 + -i Build-LinuxXView.bash || die
92 + sed -e "s:\(.*STD_DEFINES =.*\)$:\1 -D_GNU_SOURCE ${CFLAGS}:" \
93 + -i config/XView.obj || die
94 + sed -e "s:\(.*define LibXViewDefines .*\)$:\1 -D_GNU_SOURCE ${CFLAGS}:" \
95 + -i config/XView.cf || die
96 + sed -e "s:^\(MORECCFLAGS.*\)$:\1 -D_GNU_SOURCE ${CFLAGS}:" \
97 + -i clients/olvwm-4.1/Imakefile || die
98 sed -e "s:\(-Wl,-soname\):${LDFLAGS} \1:g" -i config/XView.rules || die
99 }
100
101 @@ -99,12 +102,18 @@ src_install() {
102 # || die "installing olvwm failed"
103 # cd "${ED}"/usr
104
105 - use static-libs || \
106 - find "${ED}" -type f -name "*.a" -delete
107 + if ! use static-libs; then
108 + find "${ED}" -type f -name "*.a" -delete || die
109 + fi
110
111 mv "${ED}"/usr/man "${ED}"/usr/share/ || die
112
113 cd "${S}"/doc || die
114 - dodoc README xview-info olgx_api.txt olgx_api.ps sel_api.txt dnd_api.txt whats_new.ps
115 - rm -rf "${ED}"/usr/X11R6/share/doc/xview "${ED}"/usr/X11R6/share/doc "${ED}"/usr/bin || die
116 + dodoc \
117 + README xview-info olgx_api.txt olgx_api.ps sel_api.txt \
118 + dnd_api.txt whats_new.ps
119 + rm -rf \
120 + "${ED}"/usr/X11R6/share/doc/xview \
121 + "${ED}"/usr/X11R6/share/doc \
122 + "${ED}"/usr/bin || die
123 }