You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/net-print/cndrvcups-lb/cndrvcups-lb-2.90.ebuild

117 lines
2.7 KiB

# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-print/cndrvcups-lb/cndrvcups-lb-2.90.ebuild,v 1.3 2015/04/08 21:32:48 pacho Exp $
EAPI=5
inherit eutils autotools multilib versionator
MY_PV="$(delete_all_version_separators)"
SOURCES_NAME="Linux_UFRII_PrinterDriver_V${MY_PV}_uk_EN"
DESCRIPTION="Canon UFR II / LIPSLX Printer Driver for Linux"
HOMEPAGE="http://support-au.canon.com.au/contents/AU/EN/0100270808.html"
SRC_URI="http://pdisp01.c-wss.com/gdl/WWUFORedirectTarget.do?id=MDEwMDAwMjcwODEx&cmp=ABS&lang=EN -> ${SOURCES_NAME}.tar.gz"
LICENSE="Canon-UFR-II"
SLOT="0"
KEYWORDS="-* amd64 x86"
IUSE=""
# Needed because GPL2 stuff miss their sources in tarball
RESTRICT="mirror"
RDEPEND="
gnome-base/libglade
net-print/cups
~net-print/cndrvcups-common-lb-${PV}
x11-libs/gtk+:2
|| (
(
>=dev-libs/libxml2-2.9.1-r4[abi_x86_32(-)]
virtual/jpeg:62[abi_x86_32(-)]
)
amd64? (
app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
)
)
"
DEPEND="${DEPEND}"
S="${WORKDIR}/${SOURCES_NAME}/Sources/${P}"
MAKEOPTS+=" -j1"
# Don't raise a fuss over pre-built binaries
QA_PREBUILT="
/usr/bin/cnpkbidi
/usr/bin/cnpkmoduleufr2
/usr/$(get_abi_LIBDIR x86)/libEnoJPEG.so.1.0.0
/usr/$(get_abi_LIBDIR x86)/libEnoJBIG.so.1.0.0
/usr/$(get_abi_LIBDIR x86)/libufr2filter.so.1.0.0
/usr/$(get_abi_LIBDIR x86)/libcnlbcm.so.1.0
/usr/$(get_abi_LIBDIR x86)/libcaiocnpkbidi.so.1.0.0
/usr/$(get_abi_LIBDIR x86)/libcanonufr2.so.1.0.0
"
QA_SONAME="/usr/$(get_abi_LIBDIR x86)/libcaiocnpkbidi.so.1.0.0"
src_unpack() {
unpack ${A}
cd "${WORKDIR}/${SOURCES_NAME}/Sources/"
unpack ./${P}-1.tar.gz
}
change_dir() {
for i in ppd pstoufr2cpca cngplp cngplp/files cpca ; do
cd "${i}"
"${@}"
cd "${S}"
done
}
src_prepare() {
sed -i -e \
"s:filterdir = \$(libdir)/cups/filter:filterdir = `cups-config --serverbin`/filter:" \
pstoufr2cpca/filter/Makefile.am || die
export "LIBS=-lgmodule-2.0"
change_dir eautoreconf
}
src_configure() {
change_dir econf
}
src_install() {
default
einstalldocs
prune_libtool_files
cd "${S}/data"
insinto /usr/share/caepcm
doins *
cd "${S}/libs"
insinto /usr/share/cnpkbidi
doins cnpkbidi_info*
insinto /usr/share/ufr2filter
doins ThLB*
ABI=x86
dobin cnpkbidi cnpkmoduleufr2
dolib.so libcnlbcm.so.1.0
dosym libcnlbcm.so.1.0 "/usr/$(get_libdir)/libcnlbcm.so.1"
dosym libcnlbcm.so.1.0 "/usr/$(get_libdir)/libcnlbcm.so"
for lib in *.so.?.?.?; do
dolib.so "${lib}"
dosym "${lib}" "/usr/$(get_libdir)/${lib%.?.?}"
dosym "${lib}" "/usr/$(get_libdir)/${lib%.?.?.?}"
done
# c3pldrv dlopens the absolute path /usr/lib/libcnlbcm.so :(
if [[ "$(get_libdir)" != lib ]]; then
dosym "../$(get_libdir)/libcnlbcm.so" /usr/lib/libcnlbcm.so
fi
}