Lines 1-19
Link Here
|
1 |
# Copyright 1999-2011 Gentoo Foundation |
1 |
# Copyright 1999-2011 Gentoo Foundation |
2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Header: /var/cvsroot/gentoo-x86/media-gfx/iscan/iscan-2.26.2.ebuild,v 1.5 2011/10/15 23:14:57 ssuominen Exp $ |
3 |
# $Header: $ |
4 |
|
4 |
|
5 |
EAPI="2" |
5 |
EAPI="4" |
6 |
|
6 |
|
7 |
inherit eutils flag-o-matic autotools |
7 |
inherit eutils flag-o-matic autotools versionator |
8 |
|
8 |
|
9 |
SRC_REV="1" # revision used by upstream |
9 |
MY_P="${PN}_$(replace_version_separator 3 -)" |
|
|
10 |
MY_PV="$(get_version_component_range 1-3)" |
10 |
|
11 |
|
11 |
# HINTS: |
12 |
# HINTS: |
12 |
# -> non-free modules are x86 and amd64 only |
13 |
# -> non-free modules are x86 and amd64 only |
13 |
# -> iscan frontend needs non-free modules |
14 |
# -> iscan frontend needs non-free modules |
14 |
# -> sane-epkowa should be usable on every arch |
15 |
# -> sane-epkowa should be usable on every arch |
15 |
# -> ${P}-${SRC_REV}.tar.gz (for gcc 3.2/3.3) |
|
|
16 |
# -> ${P}-${SRC_REV}.c2.tar.gz (for gcc 3.4 or later) |
17 |
|
16 |
|
18 |
# FIXME: |
17 |
# FIXME: |
19 |
# Make jpeg/png optional. The problem is, that the configure script ignores --disable-*, |
18 |
# Make jpeg/png optional. The problem is, that the configure script ignores --disable-*, |
Lines 23-33
Link Here
|
23 |
# TODO: |
22 |
# TODO: |
24 |
# (re)add closed-source binary modules which are needed for some scanners. |
23 |
# (re)add closed-source binary modules which are needed for some scanners. |
25 |
|
24 |
|
26 |
KEYWORDS="amd64 x86" |
25 |
KEYWORDS="~amd64 ~x86" |
27 |
|
26 |
|
28 |
DESCRIPTION="EPSON Image Scan! for Linux (including sane-epkowa backend)" |
27 |
DESCRIPTION="EPSON Image Scan! for Linux (including sane-epkowa backend)" |
29 |
HOMEPAGE="http://www.avasys.jp/english/linux_e/dl_scan.html" |
28 |
HOMEPAGE="http://www.avasys.jp/english/linux_e/dl_scan.html" |
30 |
SRC_URI="http://linux.avasys.jp/drivers/iscan/${PV}/${PN}_${PV}-${SRC_REV}.tar.gz |
29 |
SRC_URI="http://linux.avasys.jp/drivers/iscan/${MY_PV}/${MY_P}.tar.gz |
31 |
doc? ( http://linux.avasys.jp/drivers/iscan/doc/userg_revL_e.pdf )" |
30 |
doc? ( http://linux.avasys.jp/drivers/iscan/doc/userg_revL_e.pdf )" |
32 |
LICENSE="GPL-2 AVASYS" |
31 |
LICENSE="GPL-2 AVASYS" |
33 |
SLOT="0" |
32 |
SLOT="0" |
Lines 60-65
Link Here
|
60 |
dev-util/pkgconfig |
59 |
dev-util/pkgconfig |
61 |
X? ( sys-devel/gettext )" |
60 |
X? ( sys-devel/gettext )" |
62 |
|
61 |
|
|
|
62 |
S="${WORKDIR}/${PN}-${MY_PV}" |
63 |
|
63 |
src_prepare() { |
64 |
src_prepare() { |
64 |
local i |
65 |
local i |
65 |
|
66 |
|
Lines 81-93
Link Here
|
81 |
|
82 |
|
82 |
epatch "${FILESDIR}"/iscan-2.25.0-drop-ltdl.patch |
83 |
epatch "${FILESDIR}"/iscan-2.25.0-drop-ltdl.patch |
83 |
epatch "${FILESDIR}"/iscan-2.25.0-fix-g++-test.patch |
84 |
epatch "${FILESDIR}"/iscan-2.25.0-fix-g++-test.patch |
84 |
epatch "${FILESDIR}"/iscan-2.26.2-libpng15.patch |
85 |
epatch "${FILESDIR}"/iscan-2.28.0.2-libpng15.patch |
85 |
|
86 |
|
86 |
eautoreconf |
87 |
eautoreconf |
87 |
} |
88 |
} |
88 |
|
89 |
|
89 |
src_configure() { |
90 |
src_configure() { |
90 |
append-flags -D_GNU_SOURCE # needed for 'strndup' |
91 |
append-flags -D_GNU_SOURCE # needed for 'strndup' |
|
|
92 |
# Fix selector box bug 388073 |
93 |
replace-flags "-O[0-9s]" "-O1" |
94 |
|
91 |
local myconf="--enable-dependency-reduction" |
95 |
local myconf="--enable-dependency-reduction" |
92 |
|
96 |
|
93 |
if use X; then |
97 |
if use X; then |