commit d7c63af08934df1491d86058e54b798171c5d361
parent fe347110bdc5df69dcb11500b8dd6bbdaed37302
Author: Plat <plat@stellar-nexus.ru>
Date: Thu, 22 Aug 2024 17:18:28 +0000
Added media-gfx/xscreenshot
Diffstat:
5 files changed, 75 insertions(+), 1 deletion(-)
diff --git a/media-gfx/xscreenshot/Manifest b/media-gfx/xscreenshot/Manifest
@@ -0,0 +1 @@
+DIST xscreenshot-1.0.tar.gz 2882 BLAKE2B fb2de72d5e64be36e99a9a7c011abb1c007c4522d5edc2eebcade375eb989f5a3dde10619747b9aa6643387b1d4a3fc129cce60c94177aedc95f70e26605c7cb SHA512 74b2d6e9a4fe329b6f54d982642a06ab885450fb3cfc5c35eb6e3dc4cd2d9597229ffa705c9167eeff46bc7026138ac2ca690451813552fb6badd443ccd62ac1
diff --git a/media-gfx/xscreenshot/metadata.xml b/media-gfx/xscreenshot/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="person">
+<email>plat@stellar-nexus.ru</email>
+<name>Plat</name>
+</maintainer>
+<longdescription>
+xscreenshot is a simple X11 screenshot utility. It writes farbfeld image data to stdout.
+</longdescription>
+</pkgmetadata>
diff --git a/media-gfx/xscreenshot/xscreenshot-1.0.ebuild b/media-gfx/xscreenshot/xscreenshot-1.0.ebuild
@@ -0,0 +1,31 @@
+# Copyright 2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit toolchain-funcs flag-o-matic
+
+DESCRIPTION="screen capture tool"
+HOMEPAGE="https://git.codemadness.org/xscreenshot/file/README.html"
+
+if [[ ${PV} == 9999 ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="git://git.codemadness.org/xscreenshot"
+else
+ SRC_URI="https://gentoo.stellar-nexus.ru/${PN}/${P}.tar.gz"
+ KEYWORDS="~amd64"
+fi
+
+LICENSE="MIT"
+SLOT="0"
+
+DEPEND="x11-libs/libX11"
+RDEPEND="${DEPEND}"
+
+src_compile() {
+ filter-flags -Wl,--as-needed
+ emake CC="$(tc-getCC)"
+}
+src_install() {
+ emake DESTDIR="${D}" PREFIX="${EPREFIX}" MANPREFIX="/usr/share/man" install
+}
diff --git a/media-gfx/xscreenshot/xscreenshot-9999.ebuild b/media-gfx/xscreenshot/xscreenshot-9999.ebuild
@@ -0,0 +1,31 @@
+# Copyright 2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit toolchain-funcs flag-o-matic
+
+DESCRIPTION="screen capture tool"
+HOMEPAGE="https://git.codemadness.org/xscreenshot/file/README.html"
+
+if [[ ${PV} == 9999 ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="git://git.codemadness.org/xscreenshot"
+else
+ SRC_URI="https://gentoo.stellar-nexus.ru/${PN}/${P}.tar.gz"
+ KEYWORDS="~amd64"
+fi
+
+LICENSE="MIT"
+SLOT="0"
+
+DEPEND="x11-libs/libX11"
+RDEPEND="${DEPEND}"
+
+src_compile() {
+ filter-flags -Wl,--as-needed
+ emake CC="$(tc-getCC)"
+}
+src_install() {
+ emake DESTDIR="${D}" PREFIX="${EPREFIX}" MANPREFIX="/usr/share/man" install
+}
diff --git a/sys-apps/sinit-scripts/sinit-scripts-1.0-r1.ebuild b/sys-apps/sinit-scripts/sinit-scripts-1.0-r1.ebuild
@@ -61,5 +61,5 @@ pkg_postinst() {
elog " -< Succeeded. Now you can reboot >- "
echo
[ -f ${ROOT}/etc/hostname ] ||
- ewarn "File ${ROOT}/etc/hostname is missing. Copy /etc/localhost or create one"
+ ewarn "File ${ROOT}/etc/hostname is missing. Copy ${ROOT}/etc/localhost or create one"
}