parent
0249b0fc88
commit
37dd721873
@ -1,2 +0,0 @@
|
||||
DIST samsung-unified-linux-driver-1.01.tar.gz 34024719 SHA256 328fdeb852697e7648bbcbe1f0bacda647ee76d0273359cc3d69b5c5ba122869 SHA512 3ef8a877e6b21f7f7c1ba087b61a9b50b15315e7705181e74a7c9f028918035fa36b9e98e9d9a1e7e0ddcd052d050bc6fdaf6ef2a7d27ca51a6bc5161ec194a2 WHIRLPOOL 5559f8fade9f678dd21546791f1f2684341308ae11ff7c484651fbd310a361597b81482cda8cf836729dbddcb046306b8d7de7d2e80dd5afe2dff00188c82cd2
|
||||
DIST samsung-unified-linux-driver-1.05.tar.gz 32411592 SHA256 9fb37747fda2cf82cd5ae7f459822f1a287fb0dba2729b889501b9e3aaff5903 SHA512 de72ce97bffc09a11078a6efe2f4efc0a19e2987d6ed35ff0b1cbf8dfdce7a734f7b4603752e5a0f90e9d7e7ce418662750aca37fde7af3c3c7a6866a5c3d4e6 WHIRLPOOL 11904ae1e4167beb6e67e52712b779b33add8a5f291c6e6cf48f1626ca167159ec4fb449f74422168340f912baa90bac5036755bee5afcdc35ef0d4ee6ad987a
|
@ -1,99 +0,0 @@
|
||||
# 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 x86"
|
||||
IUSE="doc test"
|
||||
|
||||
S=${WORKDIR}/cdroot/Linux
|
||||
|
||||
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
|
||||
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
|
||||
|
||||
# required only for scanning?
|
||||
#dosbin ${SABI}/at_root/usr/sbin/smfpd || die
|
||||
|
||||
exeinto /usr/libexec/cups/filter
|
||||
doexe ${SABI}/at_root/usr/${SLIBDIR}/cups/filter/rasterto* || die
|
||||
|
||||
# see comment in src_prepare() about libscmssc.so; libscmssc.so
|
||||
# must currently be placed into the system library search path to
|
||||
# be found.
|
||||
dolib ${SABI}/at_root/usr/${SLIBDIR}/cups/filter/libscmssc.so || die
|
||||
}
|
@ -1,105 +0,0 @@
|
||||
# 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=4
|
||||
|
||||
inherit multilib
|
||||
|
||||
DESCRIPTION="Samsung's proprietary printer driver binaries known as UnifiedLinuxDriver"
|
||||
HOMEPAGE="http://www.samsung.com/us/support/downloads/ML-6512MD/XAA"
|
||||
SRC_URI="http://org.downloadcenter.samsung.com/downloadfile/ContentsFile.aspx?VPath=DR/201108/20110830105903229/UnifiedLinuxDriver_${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="SAMSUNG-ELECTRONICS-software"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86 -*"
|
||||
IUSE="+splix"
|
||||
|
||||
S=${WORKDIR}/cdroot/Linux
|
||||
|
||||
DEPEND="dev-util/bin_replace_string"
|
||||
# We need libstdc++.so.5
|
||||
# Splix and we both try to install CMS (color management stuff)
|
||||
# files. The splix useflag allows the two packages to not clobber
|
||||
# eachother.
|
||||
RDEPEND="net-print/cups
|
||||
sys-libs/libstdc++-v3
|
||||
splix? ( net-print/splix )
|
||||
!splix? ( !net-print/splix )"
|
||||
|
||||
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
|
||||
einfo "Replacing dlopen() paths in ${filter}."
|
||||
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
|
||||
|
||||
insinto /usr/share/ppd
|
||||
doins noarch/at_opt/share/ppd/*.ppd
|
||||
|
||||
if ! use splix; then
|
||||
# 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
|
||||
fi
|
||||
|
||||
# I think that sane support needs the smfpd to be installed and
|
||||
# running...(?) [this copy of 1.05 doesn't include sane.d stuff)
|
||||
#insinto /etc/sane.d
|
||||
#doins -r noarch/at_root/etc/sane.d/*
|
||||
|
||||
# required only for scanning?
|
||||
#dosbin ${SABI}/at_root/usr/sbin/smfpd
|
||||
|
||||
exeinto /usr/libexec/cups/filter
|
||||
doexe ${SABI}/at_root/usr/${SLIBDIR}/cups/filter/rasterto*
|
||||
|
||||
# see comment in src_prepare() about libscmssc.so; libscmssc.so
|
||||
# must currently be placed into the system library search path to
|
||||
# be found.
|
||||
dolib ${SABI}/at_root/usr/${SLIBDIR}/cups/filter/libscmssc.so
|
||||
}
|
Loading…
Reference in new issue