Gentoo Archives: gentoo-commits

From: Jeroen Roovers <jer@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-misc/xsnap/
Date: Sun, 02 Feb 2020 20:16:24
Message-Id: 1580674579.84b6cb6a3fb3828c5099fa76cc86ed20fc2775c8.jer@gentoo
1 commit: 84b6cb6a3fb3828c5099fa76cc86ed20fc2775c8
2 Author: Jeroen Roovers <jer <AT> gentoo <DOT> org>
3 AuthorDate: Sun Feb 2 20:15:54 2020 +0000
4 Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org>
5 CommitDate: Sun Feb 2 20:16:19 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=84b6cb6a
7
8 x11-misc/xsnap: Uncompress man pages
9
10 Package-Manager: Portage-2.3.87, Repoman-2.3.20
11 Signed-off-by: Jeroen Roovers <jer <AT> gentoo.org>
12
13 x11-misc/xsnap/xsnap-1.5.15-r2.ebuild | 69 +++++++++++++++++++++++++++++++++++
14 1 file changed, 69 insertions(+)
15
16 diff --git a/x11-misc/xsnap/xsnap-1.5.15-r2.ebuild b/x11-misc/xsnap/xsnap-1.5.15-r2.ebuild
17 new file mode 100644
18 index 00000000000..920e4a2ffcc
19 --- /dev/null
20 +++ b/x11-misc/xsnap/xsnap-1.5.15-r2.ebuild
21 @@ -0,0 +1,69 @@
22 +# Copyright 1999-2020 Gentoo Authors
23 +# Distributed under the terms of the GNU General Public License v2
24 +
25 +EAPI=7
26 +inherit toolchain-funcs
27 +
28 +DESCRIPTION="Program to interactively take a 'snapshot' of a region of the screen"
29 +HOMEPAGE="ftp://ftp.ac-grenoble.fr/ge/Xutils/"
30 +SRC_URI="ftp://ftp.ac-grenoble.fr/ge/Xutils/${P}.tar.bz2"
31 +
32 +LICENSE="GPL-3+"
33 +SLOT="0"
34 +KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux"
35 +IUSE=""
36 +
37 +COMMON_DEPEND="
38 + media-libs/libpng:0
39 + virtual/jpeg:0
40 + x11-libs/libX11
41 + x11-libs/libXft
42 + x11-libs/libXpm
43 +"
44 +RDEPEND="
45 + ${COMMON_DEPEND}
46 + media-fonts/font-misc-misc
47 +"
48 +DEPEND="
49 + ${COMMON_DEPEND}
50 + app-text/rman
51 + dev-lang/perl
52 + x11-base/xorg-proto
53 + x11-misc/imake
54 +"
55 +DOCS=( AUTHORS Changelog README )
56 +PATCHES=( "${FILESDIR}"/${P}-root_name.patch )
57 +
58 +src_prepare() {
59 + default
60 +
61 + sed -i \
62 + -e 's|/usr/share/locale|$(LOCALEDIR)|g' \
63 + -e 's|/usr/share/man/man1|$(MANDIR)|g' \
64 + -e '/cd po.*install/s|cd.*|$(MAKE) -C po LOCALEDIR=$(LOCALEDIR) install|' \
65 + -e '21s|.*|LOCALEDIR = /usr/share/locale|' \
66 + Imakefile || die
67 + sed -i \
68 + -e '/^LOCALEDIR=/d' \
69 + po/Makefile || die
70 +
71 + xmkmf || die
72 +
73 + sed -i \
74 + -e '/ CC = /d' \
75 + -e '/ LD = /d' \
76 + -e '/ CDEBUGFLAGS = /d' \
77 + -e '/ CCOPTIONS = /d' \
78 + -e 's|CPP = cpp|CPP = $(CC)|g' \
79 + Makefile || die
80 +}
81 +
82 +src_compile() {
83 + tc-export CC
84 + emake CCOPTIONS="${CFLAGS}" EXTRA_LDOPTIONS="${LDFLAGS}"
85 +}
86 +
87 +src_install() {
88 + default
89 + find "${ED}" -name '*.1.gz' -exec gunzip {} \; || die
90 +}