parent
d2e3edcd9f
commit
dd8e161b5a
@ -0,0 +1,2 @@
|
||||
DIST bin_replace_string-0.2.tar.bz2 69287 RMD160 2fe842264a0557dc623d2c00d89516174f1f5d59 SHA1 d7b222bef57218a9a93c96132728a0e9c7e3fce7 SHA256 4ab092edc3e30dec85b01747b67cdcabb1b535bdbe74732879d9e9cb7b6bd7be
|
||||
EBUILD bin_replace_string-0.2.ebuild 546 RMD160 412a2b9a65219ddf3c66a80be8d278b31b68fc3a SHA1 9055792c068f910f39fe360e7909b460b0e9784c SHA256 27103d15970945b455774f6dca8a893418f1f616032126ced3cad42d0426ab3b
|
@ -0,0 +1,25 @@
|
||||
# Copyright 1999-2010 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: $
|
||||
|
||||
EAPI=2
|
||||
|
||||
inherit base
|
||||
|
||||
DESCRIPTION="A tool to edit C strings in compiled binaries"
|
||||
HOMEPAGE="http://ohnopub.net/~ohnobinki/bin_replace_string"
|
||||
SRC_URI="ftp://ohnopub.net/mirror/bin_replace_string-0.2.tar.bz2"
|
||||
LICENSE="AGPL-3"
|
||||
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="doc"
|
||||
|
||||
RDEPEND="|| ( >=dev-libs/libelf-0.8.13
|
||||
dev-libs/elfutils )"
|
||||
DEPEND="doc? ( app-text/txt2man )
|
||||
${RDEPEND}"
|
||||
|
||||
src_configure() {
|
||||
econf $(use_enable doc)
|
||||
}
|
@ -0,0 +1,2 @@
|
||||
DIST samsung-unified-linux-driver-1.01.tar.gz 34024719 RMD160 3870137e33f453a02281de113066a73ae3dcdd86 SHA1 d6a23b8598e0ef699316634d498d8038dd7afabc SHA256 328fdeb852697e7648bbcbe1f0bacda647ee76d0273359cc3d69b5c5ba122869
|
||||
EBUILD samsung-unified-linux-driver-1.01.ebuild 3139 RMD160 108329b4f5bb2205e621b90403e029118ba2c878 SHA1 5d65d8dfc061652d29a0d2aed410c31196ea000f SHA256 60c395fdb0a01e29b939eb24eaf39f2b0f1120b549afe2f604653bc1e7a82150
|
@ -0,0 +1,99 @@
|
||||
# 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"
|
||||
# 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
|
||||
}
|
Loading…
Reference in new issue