summaryrefslogtreecommitdiff
path: root/app-doc/psmark
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
commit8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch)
tree7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /app-doc/psmark
parent30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff)
gentoo resync : 14.07.2018
Diffstat (limited to 'app-doc/psmark')
-rw-r--r--app-doc/psmark/Manifest5
-rw-r--r--app-doc/psmark/files/psmark-2.1-Makefile-QA.patch19
-rw-r--r--app-doc/psmark/files/psmark-2.1-string.patch15
-rw-r--r--app-doc/psmark/metadata.xml9
-rw-r--r--app-doc/psmark/psmark-2.1.ebuild34
5 files changed, 82 insertions, 0 deletions
diff --git a/app-doc/psmark/Manifest b/app-doc/psmark/Manifest
new file mode 100644
index 000000000000..ac7fcd8ec91c
--- /dev/null
+++ b/app-doc/psmark/Manifest
@@ -0,0 +1,5 @@
+AUX psmark-2.1-Makefile-QA.patch 399 BLAKE2B a54c2f5409f56f1ce093ec367cdde38dba21f6a5cd77b36b7198eec3a372ad7b32c3d5ea725284d4bf432f44a8dd3bc33d2605ace7cfd5a0bae1f30aa29dc1ea SHA512 efdcccc2e206cc55617e5a895bc7f2e66f0d5dac5dd459c372544658682bec5419c36628109f2d877fbca7f411e7e40af111fdfc96ec37530a5025c4eb9e9ff3
+AUX psmark-2.1-string.patch 741 BLAKE2B 17fa4cf80b55f99c3b23ed8725f70c458665467ff374ae41c8d54651dfd68b5c48105d303d8469cd2d08b22c10ef294525b9e0e931ba7fd5f808b0bf0f2bf193 SHA512 bb10c379ef84d13a0c0f6b84ac19132f8f0352582c0441f3f626c94065dc79a68b1796222f9fe13f873b7638a39ea942d80385658ac461df023707ae2bfee158
+DIST psmark-v2.1.tar.gz 16296 BLAKE2B e4f77b7a3abd86f8214e2f00d85eaef4a7b897b3fad970cf86565ad32ab42e25ab7674e9a1a7116a4cce93f46a99a5d17a21c14fb4ff3b2a860e1e2627b268a7 SHA512 0a765dda878478e767ae02ac0838a9c36a110000b35d557b1b3d17d22c518f42249cd4eba856b476ba8042e026cb49f736077d3bf236f2a9a4f3df4ff4357fef
+EBUILD psmark-2.1.ebuild 673 BLAKE2B 77c6556ff919b7e933ca89950f66523824ebcc3a44ed869ab2a2d7cec53d4cf5b5a9abed813c01473dabe491cda4fe3d7be7d71db401f827bedc5a8c7cbe6312 SHA512 40b25dc411accf7831a528cb98d0ae68610872a1763fd82bc0112f6b79ec5a0646f66d7ff0a2bf90edb303dd819443ed8f3bee1980fe48246e29f89db85ea463
+MISC metadata.xml 386 BLAKE2B a20636ecb95a160502aca6229c834a3d2d72416c6cc6c9b45262670024137f1884c23b9cdc68537b189bed2b35955de35906bf116f767ce4974cc1385548e616 SHA512 370998924fccef0a77f7be68c6f582a0ffc34196555189f0d5e0400817d2983abbb755aaf12fa90411e784082cd395dfbb6c29155675bc6f64b351771f715193
diff --git a/app-doc/psmark/files/psmark-2.1-Makefile-QA.patch b/app-doc/psmark/files/psmark-2.1-Makefile-QA.patch
new file mode 100644
index 000000000000..30a81498bf6d
--- /dev/null
+++ b/app-doc/psmark/files/psmark-2.1-Makefile-QA.patch
@@ -0,0 +1,19 @@
+--- Makefile.original 2009-10-04 19:06:09.000000000 -0600
++++ Makefile 2009-10-04 19:08:25.000000000 -0600
+@@ -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-doc/psmark/files/psmark-2.1-string.patch b/app-doc/psmark/files/psmark-2.1-string.patch
new file mode 100644
index 000000000000..f520f8b5e6de
--- /dev/null
+++ b/app-doc/psmark/files/psmark-2.1-string.patch
@@ -0,0 +1,15 @@
+--- psmark.c.orig 2006-06-06 23:43:19.000000000 -0700
++++ psmark.c 2006-06-06 23:44:27.000000000 -0700
+@@ -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-doc/psmark/metadata.xml b/app-doc/psmark/metadata.xml
new file mode 100644
index 000000000000..3eac7901d842
--- /dev/null
+++ b/app-doc/psmark/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<!-- maintainer-needed -->
+<longdescription>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).
+</longdescription>
+</pkgmetadata>
diff --git a/app-doc/psmark/psmark-2.1.ebuild b/app-doc/psmark/psmark-2.1.ebuild
new file mode 100644
index 000000000000..e11fae44bd4d
--- /dev/null
+++ b/app-doc/psmark/psmark-2.1.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils toolchain-funcs
+
+MY_PN=${PN}-v
+MY_P=${MY_PN}${PV}
+S=${WORKDIR}/${PN}
+
+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"
+
+IUSE=""
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+src_prepare() {
+ epatch "${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
+}