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/lm1100/lm1100-1.0.2a-r1.ebuild

44 lines
1.1 KiB

# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=5
inherit epatch toolchain-funcs
DESCRIPTION="The Tim Engler's Lexmark 1100 driver"
HOMEPAGE="http://www.linuxprinting.org/show_driver.cgi?driver=lm1100"
MY_P=${P/lm1100-/lm1100.}
SRC_URI="mirror://gentoo/${MY_P}.tar.gz
mirror://gentoo/${PN}maint.tar.gz"
#http://www.linuxprinting.org/download/printing/${PN}/${PN}maint.tar.gz
#http://www.linuxprinting.org/download/printing/${PN}/${MY_P}.tar.gz
S="${WORKDIR}"/${MY_P}
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 x86"
src_prepare() {
epatch "${FILESDIR}/${P}-fix-compile-gcc-3.4.patch"\
"${FILESDIR}/${P}-fix-compile-gcc-4.1.patch"\
"${FILESDIR}/${P}-class.patch"\
"${FILESDIR}/${P}-makefile.patch"
cd "${WORKDIR}/${PN}maint" || die
epatch "${FILESDIR}/${PN}maint-firmware.patch"
}
src_compile() {
emake CXX="$(tc-getCXX)"
}
src_install() {
dobin lm1100
dodoc README RELEASE.txt
cd "${WORKDIR}/${PN}maint" || die
dobin lm1100back lm1100change
insinto "/usr/share/${PN}"
doins lexmarkback lexmarkchange
newdoc README README.maint
}