From 4fc30e4e13ecfbe29fbef3b5caf96218eab30b68 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Fri, 12 Jan 2024 19:10:40 +0000 Subject: gentoo auto-resync : 12:01:2024 - 19:10:40 --- app-text/psmark/Manifest | 5 ++++ app-text/psmark/files/psmark-2.1-Makefile-QA.patch | 19 +++++++++++++ app-text/psmark/files/psmark-2.1-string.patch | 15 ++++++++++ app-text/psmark/metadata.xml | 10 +++++++ app-text/psmark/psmark-2.1.ebuild | 33 ++++++++++++++++++++++ 5 files changed, 82 insertions(+) create mode 100644 app-text/psmark/Manifest create mode 100644 app-text/psmark/files/psmark-2.1-Makefile-QA.patch create mode 100644 app-text/psmark/files/psmark-2.1-string.patch create mode 100644 app-text/psmark/metadata.xml create mode 100644 app-text/psmark/psmark-2.1.ebuild (limited to 'app-text/psmark') diff --git a/app-text/psmark/Manifest b/app-text/psmark/Manifest new file mode 100644 index 000000000000..23886abf4352 --- /dev/null +++ b/app-text/psmark/Manifest @@ -0,0 +1,5 @@ +AUX psmark-2.1-Makefile-QA.patch 322 BLAKE2B 0fd182908143618385d2ab655db6fa28d1b9ec7eccbf977f8d6fb7f90191059ac92fef650c5d3f29221eae624e630f11aa7001a832a625304ed48f56b6d72641 SHA512 f9b3371b84446c0f5caf9de2e14fc2053b7c5a8d3dcaee1e15215483ca6abd00d8e4006098df4f259c9ba34c211d628ad07daaabc6059a2df129dfdfc344349a +AUX psmark-2.1-string.patch 668 BLAKE2B 588a34e84b99c90a0f3cb87ac89d331302ae02a7575373dbc2ef017e8f3f1a9f0f8486c5bdf136e5d05b93b005eb7b3b8d079fe6b70f21858ce50643a5560dec SHA512 068015779fc1772cdd2eafc5f3612af1b12da44c65b0aad08afe8a44b7c40b8587699d094b25469cfe152ed244c24f7b5f1549f4b465106127dffcc2b8184a48 +DIST psmark-v2.1.tar.gz 16296 BLAKE2B e4f77b7a3abd86f8214e2f00d85eaef4a7b897b3fad970cf86565ad32ab42e25ab7674e9a1a7116a4cce93f46a99a5d17a21c14fb4ff3b2a860e1e2627b268a7 SHA512 0a765dda878478e767ae02ac0838a9c36a110000b35d557b1b3d17d22c518f42249cd4eba856b476ba8042e026cb49f736077d3bf236f2a9a4f3df4ff4357fef +EBUILD psmark-2.1.ebuild 649 BLAKE2B 47584ba62c8004782aa9744b7dfd5659d53dfdca6f00eb6a761be86e46220ddb716f6c96607c54f637dbe8a349aa2f7f6683870a58dc95ab163435005058f9de SHA512 5423c427ef264e5f64085cecd748229e942661d94da86a1c9402f3791f617bb56207e184a6e929f1edc5ed561f5003eafbf5a98c56f1f1549148b2b40498b8c9 +MISC metadata.xml 395 BLAKE2B 02810b098defb0a4addc295a119e95be9f26b7b81c5b0bacf1a6030a449859ca8c1c9d6b7f2c6c933db71c39661ca0aae204695c7224d3a306359178033c3c95 SHA512 f9e30e2a624e6c91d60578b451fc5c0ef1ef25d6b1f44c3fb1ef370b7d5e2b9b06a0fc738c82c5f9bc41e78f740080eed1ef3d3398d6121ad4a697a58016be97 diff --git a/app-text/psmark/files/psmark-2.1-Makefile-QA.patch b/app-text/psmark/files/psmark-2.1-Makefile-QA.patch new file mode 100644 index 000000000000..145fe3a32e8e --- /dev/null +++ b/app-text/psmark/files/psmark-2.1-Makefile-QA.patch @@ -0,0 +1,19 @@ +--- a/Makefile ++++ b/Makefile +@@ -3,14 +3,13 @@ + all: + make clean + make psmark + + psmark: +- gcc $(CFLAGS) -o psmark psmark.c +- strip psmark ++ $(CC) $(CFLAGS) $(LDFLAGS) -o psmark psmark.c + + clean: + rm -f *.o psmark + + install: +- install -s psmark /usr/bin/ ++ install psmark /usr/bin/ + install psmark.1 /usr/man/man1/ diff --git a/app-text/psmark/files/psmark-2.1-string.patch b/app-text/psmark/files/psmark-2.1-string.patch new file mode 100644 index 000000000000..1d1fb3dfbb57 --- /dev/null +++ b/app-text/psmark/files/psmark-2.1-string.patch @@ -0,0 +1,15 @@ +--- a/psmark.c ++++ b/psmark.c +@@ -97,9 +97,9 @@ + progname); + fprintf(stderr,"example:\n %s -i test.ps -o output.ps -b 0.4 -s 15 \"vertical label\"" + "\n\n",progname); +- fprintf(stderr,"Notes: The offsets are measured from the bottom left hand corner, but +- they are not in sync with the page corner: some fiddling is required +- to get text to appear right in the corner.\n" ++ fprintf(stderr,"Notes: The offsets are measured from the bottom left hand corner, but\n" ++ "they are not in sync with the page corner: some fiddling is required\n" ++ "to get text to appear right in the corner.\n" + ); + + exit(error ? EXIT_FAILURE : EXIT_SUCCESS); diff --git a/app-text/psmark/metadata.xml b/app-text/psmark/metadata.xml new file mode 100644 index 000000000000..ecbed5b5dce7 --- /dev/null +++ b/app-text/psmark/metadata.xml @@ -0,0 +1,10 @@ + + + + + + Command-line Postscript watermark tool; simple, but useful for things + like adding a watermark to outgoing or incoming faxes (eg, use with the + sendfax command from net-misc/hylafax). + + diff --git a/app-text/psmark/psmark-2.1.ebuild b/app-text/psmark/psmark-2.1.ebuild new file mode 100644 index 000000000000..8d8d4e7fd704 --- /dev/null +++ b/app-text/psmark/psmark-2.1.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit toolchain-funcs + +MY_PN=${PN}-v +MY_P=${MY_PN}${PV} + +DESCRIPTION="Prints watermark-like text on any PostScript document" +HOMEPAGE="https://wiki.gentoo.org/wiki/No_homepage" +SRC_URI="http://www.antitachyon.com/download/${MY_P}.tar.gz" +S="${WORKDIR}"/${PN} + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~riscv ~x86" + +PATCHES=( + "${FILESDIR}"/${P}-string.patch + "${FILESDIR}"/${P}-Makefile-QA.patch +) + +src_compile() { + emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" +} + +src_install() { + dobin psmark + doman psmark.1 + dodoc README CHANGELOG +} -- cgit v1.2.3