From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id B6722138202 for ; Thu, 3 Oct 2013 17:49:37 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4F80BE0AA6; Thu, 3 Oct 2013 17:49:37 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id AA9F4E0AA6 for ; Thu, 3 Oct 2013 17:49:36 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 99D3F33EFBD for ; Thu, 3 Oct 2013 17:49:35 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 8358FE545F for ; Thu, 3 Oct 2013 17:49:33 +0000 (UTC) From: "Ulrich Müller" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Ulrich Müller" Message-ID: <1380822460.cb70b253de2f22bedee0b6dcbd6ddd58ce2bdf85.ulm@gentoo> Subject: [gentoo-commits] proj/emacs:master commit in: app-editors/mg/ X-VCS-Repository: proj/emacs X-VCS-Files: app-editors/mg/ChangeLog app-editors/mg/Manifest app-editors/mg/metadata.xml app-editors/mg/mg-20130922.ebuild X-VCS-Directories: app-editors/mg/ X-VCS-Committer: ulm X-VCS-Committer-Name: Ulrich Müller X-VCS-Revision: cb70b253de2f22bedee0b6dcbd6ddd58ce2bdf85 X-VCS-Branch: master Date: Thu, 3 Oct 2013 17:49:33 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 85b2b3a4-12d0-4427-a965-e3ebe25cebe7 X-Archives-Hash: 8fe9c0554a75ed9a004a3950004fff10 commit: cb70b253de2f22bedee0b6dcbd6ddd58ce2bdf85 Author: Ulrich Müller gentoo org> AuthorDate: Thu Oct 3 17:47:40 2013 +0000 Commit: Ulrich Müller gentoo org> CommitDate: Thu Oct 3 17:47:40 2013 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/emacs.git;a=commit;h=cb70b253 Copied from Portage tree. Version bump. Package-Manager: portage-2.2.7 --- app-editors/mg/ChangeLog | 10 ++++++++ app-editors/mg/Manifest | 1 + app-editors/mg/metadata.xml | 9 +++++++ app-editors/mg/mg-20130922.ebuild | 49 +++++++++++++++++++++++++++++++++++++++ 4 files changed, 69 insertions(+) diff --git a/app-editors/mg/ChangeLog b/app-editors/mg/ChangeLog new file mode 100644 index 0000000..727dca2 --- /dev/null +++ b/app-editors/mg/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for app-editors/mg +# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + +*mg-20130922 (03 Oct 2013) + + 03 Oct 2013; Ulrich Müller +mg-20130922.ebuild, + +metadata.xml: + Copied from Portage tree. Version bump. + diff --git a/app-editors/mg/Manifest b/app-editors/mg/Manifest new file mode 100644 index 0000000..7f76d50 --- /dev/null +++ b/app-editors/mg/Manifest @@ -0,0 +1 @@ +DIST mg-20130922.tar.gz 142886 SHA256 323c21489416e256d036e8d58b6b72f96e7dee393fa8e38709f5fa226c8e7dd3 SHA512 79bf02ff3d30f41c234310b33c98f9a0f9c8a1197fe12c02e108071f6bc80f0d37003076cc1a2eb1c9a88c668eeab30e8a2d0c86af13ef57dd562dc077bb229b WHIRLPOOL c358095bf8fc686a5ebbe327ac35f5812164623307e77b1cc8293f28a65893dfd1826b4412ce0800cb5b77394b2eaeaff261149f25cd075651a7783c64248ff8 diff --git a/app-editors/mg/metadata.xml b/app-editors/mg/metadata.xml new file mode 100644 index 0000000..41e5f9b --- /dev/null +++ b/app-editors/mg/metadata.xml @@ -0,0 +1,9 @@ + + + +emacs + + mg is Micro GNU/emacs, this is a portable version of the mg maintained by + the OpenBSD team. + + diff --git a/app-editors/mg/mg-20130922.ebuild b/app-editors/mg/mg-20130922.ebuild new file mode 100644 index 0000000..92e7e3d --- /dev/null +++ b/app-editors/mg/mg-20130922.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-editors/mg/mg-20110905-r1.ebuild,v 1.7 2013/05/25 14:24:04 ago Exp $ + +EAPI=5 + +inherit toolchain-funcs + +DESCRIPTION="MicroGnuEmacs, a port from the BSDs" +HOMEPAGE="http://homepage.boetes.org/software/mg/" +SRC_URI="http://homepage.boetes.org/software/mg/${P}.tar.gz" + +LICENSE="public-domain BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="livecd" + +RDEPEND="sys-libs/ncurses" +DEPEND="${RDEPEND} + virtual/pkgconfig + dev-libs/clens" + +src_prepare() { + # create our own Makefile to avoid BSD make + echo -e 'SRCS =' *.c '\nmg: $(SRCS:.c=.o)' \ + '\n\t$(CC) $(LDFLAGS) $^ -o $@ $(LDLIBS)' >Makefile || die + + # remove OpenBSD specific easter egg + sed -i -e 's/theo\.c//' Makefile || die + sed -i -e '/theo_init/d' main.c || die +} + +src_compile() { + emake CC="$(tc-getCC)" \ + CFLAGS="${CFLAGS} -DFKEYS -DREGEX -DXKEYS -I/usr/include/clens" \ + LDLIBS="-lclens $("$(tc-getPKG_CONFIG)" --libs ncurses)" +} + +src_install() { + dobin mg + doman mg.1 + dodoc README tutorial +} + +pkg_postinst() { + if use livecd; then + [[ -e ${EROOT}/usr/bin/emacs ]] || ln -s mg "${EROOT}"/usr/bin/emacs + fi +}