You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/x11-misc/xsnap/xsnap-1.5.15-r2.ebuild

67 lines
1.4 KiB

# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit toolchain-funcs
DESCRIPTION="Program to interactively take a 'snapshot' of a region of the screen"
HOMEPAGE="ftp://ftp.ac-grenoble.fr/ge/Xutils/"
SRC_URI="ftp://ftp.ac-grenoble.fr/ge/Xutils/${P}.tar.bz2"
LICENSE="GPL-3+"
SLOT="0"
KEYWORDS="amd64 ppc x86 ~amd64-linux"
IUSE=""
COMMON_DEPEND="
media-libs/libpng:0
virtual/jpeg:0
x11-libs/libX11
x11-libs/libXft
x11-libs/libXpm
"
RDEPEND="
${COMMON_DEPEND}
media-fonts/font-misc-misc
"
DEPEND="${COMMON_DEPEND}"
BDEPEND="
app-text/rman
dev-lang/perl
x11-base/xorg-proto
>=x11-misc/imake-1.0.8-r1
"
DOCS=( AUTHORS Changelog README )
PATCHES=( "${FILESDIR}"/${P}-root_name.patch )
src_prepare() {
default
sed -i \
-e 's|/usr/share/locale|$(LOCALEDIR)|g' \
-e 's|/usr/share/man/man1|$(MANDIR)|g' \
-e '/cd po.*install/s|cd.*|$(MAKE) -C po LOCALEDIR=$(LOCALEDIR) install|' \
-e '21s|.*|LOCALEDIR = /usr/share/locale|' \
Imakefile || die
sed -i \
-e '/^LOCALEDIR=/d' \
po/Makefile || die
}
src_configure() {
CC="$(tc-getBUILD_CC)" LD="$(tc-getLD)" \
IMAKECPP="${IMAKECPP:-$(tc-getCPP)}" xmkmf || die
}
src_compile() {
emake \
CC="$(tc-getCC)" \
CDEBUGFLAGS="${CFLAGS}" \
EXTRA_LDOPTIONS="${LDFLAGS}"
}
src_install() {
default
find "${ED}" -name '*.1.gz' -exec gunzip {} \; || die
}