/[gentoo-x86]/x11-plugins/pidgintex/pidgintex-1.1.1.ebuild
Gentoo

Contents of /x11-plugins/pidgintex/pidgintex-1.1.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Wed Aug 24 19:52:20 2011 UTC (2 years, 11 months ago) by maekke
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +2 -2 lines
x86 stable, bug #377911

(Portage version: 2.1.10.11/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/x11-plugins/pidgintex/pidgintex-1.1.1.ebuild,v 1.4 2011/08/07 10:41:22 hwoarang Exp $
4
5 EAPI="2"
6 inherit toolchain-funcs multilib
7
8 MY_P=pidginTeX-${PV}
9
10 DESCRIPTION="Pidgin plugin to render LaTeX expressions in messages."
11 HOMEPAGE="http://code.google.com/p/pidgintex"
12 SRC_URI="http://pidgintex.googlecode.com/files/${MY_P}.tar.gz"
13
14 LICENSE="GPL-3"
15 SLOT="0"
16 KEYWORDS="amd64 x86"
17 IUSE=""
18
19 DEPEND="net-im/pidgin[gtk]
20 app-text/mathtex"
21 RDEPEND="${DEPEND}"
22
23 S=${WORKDIR}/${MY_P}
24
25 src_prepare() {
26 sed -e "s:\(^CC.*=\).*:\1 $(tc-getCC):" \
27 -e "s:\(^STRIP.*=\).*:\1 true:" \
28 -e "s:\(^CFLAGS[[:space:]]*\)=:\1+=:" \
29 -e "/LIB_INSTALL_DIR/{s:/lib/purple-2:/$(get_libdir)/pidgin:;}" \
30 -i Makefile || die
31 # set default renderer to mathtex
32 sed -e "/purple_prefs_add_string.*PREFS_RENDERER/{s:mimetex:mathtex:;}" \
33 -i pidginTeX.c || die
34 }
35
36 src_compile() {
37 emake PREFIX=/usr || die
38 }
39
40 src_install() {
41 make PREFIX="${D}/usr" install || die "make install failed"
42 dodoc CHANGELOG README TODO || die
43 }
44
45 pkg_postinst() {
46 elog 'Note, to see formulas either disable "Conversation Colors" plugin or'
47 elog 'switch off "ignore incoming format" option in plugin configuration.'
48 elog 'For details, take a look (and vote) at http://developer.pidgin.im/ticket/2772'
49 }

  ViewVC Help
Powered by ViewVC 1.1.20