/[gentoo-x86]/media-libs/libifp/libifp-1.0.0.2.ebuild
Gentoo

Contents of /media-libs/libifp/libifp-1.0.0.2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.15 - (show annotations) (download)
Mon Feb 21 17:50:53 2011 UTC (8 years, 10 months ago) by ssuominen
Branch: MAIN
CVS Tags: HEAD
Changes since 1.14: +3 -1 lines
Skip running src_test() wrt #318597 by Diego Elio Pettenò.

(Portage version: 2.2.0_alpha24/cvs/Linux x86_64)

1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/media-libs/libifp/libifp-1.0.0.2.ebuild,v 1.14 2011/02/21 17:46:50 ssuominen Exp $
4
5 EAPI=2
6
7 DESCRIPTION="A general-purpose library for iRiver's iFP portable audio players"
8 HOMEPAGE="http://ifp-driver.sourceforge.net/libifp/"
9 SRC_URI="mirror://sourceforge/ifp-driver/${P}.tar.gz"
10
11 LICENSE="GPL-2"
12 SLOT="0"
13 KEYWORDS="amd64 ~ia64 ppc ppc64 x86"
14 IUSE="doc examples static-libs"
15
16 RDEPEND="virtual/libusb:0"
17 DEPEND="${RDEPEND}
18 doc? ( >=app-doc/doxygen-1.3.7 )
19 sys-apps/sed"
20
21 src_prepare() {
22 sed -i \
23 -e '/CFLAGS=/s:-g -O2:${CFLAGS}:' \
24 -e '/CXXFLAGS=/s:-g -O2:${CXXFLAGS}:' \
25 configure || die
26 }
27
28 src_configure() {
29 use doc || export have_doxygen=no
30
31 econf \
32 --disable-dependency-tracking \
33 $(use_enable static-libs static) \
34 $(use_enable examples) \
35 --with-libusb \
36 --without-kmodule
37 }
38
39 src_test() { :; } # hardware dependant wrt #318597
40
41 src_install() {
42 emake DESTDIR="${D}" install || die
43
44 find "${D}" -name '*.la' -exec rm -f {} +
45
46 # clean /usr/bin after installation
47 # by moving examples to examples dir
48 if use examples; then
49 insinto /usr/share/${PN}/examples
50 doins "${S}"/examples/simple.c "${S}"/examples/ifpline.c
51 mv "${D}"/usr/bin/{simple,ifpline} "${D}"/usr/share/${PN}/examples
52 else
53 rm -f "${D}"/usr/bin/{simple,ifpline}
54 fi
55
56 use doc && dodoc README ChangeLog TODO
57 }

  ViewVC Help
Powered by ViewVC 1.1.20