x11-terms/rxvt-unicode: Add IUSE="utmp wtmp"
authorJeroen Roovers <jer@gentoo.org>
Wed, 10 Apr 2019 13:48:49 +0000 (15:48 +0200)
committerJeroen Roovers <jer@gentoo.org>
Wed, 10 Apr 2019 13:49:18 +0000 (15:49 +0200)
Package-Manager: Portage-2.3.62, Repoman-2.3.12
Bug: https://bugs.gentoo.org/683008
Signed-off-by: Jeroen Roovers <jer@gentoo.org>
x11-terms/rxvt-unicode/metadata.xml
x11-terms/rxvt-unicode/rxvt-unicode-9.22-r2.ebuild [new file with mode: 0644]
x11-terms/rxvt-unicode/rxvt-unicode-9999.ebuild

index 7d1c93339ec78a96711ed3fcd53cd31ba3ab6ca8..fe671825fc579c67fd48aecde350dc867640c2f4 100644 (file)
@@ -1,29 +1,29 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
 <pkgmetadata>
-       <maintainer type="person">
-               <email>jer@gentoo.org</email>
-               <name>Jeroen Roovers</name>
-       </maintainer>
-       <use>
-               <flag name="256-color">Enable 256 color support</flag>
-               <flag name="alt-font-width">Calculate the font width using a different method</flag>
-               <flag name="blink">Enable blinking text</flag>
-               <flag name="buffer-on-clear">Store visible output to history buffer when clearing the screen with ctrl-l.
-       Read https://bbs.archlinux.org/viewtopic.php?id=129302</flag>
-               <flag name="fading-colors">Enable colors fading when off focus</flag>
-               <flag name="focused-urgency">Enable the urgent flag when a terminal window is focused</flag>
-               <flag name="font-styles">Enable support for bold and italic fonts</flag>
-               <flag name="iso14755">Enable ISO-14755 support</flag>
-               <flag name="mousewheel">Enable scrolling via mouse wheel or buttons 4 and 5</flag>
-               <flag name="perl">Enable perl script support. You can still disable this at runtime with -pe ""</flag>
-               <flag name="pixbuf">Enable transparency support using gtk's pixbuf</flag>
-               <flag name="secondary-wheel">Support for wheel scrolling on secondary screens (like mutt).
-       Read http://lists.schmorp.de/pipermail/rxvt-unicode/2011q4/001491.html</flag>
-               <flag name="unicode3">Use 21 instead of 16 bits to represent unicode characters</flag>
-               <flag name="wcwidth">Enable wide char width support</flag>
-       </use>
-       <upstream>
-               <remote-id type="cpe">cpe:/a:rxvt-unicode:rxvt-unicode</remote-id>
-       </upstream>
+<maintainer type="person">
+<email>jer@gentoo.org</email>
+<name>Jeroen Roovers</name>
+</maintainer>
+<use>
+<flag name="256-color">Enable 256 color support</flag>
+<flag name="alt-font-width">Calculate the font width using a different method</flag>
+<flag name="blink">Enable blinking text</flag>
+<flag name="buffer-on-clear">Store visible output to history buffer when clearing the screen with ctrl-l.  Read https://bbs.archlinux.org/viewtopic.php?id=129302</flag>
+<flag name="fading-colors">Enable colors fading when off focus</flag>
+<flag name="focused-urgency">Enable the urgent flag when a terminal window is focused</flag>
+<flag name="font-styles">Enable support for bold and italic fonts</flag>
+<flag name="iso14755">Enable ISO-14755 support</flag>
+<flag name="mousewheel">Enable scrolling via mouse wheel or buttons 4 and 5</flag>
+<flag name="perl">Enable perl script support. You can still disable this at runtime with -pe ""</flag>
+<flag name="pixbuf">Enable transparency support using gtk's pixbuf</flag>
+<flag name="secondary-wheel">Support for wheel scrolling on secondary screens (like mutt).  Read http://lists.schmorp.de/pipermail/rxvt-unicode/2011q4/001491.html</flag>
+<flag name="unicode3">Use 21 instead of 16 bits to represent unicode characters</flag>
+<flag name="utmp">Enable utmp support</flag>
+<flag name="wcwidth">Enable wide char width support</flag>
+<flag name="wtmp">Enable wtmp support</flag>
+</use>
+<upstream>
+<remote-id type="cpe">cpe:/a:rxvt-unicode:rxvt-unicode</remote-id>
+</upstream>
 </pkgmetadata>
diff --git a/x11-terms/rxvt-unicode/rxvt-unicode-9.22-r2.ebuild b/x11-terms/rxvt-unicode/rxvt-unicode-9.22-r2.ebuild
new file mode 100644 (file)
index 0000000..ffbed29
--- /dev/null
@@ -0,0 +1,89 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+inherit autotools desktop
+
+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"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris"
+IUSE="
+       256-color blink fading-colors +font-styles iso14755 +mousewheel +perl
+       pixbuf startup-notification unicode3 +utmp +wtmp xft
+"
+RESTRICT="test"
+
+RDEPEND="
+       >=sys-libs/ncurses-5.7-r6:=
+       media-libs/fontconfig
+       x11-libs/libX11
+       x11-libs/libXrender
+       kernel_Darwin? ( dev-perl/Mac-Pasteboard )
+       perl? ( dev-lang/perl:= )
+       pixbuf? ( x11-libs/gdk-pixbuf x11-libs/gtk+:2 )
+       startup-notification? ( x11-libs/startup-notification )
+       xft? ( x11-libs/libXft )
+"
+DEPEND="
+       ${RDEPEND}
+       virtual/pkgconfig
+       x11-base/xorg-proto
+"
+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
+
+       # kill the rxvt-unicode terminfo file - #192083
+       sed -i -e "/rxvt-unicode.terminfo/d" doc/Makefile.in || die "sed failed"
+
+       eautoreconf
+}
+
+src_configure() {
+       # --enable-everything goes first: the order of the arguments matters
+       econf --enable-everything \
+               $(use_enable 256-color) \
+               $(use_enable blink text-blink) \
+               $(use_enable fading-colors fading) \
+               $(use_enable font-styles) \
+               $(use_enable iso14755) \
+               $(use_enable mousewheel) \
+               $(use_enable perl) \
+               $(use_enable pixbuf) \
+               $(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
+
+       make_desktop_entry urxvt rxvt-unicode utilities-terminal \
+               "System;TerminalEmulator"
+}
index 9a25833630ec6392b7b104aa2359a06db6d693e2..376b8036d82592143217b12f7475721eb9f15e61 100644 (file)
@@ -1,8 +1,8 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=6
-inherit autotools cvs eutils
+EAPI=7
+inherit autotools cvs desktop vcs-clean
 
 DESCRIPTION="rxvt clone with xft and unicode support"
 HOMEPAGE="http://software.schmorp.de/pkg/rxvt-unicode.html"
@@ -15,13 +15,13 @@ SLOT="0"
 KEYWORDS=""
 IUSE="
        256-color blink fading-colors +font-styles iso14755 +mousewheel +perl
-       pixbuf startup-notification xft unicode3
+       pixbuf startup-notification unicode3 +utmp +wtmp xft
 "
 RESTRICT="test"
 
 RDEPEND="
+       >=sys-libs/ncurses-5.7-r6:=
        media-libs/fontconfig
-       sys-libs/ncurses:*
        x11-libs/libX11
        x11-libs/libXrender
        kernel_Darwin? ( dev-perl/Mac-Pasteboard )
@@ -35,30 +35,31 @@ DEPEND="
        virtual/pkgconfig
        x11-base/xorg-proto
 "
-
-S=${WORKDIR}/${PN}
-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
 )
+S=${WORKDIR}/${PN}
 
 src_prepare() {
        ecvs_clean
-
-       # kill the rxvt-unicode terminfo file - #192083
-       sed -i -e "/rxvt-unicode.terminfo/d" doc/Makefile.in || die
+       eapply \
+               "${FILESDIR}"/${PN}-9.06-case-insensitive-fs.patch \
+               "${FILESDIR}"/${PN}-9.21-xsubpp.patch
 
        eapply_user
 
+       # kill the rxvt-unicode terminfo file - #192083
+       sed -i -e "/rxvt-unicode.terminfo/d" doc/Makefile.in || die "sed failed"
+
        eautoreconf
 }
 
 src_configure() {
-       local myconf=''
-
-       use iso14755 || myconf='--disable-iso14755'
-
        # --enable-everything goes first: the order of the arguments matters
        econf --enable-everything \
                $(use_enable 256-color) \
@@ -71,6 +72,8 @@ src_configure() {
                $(use_enable pixbuf) \
                $(use_enable startup-notification) \
                $(use_enable unicode3) \
+               $(use_enable utmp) \
+               $(use_enable wtmp) \
                $(use_enable xft)
 }
 
@@ -85,9 +88,6 @@ src_compile() {
 src_install() {
        default
 
-       dodoc \
-               README.FAQ Changes doc/README* doc/changes.txt doc/etc/* doc/rxvt-tabbed
-
        make_desktop_entry urxvt rxvt-unicode utilities-terminal \
                "System;TerminalEmulator"
 }