diff options
author | Jeroen Roovers <jer@gentoo.org> | 2012-04-25 20:12:28 +0000 |
---|---|---|
committer | Jeroen Roovers <jer@gentoo.org> | 2012-04-25 20:12:28 +0000 |
commit | 75b88a37dcacad23209b5cde11db2ae76456aea3 (patch) | |
tree | 23effad6bff38bcfe0563b34723b3c3fd68a5a93 /app-editors | |
parent | arm stable, bug #410611 (diff) | |
download | gentoo-2-75b88a37dcacad23209b5cde11db2ae76456aea3.tar.gz gentoo-2-75b88a37dcacad23209b5cde11db2ae76456aea3.tar.bz2 gentoo-2-75b88a37dcacad23209b5cde11db2ae76456aea3.zip |
Version bump. Add support for LINGUAS as requested by Piotr Szymaniak in bug #402703.
(Portage version: 2.2.0_alpha101/cvs/Linux x86_64)
Diffstat (limited to 'app-editors')
-rw-r--r-- | app-editors/mp/ChangeLog | 10 | ||||
-rw-r--r-- | app-editors/mp/mp-5.2.2.ebuild | 101 |
2 files changed, 109 insertions, 2 deletions
diff --git a/app-editors/mp/ChangeLog b/app-editors/mp/ChangeLog index 8cd3d29901b9..5fcf055990d6 100644 --- a/app-editors/mp/ChangeLog +++ b/app-editors/mp/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for app-editors/mp -# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-editors/mp/ChangeLog,v 1.81 2011/11/12 00:47:44 xmw Exp $ +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-editors/mp/ChangeLog,v 1.82 2012/04/25 20:12:28 jer Exp $ + +*mp-5.2.2 (25 Apr 2012) + + 25 Apr 2012; Jeroen Roovers <jer@gentoo.org> +mp-5.2.2.ebuild: + Version bump. Add support for LINGUAS as requested by Piotr Szymaniak in bug + #402703. *mp-5.2.1 (12 Nov 2011) diff --git a/app-editors/mp/mp-5.2.2.ebuild b/app-editors/mp/mp-5.2.2.ebuild new file mode 100644 index 000000000000..344568391f1e --- /dev/null +++ b/app-editors/mp/mp-5.2.2.ebuild @@ -0,0 +1,101 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-editors/mp/mp-5.2.2.ebuild,v 1.1 2012/04/25 20:12:28 jer Exp $ + +EAPI=4 +inherit eutils toolchain-funcs + +DESCRIPTION="Minimum Profit: A text editor for programmers" +HOMEPAGE="http://www.triptico.com/software/mp.html" +SRC_URI="http://www.triptico.com/download/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-interix ~ppc-macos ~sparc-solaris ~x86-solaris" +IUSE="gtk iconv kde ncurses nls pcre qt4" + +MP_LINGUAS="de es it nl ru sv" +for mp_lingua in ${MP_LINGUAS}; do + IUSE+=" linguas_${mp_lingua}" +done + +RDEPEND=" + ncurses? ( sys-libs/ncurses ) + gtk? ( + || ( x11-libs/gtk+:3 x11-libs/gtk+:2 ) + >=x11-libs/pango-1.8.0 + dev-libs/atk + dev-libs/glib + media-libs/fontconfig + media-libs/freetype + x11-libs/cairo + ) + !gtk? ( sys-libs/ncurses ) + app-text/grutatxt + iconv? ( virtual/libiconv ) + nls? ( sys-devel/gettext ) + pcre? ( dev-libs/libpcre ) +" +DEPEND=" + ${RDEPEND} + app-text/grutatxt + dev-util/pkgconfig + dev-lang/perl +" + +src_prepare() { + epatch "${FILESDIR}"/${PN}-5.2.1-prll.patch + local mp_lingua + for mp_lingua in ${MP_LINGUAS}; do + if ! use linguas_${mp_lingua}; then + rm po/${mp_lingua/linguas_/}.[mp]o || die + fi + done +} + +src_configure() { + local myconf="--prefix=${EPREFIX}/usr --without-win32" + + if use gtk; then + ! use ncurses && myconf="${myconf} --without-curses" + else + myconf="${myconf} --without-gtk2" + fi + + use iconv || myconf="${myconf} --without-iconv" + + use kde || myconf="${myconf} --without-kde4" + + use nls || myconfig="${myconf} --without-gettext" + + myconf="${myconf} $(use_with pcre)" + use pcre || myconf="${myconf} --with-included-regex" + + use qt4 || myconf="${myconf} --without-qt4" + + tc-export CC + sh config.sh ${myconf} || die "Configure failed" + + for i in "${S}" "${S}"/mpsl "${S}"/mpdm;do + echo ${CFLAGS} >> $i/config.cflags + echo ${CFLAGS} >> $i/config.ldflags + echo ${LDFLAGS} >> $i/config.ldflags + done +} + +src_install() { + dodir /usr/bin + sh config.sh --prefix="${EPREFIX}/usr" + emake -j1 DESTDIR="${D}" install +# use gtk && dosym mp-5 /usr/bin/gmp +} + +pkg_postinst() { + if use gtk ; then + einfo + einfo "mp-5 is symlinked to gmp! Use" + einfo "$ DISPLAY=\"\" mp-5" + einfo "to use text mode!" + einfo + fi +} |