summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2022-02-18 01:20:49 +0000
committerSam James <sam@gentoo.org>2022-02-18 01:21:35 +0000
commit0af68c3658561385376cc7a76b09e1d12d99f423 (patch)
tree4b92c825a825cf31cc68142932db777eccc30ac0 /app-misc
parentsys-fs/btrfs-progs: add 5.16.2 (diff)
downloadgentoo-0af68c3658561385376cc7a76b09e1d12d99f423.tar.gz
gentoo-0af68c3658561385376cc7a76b09e1d12d99f423.tar.bz2
gentoo-0af68c3658561385376cc7a76b09e1d12d99f423.zip
app-misc/screen: add 4.9.0
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'app-misc')
-rw-r--r--app-misc/screen/Manifest2
-rw-r--r--app-misc/screen/screen-4.9.0.ebuild (renamed from app-misc/screen/screen-4.9.0_rc1.ebuild)30
-rw-r--r--app-misc/screen/screen-9999.ebuild44
3 files changed, 30 insertions, 46 deletions
diff --git a/app-misc/screen/Manifest b/app-misc/screen/Manifest
index 0f251bd13da3..b9fe20e2f00b 100644
--- a/app-misc/screen/Manifest
+++ b/app-misc/screen/Manifest
@@ -1,2 +1,2 @@
DIST screen-4.8.0.tar.gz 854854 BLAKE2B 97ef6f18bf2c63c477260b742ac0b3501f112d380c41ccecc5cf2853db853cc62d4fd6d37edeca35fb41a43b76d98a5cfe160749c992d284f9764b0a0fdcc778 SHA512 770ebaf6ee9be711bcb8a6104b3294f2bf4523dae6683fdc5eac4b3aff7e511be2d922b6b2ad28ec241113c2e4fe0d80f9a482ae1658adc19c8c3a3680caa25c
-DIST screen-4.9.0_rc1.tar.gz 812374 BLAKE2B b908ec64f932dafe34cd0032fd59da9352cf9e7a56cce06c6b2664a84a25637cfc6679f73bfb47e0cacb590739bfa9b61125d942e63f2cb2ae1aaa1b1a2dea8d SHA512 1f87ce0bc1cbfaa8fd7437eee707de8e047bb8f110c26d40f5cb7916816d10ea1830281c680189e855af9cf2f4e712dc08a7c480961d9aee9ea4bb092557b508
+DIST screen-4.9.0.tar.gz 798229 BLAKE2B 0f64a14ce9a719bd4a6d045c55069769045a09ee2086c44c2e3d9da6d1e5ada2f094e00e16029767e1155ce35d4f360d0e2879995eefa052f3214ced71b7617c SHA512 18bbb085d77ecd02cbc02fa88a945c39f06e0c6de4eeaa16b278440dac5c9896811abbe0838144e997cd344ae08b9530399fa8fcb31a65fc571ead90e8307f84
diff --git a/app-misc/screen/screen-4.9.0_rc1.ebuild b/app-misc/screen/screen-4.9.0.ebuild
index 6e0c5455bf0e..18779966236e 100644
--- a/app-misc/screen/screen-4.9.0_rc1.ebuild
+++ b/app-misc/screen/screen-4.9.0.ebuild
@@ -3,21 +3,14 @@
EAPI=7
-inherit autotools flag-o-matic pam tmpfiles toolchain-funcs
+inherit autotools flag-o-matic pam tmpfiles
DESCRIPTION="screen manager with VT100/ANSI terminal emulation"
HOMEPAGE="https://www.gnu.org/software/screen/"
if [[ ${PV} != 9999 ]] ; then
- if [[ ${PV} == *_rc* ]] ; then
- # See https://lists.gnu.org/archive/html/screen-devel/2022-01/msg00010.html
- MY_COMMIT="d591a396c7e41d10191c1f5676032d9e261da2f7"
- SRC_URI="https://git.savannah.gnu.org/cgit/screen.git/snapshot/${PN}-${MY_COMMIT}.tar.gz -> ${P}.tar.gz"
- S="${WORKDIR}"/${PN}-${MY_COMMIT}/src
- else
- SRC_URI="mirror://gnu/${PN}/${P}.tar.gz"
- KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
- fi
+ SRC_URI="mirror://gnu/${PN}/${P}.tar.gz"
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
else
inherit git-r3
EGIT_REPO_URI="https://git.savannah.gnu.org/git/screen.git"
@@ -29,15 +22,13 @@ LICENSE="GPL-2"
SLOT="0"
IUSE="debug nethack pam selinux multiuser"
-CDEPEND="
- >=sys-libs/ncurses-5.2:0=
+DEPEND=">=sys-libs/ncurses-5.2:=
virtual/libcrypt:=
pam? ( sys-libs/pam )"
-RDEPEND="${CDEPEND}
+RDEPEND="${DEPEND}
acct-group/utmp
selinux? ( sec-policy/selinux-screen )"
-DEPEND="${CDEPEND}
- sys-apps/texinfo"
+BDEPEND="sys-apps/texinfo"
PATCHES=(
# Don't use utempter even if it is found on the system.
@@ -52,7 +43,7 @@ src_prepare() {
mv sched.h _sched.h || die
sed -i '/include/ s:sched.h:_sched.h:' screen.h || die
- # Fix manpage.
+ # Fix manpage
sed -i \
-e "s:/usr/local/etc/screenrc:${EPREFIX}/etc/screenrc:g" \
-e "s:/usr/local/screens:${EPREFIX}/tmp/screen:g" \
@@ -61,7 +52,7 @@ src_prepare() {
-e "s:/local/screens/S\\\-:${EPREFIX}/tmp/screen/S\\\-:g" \
doc/screen.1 || die
- if [[ ${CHOST} == *-darwin* ]] || use elibc_musl ; then
+ if [[ ${CHOST} == *-darwin* ]] || use elibc_musl; then
sed -i -e '/^#define UTMPOK/s/define/undef/' acconfig.h || die
fi
@@ -75,7 +66,7 @@ src_prepare() {
src_configure() {
append-cppflags "-DMAXWIN=${MAX_SCREEN_WINDOWS:-100}"
- if [[ ${CHOST} == *-solaris* ]] ; then
+ if [[ ${CHOST} == *-solaris* ]]; then
# enable msg_header by upping the feature standard compatible
# with c99 mode
append-cppflags -D_XOPEN_SOURCE=600
@@ -142,8 +133,7 @@ src_install() {
}
pkg_postinst() {
- if [[ -z ${REPLACING_VERSIONS} ]]
- then
+ if [[ -z ${REPLACING_VERSIONS} ]]; then
elog "Some dangerous key bindings have been removed or changed to more safe values."
elog "We enable some xterm hacks in our default screenrc, which might break some"
elog "applications. Please check /etc/screenrc for information on these changes."
diff --git a/app-misc/screen/screen-9999.ebuild b/app-misc/screen/screen-9999.ebuild
index e41146f416bf..18779966236e 100644
--- a/app-misc/screen/screen-9999.ebuild
+++ b/app-misc/screen/screen-9999.ebuild
@@ -1,36 +1,34 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
-inherit autotools flag-o-matic pam tmpfiles toolchain-funcs
+inherit autotools flag-o-matic pam tmpfiles
DESCRIPTION="screen manager with VT100/ANSI terminal emulation"
HOMEPAGE="https://www.gnu.org/software/screen/"
-if [[ "${PV}" != 9999 ]] ; then
+if [[ ${PV} != 9999 ]] ; then
SRC_URI="mirror://gnu/${PN}/${P}.tar.gz"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
else
inherit git-r3
EGIT_REPO_URI="https://git.savannah.gnu.org/git/screen.git"
EGIT_CHECKOUT_DIR="${WORKDIR}/${P}" # needed for setting S later on
- S="${WORKDIR}/${P}/src"
+ S="${WORKDIR}"/${P}/src
fi
LICENSE="GPL-2"
SLOT="0"
IUSE="debug nethack pam selinux multiuser"
-CDEPEND="
- >=sys-libs/ncurses-5.2:0=
+DEPEND=">=sys-libs/ncurses-5.2:=
virtual/libcrypt:=
pam? ( sys-libs/pam )"
-RDEPEND="${CDEPEND}
+RDEPEND="${DEPEND}
acct-group/utmp
selinux? ( sec-policy/selinux-screen )"
-DEPEND="${CDEPEND}
- sys-apps/texinfo"
+BDEPEND="sys-apps/texinfo"
PATCHES=(
# Don't use utempter even if it is found on the system.
@@ -39,19 +37,13 @@ PATCHES=(
)
src_prepare() {
- if [[ "${PV}" != *9999 ]] ; then
- default
- else
- eapply_user
- fi
+ default
# sched.h is a system header and causes problems with some C libraries
mv sched.h _sched.h || die
- sed -i '/include/ s:sched\.h:_sched.h:' \
- screen.h winmsg.c window.h sched.c canvas.h || die
- sed -i 's@[[:space:]]sched\.h@ _sched.h@' Makefile.in || die
+ sed -i '/include/ s:sched.h:_sched.h:' screen.h || die
- # Fix manpage.
+ # Fix manpage
sed -i \
-e "s:/usr/local/etc/screenrc:${EPREFIX}/etc/screenrc:g" \
-e "s:/usr/local/screens:${EPREFIX}/tmp/screen:g" \
@@ -60,7 +52,7 @@ src_prepare() {
-e "s:/local/screens/S\\\-:${EPREFIX}/tmp/screen/S\\\-:g" \
doc/screen.1 || die
- if [[ ${CHOST} == *-darwin* ]] || use elibc_musl ; then
+ if [[ ${CHOST} == *-darwin* ]] || use elibc_musl; then
sed -i -e '/^#define UTMPOK/s/define/undef/' acconfig.h || die
fi
@@ -74,7 +66,7 @@ src_prepare() {
src_configure() {
append-cppflags "-DMAXWIN=${MAX_SCREEN_WINDOWS:-100}"
- if [[ ${CHOST} == *-solaris* ]] ; then
+ if [[ ${CHOST} == *-solaris* ]]; then
# enable msg_header by upping the feature standard compatible
# with c99 mode
append-cppflags -D_XOPEN_SOURCE=600
@@ -84,11 +76,13 @@ src_configure() {
use debug && append-cppflags "-DDEBUG"
local myeconfargs=(
- --enable-socket-dir="${EPREFIX}/tmp/${PN}"
- --with-system_screenrc="${EPREFIX}/etc/screenrc"
+ --with-socket-dir="${EPREFIX}/tmp/${PN}"
+ --with-sys-screenrc="${EPREFIX}/etc/screenrc"
--with-pty-mode=0620
--with-pty-group=5
+ --enable-rxvt_osc
--enable-telnet
+ --enable-colors256
$(use_enable pam)
)
econf "${myeconfargs[@]}"
@@ -96,6 +90,7 @@ src_configure() {
src_compile() {
LC_ALL=POSIX emake comm.h term.h
+ emake osdef.h
emake -C doc screen.info
default
@@ -103,7 +98,7 @@ src_compile() {
src_install() {
local DOCS=(
- README ChangeLog INSTALL TODO NEWS*
+ README ChangeLog INSTALL TODO NEWS* patchlevel.h
doc/{FAQ,README.DOTSCREEN,fdpat.ps,window_to_display.ps}
)
@@ -138,8 +133,7 @@ src_install() {
}
pkg_postinst() {
- if [[ -z ${REPLACING_VERSIONS} ]]
- then
+ if [[ -z ${REPLACING_VERSIONS} ]]; then
elog "Some dangerous key bindings have been removed or changed to more safe values."
elog "We enable some xterm hacks in our default screenrc, which might break some"
elog "applications. Please check /etc/screenrc for information on these changes."