blob: 3081ae7d7f6d70b29c7230a0c60f405546219d0c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-print/lm1100/lm1100-1.0.2a.ebuild,v 1.2 2007/03/18 13:11:17 opfer Exp $
inherit eutils 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
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86"
IUSE=""
DEPEND=""
S=${WORKDIR}/${MY_P}
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}/${P}-fix-compile-gcc-3.4.patch"
epatch "${FILESDIR}/${P}-fix-compile-gcc-4.1.patch"
epatch "${FILESDIR}/${P}-class.patch"
epatch "${FILESDIR}/${P}-makefile.patch"
cd "${WORKDIR}/${PN}maint"
epatch "${FILESDIR}/${PN}maint-firmware.patch"
}
src_compile() {
emake CXX="$(tc-getCXX)" || die "emake failed"
}
src_install() {
dobin lm1100
dodoc README RELEASE.txt LICENSE
cd "${WORKDIR}/${PN}maint"
dobin lm1100back lm1100change
insinto "/usr/share/${PN}"
doins lexmarkback lexmarkchange
newdoc README README.maint
}
|