Gentoo Archives: gentoo-commits

From: "Jason A. Donenfeld" <zx2c4@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-libs/fox/
Date: Mon, 30 Dec 2019 14:11:09
Message-Id: 1577714993.44d239dced5011645347f89ac291281034025fcf.zx2c4@gentoo
1 commit: 44d239dced5011645347f89ac291281034025fcf
2 Author: Jason A. Donenfeld <zx2c4 <AT> gentoo <DOT> org>
3 AuthorDate: Mon Dec 30 14:09:53 2019 +0000
4 Commit: Jason A. Donenfeld <zx2c4 <AT> gentoo <DOT> org>
5 CommitDate: Mon Dec 30 14:09:53 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=44d239dc
7
8 x11-libs/fox: port Soap's QA fixes to 1.6
9
10 Package-Manager: Portage-2.3.84, Repoman-2.3.20
11 Signed-off-by: Jason A. Donenfeld <zx2c4 <AT> gentoo.org>
12
13 x11-libs/fox/fox-1.6.57-r1.ebuild | 46 +++++++++++++++++++++------------------
14 1 file changed, 25 insertions(+), 21 deletions(-)
15
16 diff --git a/x11-libs/fox/fox-1.6.57-r1.ebuild b/x11-libs/fox/fox-1.6.57-r1.ebuild
17 index a33093e968d..3b8d8ad7645 100644
18 --- a/x11-libs/fox/fox-1.6.57-r1.ebuild
19 +++ b/x11-libs/fox/fox-1.6.57-r1.ebuild
20 @@ -14,18 +14,20 @@ SLOT="1.6"
21 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
22 IUSE="+bzip2 +jpeg +opengl +png tiff +truetype +zlib debug doc profile"
23
24 -RDEPEND="x11-libs/libXrandr
25 - x11-libs/libXcursor
26 +RDEPEND="
27 x11-libs/fox-wrapper
28 + x11-libs/libXcursor
29 + x11-libs/libXrandr
30 bzip2? ( app-arch/bzip2 )
31 jpeg? ( virtual/jpeg )
32 opengl? ( virtual/glu virtual/opengl )
33 png? ( media-libs/libpng:0= )
34 tiff? ( media-libs/tiff:0= )
35 - truetype? ( media-libs/freetype:2
36 - x11-libs/libXft )
37 - zlib? ( sys-libs/zlib )
38 -"
39 + truetype? (
40 + media-libs/freetype:2
41 + x11-libs/libXft
42 + )
43 + zlib? ( sys-libs/zlib )"
44 DEPEND="${RDEPEND}
45 x11-base/xorg-proto
46 x11-libs/libXt"
47 @@ -36,7 +38,7 @@ src_prepare() {
48
49 local d
50 for d in utils windows adie calculator pathfinder shutterbug; do
51 - sed -i -e "s:${d}::" Makefile.am
52 + sed -i -e "s:${d}::" Makefile.am || die
53 done
54
55 # Respect system CXXFLAGS
56 @@ -50,6 +52,7 @@ src_prepare() {
57
58 src_configure() {
59 econf \
60 + --disable-static \
61 --enable-$(usex debug debug release) \
62 $(use_enable bzip2 bz2lib) \
63 $(use_enable jpeg) \
64 @@ -63,7 +66,7 @@ src_configure() {
65
66 src_compile() {
67 emake
68 - use doc && emake -C "${S}"/doc docs
69 + use doc && emake -C doc docs
70 }
71
72 src_install() {
73 @@ -73,28 +76,29 @@ src_install() {
74 artdir="${EPREFIX}"/usr/share/doc/${PF}/html/art \
75 screenshotsdir="${EPREFIX}"/usr/share/doc/${PF}/html/screenshots
76
77 - CP="${ED}/usr/bin/ControlPanel"
78 - if [[ -f ${CP} ]] ; then
79 - mv "${CP}" "${ED}/usr/bin/fox-ControlPanel-${SLOT}" || \
80 + local CP="${ED}"/usr/bin/ControlPanel
81 + if [[ -f ${CP} ]]; then
82 + mv "${CP}" "${ED}"/usr/bin/fox-ControlPanel-${SLOT} || \
83 die "Failed to install ControlPanel"
84 fi
85
86 - for doc in ADDITIONS AUTHORS LICENSE_ADDENDUM README TRACING ; do
87 - [[ -f $doc ]] && dodoc $doc
88 - done
89 + dodoc ADDITIONS AUTHORS LICENSE_ADDENDUM README TRACING
90
91 - # remove documentation if USE=-doc
92 - use doc || rm -fr "${D}/usr/share/doc/${PF}/html"
93 -
94 - # install class reference docs if USE=doc
95 if use doc; then
96 + # install class reference docs if USE=doc
97 docinto html
98 - dodoc -r "${S}/doc/ref"
99 + dodoc -r doc/ref
100 + else
101 + # remove documentation if USE=-doc
102 + rm -rf "${ED}"/usr/share/doc/${PF}/html || die
103 fi
104
105 # slot fox-config
106 - if [[ -f ${D}/usr/bin/fox-config ]] ; then
107 - mv "${D}/usr/bin/fox-config" "${D}/usr/bin/fox-${SLOT}-config" \
108 + if [[ -f ${ED}/usr/bin/fox-config ]] ; then
109 + mv "${ED}"/usr/bin/fox-config "${ED}"/usr/bin/fox-${SLOT}-config \
110 || die "failed to install fox-config"
111 fi
112 +
113 + # no static archives
114 + find "${D}" -name '*.la' -delete || die
115 }