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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.2 Revision 1.3
1# Copyright 1999-2012 Gentoo Foundation 1# Copyright 1999-2012 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
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 $ 3# $Header: /var/cvsroot/gentoo-x86/app-editors/mp/mp-5.2.2.ebuild,v 1.3 2012/07/20 08:24:58 jlec Exp $
4 4
5EAPI=4 5EAPI=4
6
6inherit eutils toolchain-funcs 7inherit eutils toolchain-funcs
7 8
8DESCRIPTION="Minimum Profit: A text editor for programmers" 9DESCRIPTION="Minimum Profit: A text editor for programmers"
9HOMEPAGE="http://www.triptico.com/software/mp.html" 10HOMEPAGE="http://www.triptico.com/software/mp.html"
10SRC_URI="http://www.triptico.com/download/${P}.tar.gz" 11SRC_URI="http://www.triptico.com/download/${P}.tar.gz"
42 virtual/pkgconfig 43 virtual/pkgconfig
43 dev-lang/perl 44 dev-lang/perl
44" 45"
45 46
46src_prepare() { 47src_prepare() {
48 epatch \
49 "${FILESDIR}"/${P}-gtk+.patch \
47 epatch "${FILESDIR}"/${PN}-5.2.1-prll.patch 50 "${FILESDIR}"/${PN}-5.2.1-prll.patch
48 local mp_lingua 51 local mp_lingua
49 for mp_lingua in ${MP_LINGUAS}; do 52 for mp_lingua in ${MP_LINGUAS}; do
50 if ! use linguas_${mp_lingua}; then 53 if ! use linguas_${mp_lingua}; then
51 rm po/${mp_lingua/linguas_/}.[mp]o || die 54 rm po/${mp_lingua/linguas_/}.[mp]o || die
52 fi 55 fi
53 done 56 done
57 [[ $(ls po 2> /dev/null) ]] || \
58 sed \
59 -e '/^all/s:$(BUILDMO)::g' \
60 -e '/^install/s:$(INSTALLMO)::g' \
61 -i makefile.in || die
54} 62}
55 63
56src_configure() { 64src_configure() {
57 local myconf="--prefix=${EPREFIX}/usr --without-win32" 65 local myconf="--prefix=${EPREFIX}/usr --without-win32"
58 66
84} 92}
85 93
86src_install() { 94src_install() {
87 dodir /usr/bin 95 dodir /usr/bin
88 sh config.sh --prefix="${EPREFIX}/usr" 96 sh config.sh --prefix="${EPREFIX}/usr"
89 emake -j1 DESTDIR="${D}" install 97 emake DESTDIR="${D}" install
90# use gtk && dosym mp-5 /usr/bin/gmp
91} 98}
92
93pkg_postinst() {
94 if use gtk ; then
95 einfo
96 einfo "mp-5 is symlinked to gmp! Use"
97 einfo "$ DISPLAY=\"\" mp-5"
98 einfo "to use text mode!"
99 einfo
100 fi
101}

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

  ViewVC Help
Powered by ViewVC 1.1.20