Gentoo Archives: gentoo-commits

From: Matt Turner <mattst88@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: profiles/base/, x11-terms/aterm/
Date: Tue, 29 Mar 2022 07:02:09
Message-Id: 1648537300.3cb1463577df401d7de79f1983b9c5adbc3f07ee.mattst88@gentoo
1 commit: 3cb1463577df401d7de79f1983b9c5adbc3f07ee
2 Author: Ilia Mirkin <imirkin <AT> alum <DOT> mit <DOT> edu>
3 AuthorDate: Mon Mar 28 05:38:23 2022 +0000
4 Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org>
5 CommitDate: Tue Mar 29 07:01:40 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3cb14635
7
8 x11-terms/aterm: make background use flag work, drop afterstep reference
9
10 The afterstep wm was dropped long ago. Instead, we just need afterimage,
11 which is still in the repository. Fix dependency on that, and drop a
12 bunch of configure flags which no longer do anything.
13
14 Closes: https://bugs.gentoo.org/833813
15 Closes: https://github.com/gentoo/gentoo/pull/24786
16 Signed-off-by: Ilia Mirkin <imirkin <AT> alum.mit.edu>
17 Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org>
18
19 profiles/base/package.use.mask | 2 +-
20 x11-terms/aterm/aterm-1.0.1-r5.ebuild | 84 +++++++++++++++++++++++++++++++++++
21 2 files changed, 85 insertions(+), 1 deletion(-)
22
23 diff --git a/profiles/base/package.use.mask b/profiles/base/package.use.mask
24 index e248fa6336ac..adf9bc52b851 100644
25 --- a/profiles/base/package.use.mask
26 +++ b/profiles/base/package.use.mask
27 @@ -423,7 +423,7 @@ app-text/ghostscript-gpl l10n_ja
28
29 # Michał Górny <mgorny@g.o> (2019-03-21)
30 # x11-wm/afterstep is slated for removal.
31 -x11-terms/aterm background
32 +<x11-terms/aterm-1.0.1-r5 background
33
34 # Georgy Yakovlev <gyakovlev@g.o> (2019-03-05)
35 # Not keyworded on non-x86 arches
36
37 diff --git a/x11-terms/aterm/aterm-1.0.1-r5.ebuild b/x11-terms/aterm/aterm-1.0.1-r5.ebuild
38 new file mode 100644
39 index 000000000000..4a5122d171eb
40 --- /dev/null
41 +++ b/x11-terms/aterm/aterm-1.0.1-r5.ebuild
42 @@ -0,0 +1,84 @@
43 +# Copyright 1999-2022 Gentoo Authors
44 +# Distributed under the terms of the GNU General Public License v2
45 +
46 +EAPI=8
47 +
48 +DESCRIPTION="rxvt compatible terminal emulator with transparency support"
49 +HOMEPAGE="http://aterm.sourceforge.net"
50 +SRC_URI="ftp://ftp.afterstep.org/apps/${PN}/${P}.tar.bz2"
51 +
52 +LICENSE="GPL-2"
53 +SLOT="0"
54 +KEYWORDS="~amd64"
55 +IUSE="background cjk xgetdefault"
56 +
57 +RDEPEND="
58 + virtual/jpeg:0
59 + media-libs/libpng:0=
60 + background? ( media-libs/libafterimage )
61 + x11-libs/libX11
62 + x11-libs/libXext
63 + x11-libs/libICE
64 +"
65 +DEPEND="${RDEPEND}
66 + x11-base/xorg-proto
67 + x11-libs/libXt
68 +"
69 +
70 +PATCHES=(
71 + # Security bug #219746
72 + "${FILESDIR}/${P}-display-security-issue.patch"
73 + "${FILESDIR}/${P}-deadkeys.patch"
74 + "${FILESDIR}/${P}-dpy.patch"
75 + "${FILESDIR}/${P}-remove-streams.patch"
76 +)
77 +
78 +src_prepare() {
79 + # fix pre-stripped files
80 + sed -i -e "/INSTALL_PROGRAM/ s:-s::" autoconf/Make.common.in || die "sed Makefile failed"
81 +
82 + default
83 +}
84 +
85 +src_configure() {
86 + local myconf
87 +
88 + use cjk && myconf="$myconf
89 + --enable-kanji
90 + --enable-thai
91 + --enable-big5"
92 +
93 + case "${CHOST}" in
94 + *-darwin*) myconf="${myconf} --enable-wtmp" ;;
95 + *-interix*) ;;
96 + *) myconf="${myconf} --enable-utmp --enable-wtmp"
97 + esac
98 +
99 + econf \
100 + $(use_enable xgetdefault) \
101 + $(use_with background afterimage-config "${EPREFIX}"/usr/bin) \
102 + --with-terminfo="${EPREFIX}"/usr/share/terminfo \
103 + --enable-transparency \
104 + --with-x \
105 + ${myconf}
106 +}
107 +
108 +src_install() {
109 + emake DESTDIR="${D}" install
110 +
111 + fowners root:utmp /usr/bin/aterm
112 + fperms g+s /usr/bin/aterm
113 +
114 + doman doc/aterm.1
115 + dodoc ChangeLog doc/FAQ doc/README.*
116 + docinto menu
117 + dodoc doc/menu/*
118 +}
119 +
120 +pkg_postinst() {
121 + echo
122 + elog "The transparent background will only work if you have the 'real'"
123 + elog "root wallpaper set. Some tools that might help include:"
124 + elog "wmsetbg (x11-wm/windowmaker), and/or media-gfx/feh."
125 + echo
126 +}