Changeset - b2b992bbabf0
[Not reviewed]
default
0 2 0
Nathan Brink (binki) - 14 years ago 2010-12-06 21:47:00
ohnobinki@ohnopublishing.net
net-print/samsung-unified-linux-driver: Upgrade to use bin_replace_string-0.2's CLI.

(Portage version: 2.2.0_alpha2-r1/hg/Linux x86_64, signed Manifest commit with key 6BA81050)
2 files changed with 16 insertions and 20 deletions:
0 comments (0 inline, 0 general)
net-print/samsung-unified-linux-driver/Manifest
Show inline comments
 
-----BEGIN PGP SIGNED MESSAGE-----
 
Hash: SHA256
 

	
 
DIST samsung-unified-linux-driver-1.01.tar.gz 34024719 RMD160 3870137e33f453a02281de113066a73ae3dcdd86 SHA1 d6a23b8598e0ef699316634d498d8038dd7afabc SHA256 328fdeb852697e7648bbcbe1f0bacda647ee76d0273359cc3d69b5c5ba122869
 
EBUILD samsung-unified-linux-driver-1.01.ebuild 3237 RMD160 09cc1d088e5f89e7f40997a3fdaaf24546d629eb SHA1 0e8dcdc1645758b008faf77f98206de5fb4aab7e SHA256 f7c66cc881e8502f17e6da0a10b9cdc92b932f907ed1c3c39a1284414ee86199
 
EBUILD samsung-unified-linux-driver-1.01.ebuild 3139 RMD160 108329b4f5bb2205e621b90403e029118ba2c878 SHA1 5d65d8dfc061652d29a0d2aed410c31196ea000f SHA256 60c395fdb0a01e29b939eb24eaf39f2b0f1120b549afe2f604653bc1e7a82150
 
MISC metadata.xml 214 RMD160 bb0d8258795c3f73de94e0a8bc00e682d501385e SHA1 3deb0e98b60dbe29b548ad26852379fbdd07bb23 SHA256 2fff4b9c64633c18ee5ee3f2ff48f30d8310d56e414f09c0a1eacf4396dc1535
 
-----BEGIN PGP SIGNATURE-----
 
Version: GnuPG v2.0.14 (GNU/Linux)
 

	
 
iQIcBAEBCAAGBQJM/Z7XAAoJEHQ6UuhrqBBQ4xIQAKSUyE0EGUOtcUa6d9BrpX/H
 
iD6MRh7UYxMFaf2hqNOIVBDXQsYuMnnsM5PYVuSH4en01/0kHF+YWt1k5osqAwPY
 
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yh+2Hvmqwn0zNiQCkO
 
53yt6Bk8DdHzi5YiWlIZIMZtpF5Ed55iZqzbYFlRPNtCbanvu2mt4zgFPBSk75A6
 
efbcjefUjz6RnCP6wChFwsNBKUw8AicfYejHBADHa6IQwJ6yOUx9Ew7Y0ibv9kFq
 
WJdvZLqhNYATNQKv/enaW76zt9qxw9dkiX2L/Fzb4mjkfURGqfbwusrIZP0exj46
 
GcB289Bi63us4Yf+Wx0p+3+u+jUYkOGnzlCZ5W92YgLnzRjrudgTiBD7Zkkq02Ds
 
I9nIeHhXQIaFdlAJ130O
 
=wumN
 
-----END PGP SIGNATURE-----
net-print/samsung-unified-linux-driver/samsung-unified-linux-driver-1.01.ebuild
Show inline comments
 
# Copyright 1999-2010 Gentoo Foundation
 
# Distributed under the terms of the GNU General Public License v2
 
# $Header: /var/cvsroot/gentoo-x86/dev-libs/apr-util/apr-util-1.3.9.ebuild,v 1.12 2009/11/04 12:12:05 arfrever Exp $
 

	
 
EAPI="2"
 

	
 
inherit multilib
 

	
 
DESCRIPTION="Samsung's proprietary printer driver binaries known as UnifiedLinuxDriver"
 
HOMEPAGE="http:///www.samsung.com/us/support/downloads/CLX-3175FW/XA"
 
SRC_URI="http://org.downloadcenter.samsung.com/downloadfile/ContentsFile.aspx?VPath=DR/200911/20091118142757906/UnifiedLinuxDriver_1.01.tar.gz -> ${P}.tar.gz"
 

	
 
LICENSE="SAMSUNG-ELECTRONICS-software"
 
SLOT="0"
 
# x86 should be supported, but we have to do -* because only x86/amd64
 
# is supported.
 
KEYWORDS="~amd64 -*"
 
IUSE="doc test"
 

	
 
S=${WORKDIR}/cdroot/Linux
 

	
 
DEPEND="=dev-util/bin_replace_string-0.1"
 
DEPEND="dev-util/bin_replace_string"
 
# We need libstdc++.so.5
 
RDEPEND="net-print/cups
 
	sys-libs/libstdc++-v3"
 

	
 
QA_PRESTRIPPED='/usr/libexec/cups/filter/rastertosamsung.* /usr/lib[0-9]*/libscmssc.so'
 
QA_SONAME='/usr/lib[0-9]*/libscmssc.so'
 

	
 
pkg_setup() {
 
	local abi="${ABI}"
 

	
 
	# does non-portage-multilib take significance in ${ABI}?
 
	[ -z "${abi}" ] && abi="${ARCH}"
 

	
 
	# Samsung's choice for how to denote ABIs and libdir within its
 
	# tarball.
 
	case ${abi} in
 
		x86)
 
			SABI=i386
 
			SLIBDIR=lib
 
			;;
 
		amd64)
 
			SABI=x86_64
 
			SLIBDIR=lib64
 
			;;
 
		*)
 
			die "Unable to understand the following value of \${ABI} or \${ARCH}: \`\`${abi}''"
 
			;;
 
	esac
 
}
 

	
 
src_prepare() {
 
	# The rasterto* cups filters will dlopen() libscmssc.so. However,
 
	# they try to open it at /usr/lib/cups/filter/libscmssc.so,
 
	# /usr/lib64/cups/filter/libscmssc.so, and finally
 
	# ../src/libscmssc.so. We thus hack the first entry to not use an
 
	# absolute path and just throw this binary into the library search
 
	# path. If these filters fail to dlopen() libscmssc.so, the
 
	# printer will print two copies of each page on each page with
 
	# white horizonal bands.
 
	for filter in ${SABI}/at_root/usr/${SLIBDIR}/cups/filter/rasterto*; do
 
		mv -v ${filter}{,.orig} || die
 
		bin_replace_string /usr/lib/cups/filter/libscmssc.so libscmssc.so \
 
			< ${filter}.orig \
 
			> ${filter} || die
 
		rm -vf ${filter}.orig || die
 
		bin_replace_string /usr/lib/cups/filter/libscmssc.so libscmssc.so ${filter} || die
 
	done
 
}
 

	
 
src_install() {
 
	# Currently, we try to install the minimum necessary for
 
	# integrating into CUPS. The UI may come later with a qt4
 
	# useflag... but having a working driver is much more useful than
 
	# a GUI.
 

	
 
	insinto /usr/share
 
	doins -r noarch/at_opt/share/images || die
 

	
 
	insinto /usr/share/ppd
 
	doins noarch/at_opt/share/ppd/*.ppd || die
 

	
 
	# rastertosamsungsplc looks for the *.cts file here of its own
 
	# arbitrary choosing.
 
	insinto /usr/share/cups/model/samsung
 
	doins -r noarch/at_opt/share/ppd/cms || die
 

	
 
	# I think that sane support needs the smfpd to be installed and
 
	# running...(?)
 
	insinto /etc/sane.d
 
	doins -r noarch/at_root/etc/sane.d/* || die
0 comments (0 inline, 0 general)