/[gentoo-x86]/dev-libs/gmime/gmime-2.2.27-r1.ebuild
Gentoo

Contents of /dev-libs/gmime/gmime-2.2.27-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.9 - (show annotations) (download)
Sun Jun 17 17:37:36 2012 UTC (2 years, 6 months ago) by armin76
Branch: MAIN
Changes since 1.8: +2 -2 lines
alpha/ia64/sparc stable wrt #413145

(Portage version: 2.1.10.53/cvs/Linux ia64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-libs/gmime/gmime-2.2.27-r1.ebuild,v 1.8 2012/05/24 13:38:23 ssuominen Exp $
4
5 EAPI="4"
6 GNOME_TARBALL_SUFFIX="bz2"
7 GCONF_DEBUG="no"
8
9 inherit gnome2 eutils mono libtool autotools
10
11 DESCRIPTION="Utilities for creating and parsing messages using MIME"
12 HOMEPAGE="http://spruce.sourceforge.net/gmime/"
13
14 SRC_URI="${SRC_URI} http://dev.gentoo.org/~pacho/gnome/gmime-sharp.snk"
15
16 SLOT="0"
17 LICENSE="LGPL-2.1"
18 KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 sparc x86 ~x86-fbsd"
19 IUSE="doc mono"
20
21 RDEPEND=">=dev-libs/glib-2:2
22 sys-libs/zlib
23 mono? (
24 dev-lang/mono
25 >=dev-dotnet/gtk-sharp-2.4.0:2 )"
26 DEPEND="${RDEPEND}
27 virtual/pkgconfig
28 dev-util/gtk-doc-am
29 doc? (
30 >=dev-util/gtk-doc-1.0
31 app-text/docbook-sgml-utils )
32 mono? ( dev-dotnet/gtk-sharp-gapi:2 )"
33
34 pkg_setup() {
35 DOCS="AUTHORS ChangeLog COPYING INSTALL NEWS PORTING README TODO doc/html/"
36 G2CONF="${G2CONF} $(use_enable mono)"
37 }
38
39 src_prepare() {
40 epatch "${FILESDIR}/gmime-2.2.23-sign-assembly.patch"
41
42 cp "${DISTDIR}/gmime-sharp.snk" mono/ || die
43 if use doc ; then
44 #db2html should be docbook2html
45 sed -i -e 's:db2html:docbook2html -o gmime-tut:g' \
46 docs/tutorial/Makefile.am docs/tutorial/Makefile.in \
47 || die "sed failed (1)"
48 sed -i -e 's:db2html:docbook2html:g' configure.in configure \
49 || die "sed failed (2)"
50 # Fix doc targets (bug #97154)
51 sed -i -e 's!\<\(tmpl-build.stamp\): !\1 $(srcdir)/tmpl/*.sgml: !' \
52 gtk-doc.make docs/reference/Makefile.in || die "sed failed (3)"
53 fi
54
55 eautoreconf
56 elibtoolize
57 }
58
59 src_compile() {
60 MONO_PATH="${S}" emake
61 # 'all' rule doesn't generate html files
62 use doc && cd docs/tutorial/ && emake html
63 }
64
65 src_install() {
66 emake DESTDIR="${D}" install
67
68 if use doc ; then
69 # we don't use docinto/dodoc, because we don't want html doc gzipped
70 insinto /usr/share/doc/${PF}/tutorial
71 doins docs/tutorial/html/*
72 fi
73
74 # rename these two, so they don't conflict with app-arch/sharutils
75 # (bug #70392) Ticho, 2004-11-10
76 mv "${ED}/usr/bin/uuencode" "${ED}/usr/bin/gmime-uuencode"
77 mv "${ED}/usr/bin/uudecode" "${ED}/usr/bin/gmime-uudecode"
78 mono_multilib_comply
79
80 # Prevent collissions with 2.6 slot, bug #413145
81 rm -f "${ED}/usr/share/gapi-2.0/gmime-api.xml" || die
82 }

  ViewVC Help
Powered by ViewVC 1.1.20