Gentoo Archives: gentoo-commits

From: "Andreas Hüttel" <dilfridge@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-terms/aterm/
Date: Tue, 11 Apr 2017 21:15:26
Message-Id: 1491945315.c14022dbf3b4c99cb254caf324429399321c0970.dilfridge@gentoo
1 commit: c14022dbf3b4c99cb254caf324429399321c0970
2 Author: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
3 AuthorDate: Tue Apr 11 20:50:46 2017 +0000
4 Commit: Andreas Hüttel <dilfridge <AT> gentoo <DOT> org>
5 CommitDate: Tue Apr 11 21:15:15 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c14022db
7
8 x11-terms/aterm: EAPI bump
9
10 Package-Manager: Portage-2.3.5, Repoman-2.3.2
11
12 x11-terms/aterm/aterm-1.0.1-r3.ebuild | 88 +++++++++++++++++++++++++++++++++++
13 1 file changed, 88 insertions(+)
14
15 diff --git a/x11-terms/aterm/aterm-1.0.1-r3.ebuild b/x11-terms/aterm/aterm-1.0.1-r3.ebuild
16 new file mode 100644
17 index 00000000000..e8db05b719d
18 --- /dev/null
19 +++ b/x11-terms/aterm/aterm-1.0.1-r3.ebuild
20 @@ -0,0 +1,88 @@
21 +# Copyright 1999-2017 Gentoo Foundation
22 +# Distributed under the terms of the GNU General Public License v2
23 +
24 +EAPI=6
25 +
26 +inherit flag-o-matic eutils
27 +
28 +DESCRIPTION="rxvt compatible terminal emulator with transparency support"
29 +HOMEPAGE="http://aterm.sourceforge.net"
30 +SRC_URI="ftp://ftp.afterstep.org/apps/${PN}/${P}.tar.bz2"
31 +
32 +LICENSE="GPL-2"
33 +SLOT="0"
34 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~sparc-solaris"
35 +IUSE="background cjk xgetdefault"
36 +
37 +RDEPEND="
38 + virtual/jpeg:0
39 + media-libs/libpng:0=
40 + background? ( x11-wm/afterstep )
41 + x11-libs/libX11
42 + x11-libs/libXext
43 + x11-libs/libICE
44 +"
45 +DEPEND="${RDEPEND}
46 + x11-libs/libXt
47 + x11-proto/xproto
48 +"
49 +
50 +src_prepare() {
51 + # Security bug #219746
52 + eapply "${FILESDIR}/${P}-display-security-issue.patch"
53 + eapply "${FILESDIR}"/${P}-deadkeys.patch
54 +
55 + #fix pre-stripped files
56 + sed -i -e "/INSTALL_PROGRAM/ s:-s::" autoconf/Make.common.in || die "sed Makefile failed"
57 +
58 + default
59 +}
60 +
61 +src_configure() {
62 + local myconf
63 +
64 + use cjk && myconf="$myconf
65 + --enable-kanji
66 + --enable-thai
67 + --enable-big5"
68 +
69 + case "${CHOST}" in
70 + *-darwin*) myconf="${myconf} --enable-wtmp" ;;
71 + *-interix*) ;;
72 + *) myconf="${myconf} --enable-utmp --enable-wtmp"
73 + esac
74 +
75 + econf \
76 + $(use_enable xgetdefault) \
77 + $(use_enable background background-image) \
78 + --with-terminfo="${EPREFIX}"/usr/share/terminfo \
79 + --enable-transparency \
80 + --enable-fading \
81 + --enable-background-image \
82 + --enable-menubar \
83 + --enable-graphics \
84 + --with-x \
85 + ${myconf}
86 +}
87 +
88 +src_install() {
89 + make DESTDIR="${D}" install || die "make install failed"
90 +
91 + fowners root:utmp /usr/bin/aterm
92 + fperms g+s /usr/bin/aterm
93 +
94 + doman doc/aterm.1
95 + dodoc ChangeLog doc/FAQ doc/README.*
96 + docinto menu
97 + dodoc doc/menu/*
98 + dohtml -r .
99 +}
100 +
101 +pkg_postinst() {
102 + echo
103 + elog "The transparent background will only work if you have the 'real'"
104 + elog "root wallpaper set. Some tools that might help include: Esetroot"
105 + elog "(x11-terms/eterm), wmsetbg (x11-wm/windowmaker), and/or"
106 + elog "media-gfx/feh."
107 + echo
108 +}