2021-02-03 16:38:10 +01:00
|
|
|
# Copyright 1999-2021 Gentoo Authors
|
2020-02-09 12:14:28 +01:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
|
|
|
EAPI=7
|
2021-02-03 16:38:10 +01:00
|
|
|
|
2021-05-21 09:22:25 +02:00
|
|
|
inherit autotools desktop flag-o-matic systemd prefix
|
2021-02-03 16:38:10 +01:00
|
|
|
|
|
|
|
COLOUR_PATCH_NAME="${PN}-9.22_24-bit-color_cpixl-20201108.patch"
|
2020-02-09 12:14:28 +01:00
|
|
|
|
|
|
|
DESCRIPTION="rxvt clone with xft and unicode support"
|
|
|
|
HOMEPAGE="http://software.schmorp.de/pkg/rxvt-unicode.html"
|
2021-02-03 16:38:10 +01:00
|
|
|
SRC_URI="http://dist.schmorp.de/rxvt-unicode/Attic/${P}.tar.bz2
|
|
|
|
https://dev.gentoo.org/~marecki/dists/${PN}/${COLOUR_PATCH_NAME}.xz"
|
2020-02-09 12:14:28 +01:00
|
|
|
|
|
|
|
LICENSE="GPL-3"
|
|
|
|
SLOT="0"
|
2021-05-21 09:22:25 +02:00
|
|
|
KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ~ia64 ~mips ppc ppc64 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris"
|
2021-02-03 16:38:10 +01:00
|
|
|
IUSE="-24-bit-color 256-color blink fading-colors +font-styles gdk-pixbuf
|
2021-05-02 18:28:16 +02:00
|
|
|
iso14755 +mousewheel mouse +perl -sgrmouse startup-notification unicode3 +utmp +wtmp
|
|
|
|
xft"
|
2021-02-03 16:38:10 +01:00
|
|
|
|
2020-02-09 12:14:28 +01:00
|
|
|
RESTRICT="test"
|
|
|
|
|
2021-02-03 16:38:10 +01:00
|
|
|
RDEPEND=">=sys-libs/ncurses-5.7-r6:=
|
2020-02-09 12:14:28 +01:00
|
|
|
media-libs/fontconfig
|
|
|
|
x11-libs/libX11
|
|
|
|
x11-libs/libXrender
|
|
|
|
gdk-pixbuf? ( x11-libs/gdk-pixbuf )
|
|
|
|
kernel_Darwin? ( dev-perl/Mac-Pasteboard )
|
|
|
|
perl? ( dev-lang/perl:= )
|
|
|
|
startup-notification? ( x11-libs/startup-notification )
|
2021-02-03 16:38:10 +01:00
|
|
|
xft? ( x11-libs/libXft )"
|
|
|
|
DEPEND="${RDEPEND}
|
|
|
|
x11-base/xorg-proto"
|
|
|
|
BDEPEND="virtual/pkgconfig"
|
|
|
|
|
2020-02-09 12:14:28 +01:00
|
|
|
PATCHES=(
|
|
|
|
"${FILESDIR}"/${PN}-9.06-case-insensitive-fs.patch
|
|
|
|
"${FILESDIR}"/${PN}-9.21-xsubpp.patch
|
2021-05-02 18:28:16 +02:00
|
|
|
"${FILESDIR}"/${PN}-9.22-perl-segfault-on-exit.patch
|
2021-05-21 09:22:25 +02:00
|
|
|
"${FILESDIR}"/${PN}-9.22-query-graphics-insecure.patch
|
2021-02-03 16:38:10 +01:00
|
|
|
"${FILESDIR}"/${PN}-9.22-sgr-mouse-mode-flag.patch
|
|
|
|
"${WORKDIR}"/${COLOUR_PATCH_NAME}
|
2020-02-09 12:14:28 +01:00
|
|
|
)
|
|
|
|
DOCS=(
|
|
|
|
Changes
|
|
|
|
README.FAQ
|
|
|
|
doc/README.xvt
|
|
|
|
doc/changes.txt
|
|
|
|
doc/etc/${PN}.term{cap,info}
|
|
|
|
doc/rxvt-tabbed
|
|
|
|
)
|
|
|
|
|
|
|
|
src_prepare() {
|
2021-05-21 09:22:25 +02:00
|
|
|
# Bug #787104
|
|
|
|
append-cxxflags -std=c++14
|
|
|
|
|
2020-02-09 12:14:28 +01:00
|
|
|
default
|
|
|
|
|
|
|
|
# kill the rxvt-unicode terminfo file - #192083
|
|
|
|
sed -i -e "/rxvt-unicode.terminfo/d" doc/Makefile.in || die "sed failed"
|
|
|
|
|
2020-10-13 17:02:28 +02:00
|
|
|
use mouse || eapply -p1 "${FILESDIR}"/${P}-disable-mouse.patch
|
|
|
|
|
2021-05-02 18:28:16 +02:00
|
|
|
# use xsubpp from Prefix - #506500
|
|
|
|
hprefixify -q '"' -w "/xsubpp/" src/Makefile.in
|
|
|
|
|
2020-02-09 12:14:28 +01:00
|
|
|
eautoreconf
|
|
|
|
}
|
|
|
|
|
|
|
|
src_configure() {
|
|
|
|
# --enable-everything goes first: the order of the arguments matters
|
|
|
|
econf --enable-everything \
|
2021-02-03 16:38:10 +01:00
|
|
|
$(use_enable 24-bit-color) \
|
2020-02-09 12:14:28 +01:00
|
|
|
$(use_enable 256-color) \
|
|
|
|
$(use_enable blink text-blink) \
|
|
|
|
$(use_enable fading-colors fading) \
|
|
|
|
$(use_enable font-styles) \
|
|
|
|
$(use_enable gdk-pixbuf pixbuf) \
|
|
|
|
$(use_enable iso14755) \
|
|
|
|
$(use_enable mousewheel) \
|
|
|
|
$(use_enable perl) \
|
2021-02-03 16:38:10 +01:00
|
|
|
$(use_enable sgrmouse) \
|
2020-02-09 12:14:28 +01:00
|
|
|
$(use_enable startup-notification) \
|
|
|
|
$(use_enable unicode3) \
|
|
|
|
$(use_enable utmp) \
|
|
|
|
$(use_enable wtmp) \
|
|
|
|
$(use_enable xft)
|
|
|
|
}
|
|
|
|
|
|
|
|
src_compile() {
|
|
|
|
default
|
|
|
|
|
|
|
|
sed -i \
|
|
|
|
-e 's/RXVT_BASENAME = "rxvt"/RXVT_BASENAME = "urxvt"/' \
|
|
|
|
"${S}"/doc/rxvt-tabbed || die
|
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
default
|
|
|
|
|
2021-02-03 16:38:10 +01:00
|
|
|
systemd_douserunit "${FILESDIR}"/urxvtd.service
|
|
|
|
|
2020-02-09 12:14:28 +01:00
|
|
|
make_desktop_entry urxvt rxvt-unicode utilities-terminal \
|
|
|
|
"System;TerminalEmulator"
|
|
|
|
}
|
2021-02-03 16:38:10 +01:00
|
|
|
|
|
|
|
pkg_postinst() {
|
|
|
|
if use 24-bit-color; then
|
|
|
|
ewarn
|
|
|
|
ewarn "You have enabled 24-bit colour support in ${PN}, which is UNOFFICIAL and INCOMPLETE."
|
|
|
|
ewarn "You may or may not encounter visual glitches or stability issues. When in doubt,"
|
|
|
|
ewarn "rebuild =${CATEGORY}/${PF} with USE=-24-bit-color (the default setting)."
|
|
|
|
ewarn
|
|
|
|
fi
|
|
|
|
|
|
|
|
if use sgrmouse; then
|
|
|
|
ewarn
|
|
|
|
ewarn "Support for the SGR 1006 mouse extension in ${PN} is UNOFFICIAL and provided as-is."
|
|
|
|
ewarn "When in doubt, rebuild =${CATEGORY}/${PF} with USE=-sgrmouse (the default setting)."
|
|
|
|
ewarn
|
|
|
|
fi
|
|
|
|
}
|