2023-07-28 16:15:45 +02:00
|
|
|
# Copyright 1999-2022 Gentoo Authors
|
2022-03-31 13:47:29 +02:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
#
|
|
|
|
# NOTE(gryf): this ebuild differ from official one by using 3rd party patches,
|
|
|
|
# and configuration options, which are absent in official ebuild, but are
|
|
|
|
# accepted by configure script:
|
|
|
|
# enabled options as a use flags:
|
|
|
|
# - smart-resize
|
|
|
|
# 3rd party patches (by flags):
|
|
|
|
# - font-width - use xOff instead of width attribute for a glyph.
|
|
|
|
# - line-spacing - use ascent, descent and height from XftFont *f instead of
|
|
|
|
# FT_Face face.
|
|
|
|
# - use-space - add space for characters to figure out width and height of
|
|
|
|
# chars
|
|
|
|
# - wide-glyphs - add support for wide glyphs
|
|
|
|
EAPI=8
|
|
|
|
|
|
|
|
inherit autotools desktop systemd prefix
|
|
|
|
|
|
|
|
COLOUR_PATCH_NAME="${PN}-9.29_24-bit-color_aur-9.26-20210712.patch"
|
|
|
|
|
|
|
|
DESCRIPTION="rxvt clone with xft and unicode support"
|
|
|
|
HOMEPAGE="http://software.schmorp.de/pkg/rxvt-unicode.html"
|
|
|
|
SRC_URI="http://dist.schmorp.de/rxvt-unicode/Attic/${P}.tar.bz2
|
2023-07-28 16:15:45 +02:00
|
|
|
https://dev.gentoo.org/~marecki/dists/${CATEGORY}/${PN}/${COLOUR_PATCH_NAME}.xz"
|
2022-03-31 13:47:29 +02:00
|
|
|
|
|
|
|
LICENSE="GPL-3"
|
|
|
|
SLOT="0"
|
|
|
|
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
|
|
|
|
IUSE="24-bit-color 256-color blink fading-colors +font-styles -font-width
|
|
|
|
gdk-pixbuf iso14755 -line-spacing +mousewheel +perl -smart-resize
|
|
|
|
-use-space startup-notification unicode3 -wide-glyphs xft"
|
|
|
|
|
|
|
|
RDEPEND=">=sys-libs/ncurses-5.7-r6:=
|
|
|
|
dev-libs/libptytty
|
|
|
|
media-libs/fontconfig
|
|
|
|
x11-libs/libX11
|
|
|
|
x11-libs/libXrender
|
|
|
|
x11-libs/libXt
|
|
|
|
gdk-pixbuf? ( x11-libs/gdk-pixbuf )
|
|
|
|
perl? ( dev-lang/perl:= )
|
|
|
|
startup-notification? ( x11-libs/startup-notification )
|
|
|
|
xft? ( x11-libs/libXft )"
|
|
|
|
DEPEND="${RDEPEND}
|
|
|
|
x11-base/xorg-proto"
|
|
|
|
# autoconf dependency hopefully temporary, see Bug #827852
|
|
|
|
BDEPEND="virtual/pkgconfig
|
|
|
|
>=sys-devel/autoconf-2.71"
|
|
|
|
|
|
|
|
PATCHES=(
|
|
|
|
"${FILESDIR}"/${PN}-9.06-case-insensitive-fs.patch
|
|
|
|
"${FILESDIR}"/${PN}-9.21-xsubpp.patch
|
|
|
|
)
|
|
|
|
DOCS=(
|
|
|
|
Changes
|
|
|
|
README.FAQ
|
|
|
|
doc/README.xvt
|
|
|
|
doc/changes.txt
|
|
|
|
doc/etc/${PN}.term{cap,info}
|
|
|
|
doc/rxvt-tabbed
|
|
|
|
)
|
|
|
|
|
|
|
|
src_prepare() {
|
|
|
|
default
|
|
|
|
|
|
|
|
# Current patch is too aggressive to apply unconditionally, see Bug #801571
|
|
|
|
if use 24-bit-color; then
|
|
|
|
eapply "${WORKDIR}"/${COLOUR_PATCH_NAME}
|
|
|
|
eautoreconf
|
|
|
|
fi
|
|
|
|
|
|
|
|
# custom patches
|
|
|
|
if use font-width; then
|
|
|
|
eapply "${FILESDIR}"/${PN}-9.22-font-width-fix.patch
|
|
|
|
fi
|
|
|
|
if use line-spacing; then
|
|
|
|
eapply "${FILESDIR}"/${PN}-9.22-line-spacing-fix.patch
|
|
|
|
fi
|
|
|
|
if use wide-glyphs; then
|
|
|
|
eapply "${FILESDIR}"/${PN}-9.30-enable-wide-glyphs.patch
|
|
|
|
fi
|
|
|
|
if use use-space; then
|
|
|
|
eapply "${FILESDIR}"/${PN}-9.22-add-space-to-extent_test_chars.patch
|
|
|
|
fi
|
|
|
|
|
|
|
|
# kill the rxvt-unicode terminfo file - #192083
|
|
|
|
sed -i -e "/rxvt-unicode.terminfo/d" doc/Makefile.in || die "sed failed"
|
|
|
|
|
|
|
|
# use xsubpp from Prefix - #506500
|
|
|
|
hprefixify -q '"' -w "/xsubpp/" src/Makefile.in
|
|
|
|
}
|
|
|
|
|
|
|
|
src_configure() {
|
|
|
|
# --enable-everything goes first: the order of the arguments matters
|
|
|
|
local myconf=(
|
|
|
|
--enable-everything
|
|
|
|
$(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)
|
|
|
|
$(use_enable smart-resize)
|
|
|
|
$(use_enable startup-notification)
|
|
|
|
$(use_enable unicode3)
|
|
|
|
$(use_enable wide-glyphs)
|
|
|
|
$(use_enable xft)
|
|
|
|
)
|
|
|
|
if use 24-bit-color; then
|
|
|
|
myconf+=( --enable-24-bit-color )
|
|
|
|
fi
|
|
|
|
if use wide-glyphs; then
|
|
|
|
myconf+=( --enable-wide-glyphs )
|
|
|
|
fi
|
|
|
|
econf "${myconf[@]}"
|
|
|
|
}
|
|
|
|
|
|
|
|
src_compile() {
|
|
|
|
default
|
|
|
|
|
|
|
|
sed -i \
|
|
|
|
-e 's/RXVT_BASENAME = "rxvt"/RXVT_BASENAME = "urxvt"/' \
|
|
|
|
"${S}"/doc/rxvt-tabbed || die
|
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
default
|
|
|
|
|
|
|
|
systemd_douserunit "${FILESDIR}"/urxvtd.service
|
|
|
|
systemd_douserunit "${FILESDIR}"/urxvtd.socket
|
|
|
|
|
|
|
|
make_desktop_entry urxvt rxvt-unicode utilities-terminal \
|
|
|
|
"System;TerminalEmulator"
|
|
|
|
}
|
|
|
|
|
|
|
|
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
|
|
|
|
}
|