/[gentoo-x86]/app-text/libwpd/libwpd-0.9.6.ebuild
Gentoo

Contents of /app-text/libwpd/libwpd-0.9.6.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Wed Oct 24 14:50:54 2012 UTC (2 years, 2 months ago) by scarabeus
Branch: MAIN
Changes since 1.2: +2 -2 lines
Stable 0.9.6 on all archs for the annoying crashes (only cosm patches that are not needed for all at to test). Remove older.

(Portage version: 2.2.0_alpha141/cvs/Linux x86_64, signed Manifest commit with key 8EEE3BE8)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-text/libwpd/libwpd-0.9.6.ebuild,v 1.2 2012/09/25 07:58:13 scarabeus Exp $
4
5 EAPI=4
6
7 inherit alternatives eutils
8
9 DESCRIPTION="WordPerfect Document import/export library"
10 HOMEPAGE="http://libwpd.sf.net"
11 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
12
13 LICENSE="LGPL-2.1"
14 SLOT="0.9"
15 KEYWORDS="alpha amd64 ~arm hppa ia64 ~mips ppc ppc64 sparc x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
16 IUSE="doc test +tools"
17
18 RDEPEND=""
19 DEPEND="${RDEPEND}
20 virtual/pkgconfig
21 doc? ( app-doc/doxygen )
22 test? ( dev-util/cppunit )
23 "
24 RDEPEND="${RDEPEND}
25 !<app-text/libwpd-0.8.14-r1"
26
27 src_configure() {
28 econf \
29 --disable-static \
30 --disable-werror \
31 $(use_with doc docs) \
32 $(use_with tools stream) \
33 --docdir="${EPREFIX}"/usr/share/doc/${PF} \
34 --program-suffix=-${SLOT}
35 }
36
37 src_install() {
38 default
39 find "${ED}" -name '*.la' -exec rm -f {} +
40 }
41
42 pkg_postinst() {
43 if use tools; then
44 alternatives_auto_makesym /usr/bin/wpd2html "/usr/bin/wpd2html-[0-9].[0-9]"
45 alternatives_auto_makesym /usr/bin/wpd2raw "/usr/bin/wpd2raw-[0-9].[0-9]"
46 alternatives_auto_makesym /usr/bin/wpd2text "/usr/bin/wpd2text-[0-9].[0-9]"
47 fi
48 }
49
50 pkg_postrm() {
51 if use tools; then
52 alternatives_auto_makesym /usr/bin/wpd2html "/usr/bin/wpd2html-[0-9].[0-9]"
53 alternatives_auto_makesym /usr/bin/wpd2raw "/usr/bin/wpd2raw-[0-9].[0-9]"
54 alternatives_auto_makesym /usr/bin/wpd2text "/usr/bin/wpd2text-[0-9].[0-9]"
55 fi
56 }

  ViewVC Help
Powered by ViewVC 1.1.20