/[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.12 - (hide annotations) (download)
Fri Mar 15 12:46:35 2013 UTC (13 months, 1 week ago) by pinkbyte
Branch: MAIN
CVS Tags: HEAD
Changes since 1.11: +2 -2 lines
Respect AR, wrt bug #456150. Thanks to Agostino Sarubbo for discovering this issue

(Portage version: 2.2.0_alpha166/cvs/Linux x86_64, signed Manifest commit with key 0x1F357D42)

1 ago 1.4 # Copyright 1999-2013 Gentoo Foundation
2 jer 1.1 # Distributed under the terms of the GNU General Public License v2
3 pinkbyte 1.12 # $Header: /var/cvsroot/gentoo-x86/app-editors/mp/mp-5.2.2.ebuild,v 1.11 2013/03/15 12:42:15 pinkbyte 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 ago 1.10 KEYWORDS="alpha amd64 ia64 ppc ppc64 sparc x86 ~x86-interix ~ppc-macos ~sparc-solaris ~x86-solaris"
16 jer 1.1 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 pinkbyte 1.12 tc-export AR CC
85 jer 1.1 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 pinkbyte 1.11 src_compile() {
95     emake CPP="$(tc-getCXX)" CCLINK="$(tc-getCXX)"
96     }
97    
98 jer 1.1 src_install() {
99     dodir /usr/bin
100     sh config.sh --prefix="${EPREFIX}/usr"
101 jlec 1.3 emake DESTDIR="${D}" install
102 jer 1.1 }

  ViewVC Help
Powered by ViewVC 1.1.20