mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
net-print/splix: drop old
Package-Manager: Portage-2.3.24, Repoman-2.3.6
This commit is contained in:
@@ -1,3 +1,2 @@
|
||||
DIST samsung-cms-20120312.tar.xz 3354884 BLAKE2B ebff80c7e4ddebb87c46b0d282c64037d7584170ed224931e5b17fc93a76b162bd1b33ed00c59371464dcaef345cf6c33d428aa42c7b67c82958a23384ed0bac SHA512 448f111493540dc93b88d59fa50857bdca2aa9eb772e53c1d227402235d878ad599683d74bc4d815b4789527b5e7ebe207bb0c8fa9194eaf61ca95b78a1444db
|
||||
DIST splix-2.0.0_p20111206.tar.bz2 122216 BLAKE2B d7f2986b57a3ea3397112c7a9d001f8e38be97cf2dcfdee971f3eb3aa73c91fd82e7cdbc502369519a43ec3a5d68f7b705553b42f5a9e625f07bef187791cbf2 SHA512 370840b646acb7d62814a7b8a123fb4e7b51360f83ea6c2ec4b7b1ecc15a42d7538bfa9bdb3bcc52c6f1e2cd46a0f72467ab8a8f9753341b823ac9986820d3b5
|
||||
DIST splix-2.0.0_p20130826.tar.bz2 127278 BLAKE2B 6a8eb6b15e5208dd4173d50bf2b41d0e0f136057fbb46f36fb68ab1302c0c8a6b735311bc03f15e7afce0de802b3fa62df04ad5cd016532216b67a74e39835c3 SHA512 dda07e24b4321e6c1e3d4fbdd03fcc2b5931465db36ed9d8676a62313c4c64b7cbd58bf41996ddd1ab02086438f225439db0506aca7f0269f6c84e80eff72cb0
|
||||
|
||||
@@ -1,71 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=4
|
||||
inherit eutils toolchain-funcs
|
||||
|
||||
DESCRIPTION="A set of CUPS printer drivers for SPL (Samsung Printer Language) printers"
|
||||
HOMEPAGE="http://splix.sourceforge.net/"
|
||||
SRC_URI="https://dev.gentoo.org/~voyageur/distfiles/${P}.tar.bz2
|
||||
http://dev.gentooexperimental.org/~scarabeus/samsung-cms-20120312.tar.xz"
|
||||
|
||||
# If you can't find your printer cms open the new bug if you recheck the
|
||||
# cms home and it is contained there. Otherwise bummer.
|
||||
# The cms can be found here:
|
||||
# http://www.bchemnet.com/suldr/smfpv3.html
|
||||
# It is stored int he unifieddriver tarball and repacked.
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 x86"
|
||||
IUSE="+jbig"
|
||||
|
||||
DEPEND=">=app-text/ghostscript-gpl-9.02
|
||||
>=net-print/cups-1.4.0
|
||||
jbig? ( media-libs/jbigkit )"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
S=${WORKDIR}/${PN}
|
||||
|
||||
src_prepare() {
|
||||
# Honor LDFLAGS
|
||||
sed -e "/[a-z]_LDFLAGS/s/:=.*/:= $\{LDFLAGS\}/" -i module.mk \
|
||||
|| die "module.mk sed failed"
|
||||
# Correct link comand, do not strip on install
|
||||
sed -e "s/g++/$\{LINKER\}/" -e "/install/s/-s //" -i rules.mk \
|
||||
|| die "rules.mk sed failed"
|
||||
}
|
||||
|
||||
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 "ppd gzip failed"
|
||||
|
||||
# it is expected to be at:
|
||||
# /usr/share/cups/profiles/{samsung,xerox,dell}
|
||||
# instead it is only at:
|
||||
# /usr/share/cups/profiles/samsung
|
||||
emake DESTDIR="${D}" CMSDIR="${WORKDIR}"/cms MANUFACTURER=samsung installcms
|
||||
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)'"
|
||||
}
|
||||
Reference in New Issue
Block a user