summaryrefslogtreecommitdiff
path: root/net-print/splix
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-06-15 00:09:17 +0100
committerV3n3RiX <venerix@koprulu.sector>2024-06-15 00:09:17 +0100
commit6a7029e0f7370d4d5dfe9e31cc2719a870482392 (patch)
tree28c6c747114eaedfd2db81f86ac2ff3d7d13111e /net-print/splix
parent5e41a38157bb40e8513e8e34426e85faba672fe7 (diff)
gentoo auto-resync : 15:06:2024 - 00:09:17
Diffstat (limited to 'net-print/splix')
-rw-r--r--net-print/splix/Manifest4
-rw-r--r--net-print/splix/metadata.xml1
-rw-r--r--net-print/splix/splix-2.0.1.ebuild63
3 files changed, 67 insertions, 1 deletions
diff --git a/net-print/splix/Manifest b/net-print/splix/Manifest
index 55c5ea34762c..c529c9f086b1 100644
--- a/net-print/splix/Manifest
+++ b/net-print/splix/Manifest
@@ -1,5 +1,7 @@
AUX splix-2.0.0_p20130826-algo0x11_le.patch 1231 BLAKE2B 8fe043f615bae54bf24635817696d2c38bf5250c77a4f52061b3cd7a82cc6c46a705ceed9ae4d46e47d5e8af64f8932a83acc718dabc614f6b03156274a34119 SHA512 9c96805deedc819cf4e663de63d35c4016b36a04ab56f5d3cee503e64dcd7a25d6ede2cd2ae3facf51d4e673476295a551e5659e9b91de6c30d1c21dc294be4a
DIST samsung-cms-20120312.tar.xz 3354884 BLAKE2B ebff80c7e4ddebb87c46b0d282c64037d7584170ed224931e5b17fc93a76b162bd1b33ed00c59371464dcaef345cf6c33d428aa42c7b67c82958a23384ed0bac SHA512 448f111493540dc93b88d59fa50857bdca2aa9eb772e53c1d227402235d878ad599683d74bc4d815b4789527b5e7ebe207bb0c8fa9194eaf61ca95b78a1444db
DIST splix-2.0.0_p20130826.tar.bz2 127278 BLAKE2B 6a8eb6b15e5208dd4173d50bf2b41d0e0f136057fbb46f36fb68ab1302c0c8a6b735311bc03f15e7afce0de802b3fa62df04ad5cd016532216b67a74e39835c3 SHA512 dda07e24b4321e6c1e3d4fbdd03fcc2b5931465db36ed9d8676a62313c4c64b7cbd58bf41996ddd1ab02086438f225439db0506aca7f0269f6c84e80eff72cb0
+DIST splix-2.0.1.tar.xz 93032 BLAKE2B 82de9e591bda902cee9423e3f626a5b8b13b8ec0e2fd842142b10549d87094316d59c57a005615bf37601ecedf9d5defc59beb5312b4e1269ff1db207c3722bc SHA512 45708d65576e87c9f0c9cc7d4919ea19b1418bb932854b14a80bbcf890e28f7ee11ac64a5b9ccca1b8f4aec803822392ab738329d3e9894ad60b5393bffeef74
EBUILD splix-2.0.0_p20130826-r1.ebuild 2186 BLAKE2B 6c5c313dc508ae46ace942d41f7421cc4ec02f21d9f79b7652110d55a638629495e6370a7853a736910dd0600a82e9d08c11f939c45d933fde4f545b0b95db60 SHA512 88e08aefbcc51ffe3ad4d2dcac7afc0fc3a3e3303cadc4617033c5914ebf70ae663604869647e89879b748ba074c252c0f7a3eb94f7b122debd66bac9f092380
-MISC metadata.xml 448 BLAKE2B 776388702cca7e4728d4fa8a4b3881ef8e3fb9374fc7681600e92a9ca608ee6756ca905d10eff1c213fd4d22daf733ccdc4ec6f6b799febdf6fa9930836dddab SHA512 015bc78f9020f7c59030a536238fb0ef46952c2d62c216555f1f1713174451df9e43ee6b4f2deaaba5c4a8cd1fa8ffe5f8cf2f58bb7e0e0a8418a587e6bb54aa
+EBUILD splix-2.0.1.ebuild 2148 BLAKE2B 34dfa422a1ef8be080c653ad002cf69f3983cb96558ecabdc71eb5184f7853486cef820eb7c615dc3ee6e0f5e08a08c3ffbea5824e9b603cdadd77defba47014 SHA512 b5bd0a3de9ee8c15b5f0b13d3261f7f58d79930f7eb7ba835b5bcb21cfe786c88e40409ae54d908e973d66a472e4af1b7efe3d4122f79a04f6b415c77af0dfc5
+MISC metadata.xml 506 BLAKE2B 0f4943153d3cc32fd8f9d1937a842243a00172ca5d03b46edb042328e175645f05cfe9865926c60194d0dfe8376b10115473beb0c628add0d0bd3f480ea1df88 SHA512 fa9986a74a749d9bca426a5967844eb490a58719881ff8b02c37ac13c5de2519eb5c1511bcddb75e81eea0a88c7d88df8b5652f6254b4d474e973e9976889dd9
diff --git a/net-print/splix/metadata.xml b/net-print/splix/metadata.xml
index 2ea580a8d8e2..3ddb1879ca37 100644
--- a/net-print/splix/metadata.xml
+++ b/net-print/splix/metadata.xml
@@ -11,5 +11,6 @@
</maintainer>
<upstream>
<remote-id type="sourceforge">splix</remote-id>
+ <remote-id type="github">OpenPrinting/splix</remote-id>
</upstream>
</pkgmetadata>
diff --git a/net-print/splix/splix-2.0.1.ebuild b/net-print/splix/splix-2.0.1.ebuild
new file mode 100644
index 000000000000..365ce4c1ab21
--- /dev/null
+++ b/net-print/splix/splix-2.0.1.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+inherit toolchain-funcs
+
+DESCRIPTION="A set of CUPS printer drivers for SPL (Samsung Printer Language) printers"
+HOMEPAGE="https://splix.sourceforge.net/"
+SRC_URI="https://github.com/OpenPrinting/splix/releases/download/${PV}/${P}.tar.xz
+ https://dev.gentoo.org/~voyageur/distfiles/samsung-cms-20120312.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64 ~x86"
+IUSE="+jbig"
+
+DEPEND=">=app-text/ghostscript-gpl-9.02
+ >=net-print/cups-1.4.0
+ jbig? ( media-libs/jbigkit )"
+RDEPEND="${DEPEND}"
+
+PATCHES=( "${FILESDIR}"/${PN}-2.0.0_p20130826-algo0x11_le.patch )
+
+src_prepare() {
+ default
+
+ # Move to correct place
+ mv *.ppd ppd/
+ # Honor LDFLAGS
+ sed -e "/[a-z]_LDFLAGS/s/:=.*/:= $\{LDFLAGS\}/" -i module.mk \
+ || die
+}
+
+src_compile() {
+ local options="MODE=optimized"
+ use jbig || options="${options} DISABLE_JBIG=1"
+ emake ${options} PSTORASTER=gstoraster CXX="$(tc-getCXX)" \
+ OPTIM_CFLAGS="${CFLAGS}" OPTIM_CXXFLAGS="${CXXFLAGS}"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+ gzip "${ED}"/$(cups-config --datadir)/model/*/*.ppd || die
+
+ emake DESTDIR="${D}" CMSDIR="${WORKDIR}"/cms MANUFACTURER=samsung installcms
+ # Add symlinks for xerox and dell models (installed in samsung)
+ dosym $(cups-config --datadir)/profiles/samsung $(cups-config --datadir)/profiles/xerox
+ dosym $(cups-config --datadir)/profiles/samsung $(cups-config --datadir)/profiles/dell
+}
+
+pkg_postinst() {
+ ewarn "You *MUST* make sure that the PPD files that CUPS is using"
+ ewarn "for actually installed printers are updated if you upgraded"
+ ewarn "from a previous version of splix!"
+ ewarn "Otherwise you will be unable to print (your printer might"
+ ewarn "spit out blank pages etc.)."
+ ewarn "To do that, simply delete the corresponding PPD file in"
+ ewarn "/etc/cups/ppd/, click on 'Modify Printer' belonging to the"
+ ewarn "corresponding printer in the CUPS webinterface (usually"
+ ewarn "reachable via http://localhost:631/) and choose the correct"
+ ewarn "printer make and model, for example:"
+ ewarn "'Samsung' -> 'Samsung ML-1610, 1.0 (en)'"
+}