x11-misc/xosview: add 1.24

Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
This commit is contained in:
Andreas K. Hüttel
2025-02-16 16:36:22 +01:00
parent 879879796b
commit acea9f2837
2 changed files with 58 additions and 0 deletions

View File

@@ -1 +1,2 @@
DIST xosview-1.23.tar.gz 146299 BLAKE2B ba336ac152ac6c44bd51c84c160d7c1b565fe23c17aa89db36be7325f4f1caa1ab84a1ad386041841a0aacb62208fb5d59f5dd7a9d2bf071c76dff2901eb2c60 SHA512 10a25f644ec3d896071990117c6d80e553a17baf64809f11bc778652dca1498f81c333ac0f21a809ef617d7e6cbe65afaa14d5bc96908958d8f997234e660ba1
DIST xosview-1.24.tar.gz 141144 BLAKE2B eb93f902d88412768d012d37b0d5063d9e3adbdea088a32c51618fe03743dc61eaa4204d42562efe276eaf5ff0bab8b1b212c5ae26fb12cb7b44ce0fb001abe8 SHA512 aeeecc3be8c4a22bb62062ca51c927ace186c0652f7cc16fbdd7b7d3acb247242d1ad64960cfb4622bd1626fdfcd26ef6938df2b4f788ee8fc44e5cf59396540

View File

@@ -0,0 +1,57 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit toolchain-funcs xdg-utils
DESCRIPTION="X11 operating system viewer"
HOMEPAGE="http://www.pogo.org.uk/~mark/xosview/"
SRC_URI="http://www.pogo.org.uk/~mark/${PN}/releases/${P}.tar.gz"
LICENSE="GPL-2 BSD"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
IUSE="suid"
COMMON_DEPS="x11-libs/libX11
x11-libs/libXpm
x11-libs/libXt"
RDEPEND="${COMMON_DEPS}
media-fonts/font-misc-misc"
DEPEND="${COMMON_DEPS}
x11-base/xorg-proto"
DOCS=( CHANGES README.linux TODO )
src_prepare() {
default
sed -i -e 's:lib/X11/app:share/X11/app:g' -i ${PN}.1 || die
sed -i -e "s:Git:${PV}:g" ${PN}.cc || die
tc-export CXX
}
src_compile() {
emake OPTFLAGS=''
}
src_install() {
emake PREFIX="${D}/usr" install
use suid && fperms 4755 /usr/bin/${PN}
insinto /usr/share/X11/app-defaults
newins Xdefaults XOsview
}
pkg_postinst() {
xdg_desktop_database_update
if ! use suid ; then
ewarn "If you want to use serial meters ${PN} needs to be executed as root."
ewarn "Please see ${EPREFIX}/usr/share/doc/${PF}/README.linux for details."
fi
}
pkg_postrm() {
xdg_desktop_database_update
}