/[gentoo-x86]/app-editors/mp/mp-5.2.2.ebuild
Gentoo

Contents of /app-editors/mp/mp-5.2.2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (hide annotations) (download)
Fri Jul 20 08:24:58 2012 UTC (2 years, 7 months ago) by jlec
Branch: MAIN
Changes since 1.2: +11 -14 lines
app-editors/mp: Add fix for deprecation in gtk+, #426192; fix handling of empty linuguas_** request; remove deprecated code; move to EAPI=4

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

1 jer 1.1 # Copyright 1999-2012 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 jlec 1.3 # $Header: /var/cvsroot/gentoo-x86/app-editors/mp/mp-5.2.2.ebuild,v 1.2 2012/05/03 18:33:02 jdhore Exp $
4 jer 1.1
5     EAPI=4
6 jlec 1.3
7 jer 1.1 inherit eutils toolchain-funcs
8    
9     DESCRIPTION="Minimum Profit: A text editor for programmers"
10     HOMEPAGE="http://www.triptico.com/software/mp.html"
11     SRC_URI="http://www.triptico.com/download/${P}.tar.gz"
12    
13     LICENSE="GPL-2"
14     SLOT="0"
15     KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-interix ~ppc-macos ~sparc-solaris ~x86-solaris"
16     IUSE="gtk iconv kde ncurses nls pcre qt4"
17    
18     MP_LINGUAS="de es it nl ru sv"
19     for mp_lingua in ${MP_LINGUAS}; do
20     IUSE+=" linguas_${mp_lingua}"
21     done
22    
23     RDEPEND="
24     ncurses? ( sys-libs/ncurses )
25     gtk? (
26     || ( x11-libs/gtk+:3 x11-libs/gtk+:2 )
27     >=x11-libs/pango-1.8.0
28     dev-libs/atk
29     dev-libs/glib
30     media-libs/fontconfig
31     media-libs/freetype
32     x11-libs/cairo
33     )
34     !gtk? ( sys-libs/ncurses )
35     app-text/grutatxt
36     iconv? ( virtual/libiconv )
37     nls? ( sys-devel/gettext )
38     pcre? ( dev-libs/libpcre )
39     "
40     DEPEND="
41     ${RDEPEND}
42     app-text/grutatxt
43 jdhore 1.2 virtual/pkgconfig
44 jer 1.1 dev-lang/perl
45     "
46    
47     src_prepare() {
48 jlec 1.3 epatch \
49     "${FILESDIR}"/${P}-gtk+.patch \
50     "${FILESDIR}"/${PN}-5.2.1-prll.patch
51 jer 1.1 local mp_lingua
52     for mp_lingua in ${MP_LINGUAS}; do
53     if ! use linguas_${mp_lingua}; then
54     rm po/${mp_lingua/linguas_/}.[mp]o || die
55     fi
56     done
57 jlec 1.3 [[ $(ls po 2> /dev/null) ]] || \
58     sed \
59     -e '/^all/s:$(BUILDMO)::g' \
60     -e '/^install/s:$(INSTALLMO)::g' \
61     -i makefile.in || die
62 jer 1.1 }
63    
64     src_configure() {
65     local myconf="--prefix=${EPREFIX}/usr --without-win32"
66    
67     if use gtk; then
68     ! use ncurses && myconf="${myconf} --without-curses"
69     else
70     myconf="${myconf} --without-gtk2"
71     fi
72    
73     use iconv || myconf="${myconf} --without-iconv"
74    
75     use kde || myconf="${myconf} --without-kde4"
76    
77     use nls || myconfig="${myconf} --without-gettext"
78    
79     myconf="${myconf} $(use_with pcre)"
80     use pcre || myconf="${myconf} --with-included-regex"
81    
82     use qt4 || myconf="${myconf} --without-qt4"
83    
84     tc-export CC
85     sh config.sh ${myconf} || die "Configure failed"
86    
87     for i in "${S}" "${S}"/mpsl "${S}"/mpdm;do
88     echo ${CFLAGS} >> $i/config.cflags
89     echo ${CFLAGS} >> $i/config.ldflags
90     echo ${LDFLAGS} >> $i/config.ldflags
91     done
92     }
93    
94     src_install() {
95     dodir /usr/bin
96     sh config.sh --prefix="${EPREFIX}/usr"
97 jlec 1.3 emake DESTDIR="${D}" install
98 jer 1.1 }

  ViewVC Help
Powered by ViewVC 1.1.20