From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id E6610138334 for ; Sun, 3 Jun 2018 12:51:15 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 94F38E09EF; Sun, 3 Jun 2018 12:51:14 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 41A0EE09EF for ; Sun, 3 Jun 2018 12:51:13 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 8AD13335C72 for ; Sun, 3 Jun 2018 12:51:12 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id D855629E for ; Sun, 3 Jun 2018 12:51:10 +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: <1528030263.600032df2bbad6b36e3fb41966fbd6a84dd809cc.ulm@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-editors/mg/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-editors/mg/Manifest app-editors/mg/mg-20180408.ebuild X-VCS-Directories: app-editors/mg/ X-VCS-Committer: ulm X-VCS-Committer-Name: Ulrich Müller X-VCS-Revision: 600032df2bbad6b36e3fb41966fbd6a84dd809cc X-VCS-Branch: master Date: Sun, 3 Jun 2018 12:51:10 +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: 2b8ec435-08ce-402e-8c42-0f0de1115a8a X-Archives-Hash: 880e28c8dce1a9d2dc39833a75e5a658 commit: 600032df2bbad6b36e3fb41966fbd6a84dd809cc Author: Ulrich Müller gentoo org> AuthorDate: Sun Jun 3 12:48:43 2018 +0000 Commit: Ulrich Müller gentoo org> CommitDate: Sun Jun 3 12:51:03 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=600032df app-editors/mg: Version bump. Package-Manager: Portage-2.3.40, Repoman-2.3.9 app-editors/mg/Manifest | 1 + app-editors/mg/mg-20180408.ebuild | 46 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 47 insertions(+) diff --git a/app-editors/mg/Manifest b/app-editors/mg/Manifest index 395ef497fcc..a25162831d4 100644 --- a/app-editors/mg/Manifest +++ b/app-editors/mg/Manifest @@ -1,2 +1,3 @@ DIST mg-20170828.tar.gz 141028 BLAKE2B a0243ee05f86161f1a9448ec92c8cf14362a60dd3643ad49f79fdd6c2ffe56f51415321eb6f3d7b78c1ca6eab9cb91380cdb63f699359080011d6801feaedd04 SHA512 1ea16b1dd5e9e08abf9fcf0889130b4f39d36872bb64df85470a9ced1db87c0eecb18cc6e8c3c5a04f9049d58ef4492d5a88cf3502ec3351abccb7bddfb90c14 DIST mg-20171014.tar.gz 141045 BLAKE2B a5b3bda6ff3b6416093069b471762687c2279737aa05b297ccd3077aff195cf52831566768613a81dcc977a27ac5ffd6e8a1874aa1010b6d90f4c678b6825cee SHA512 d55818308421aa523fb30b6e4725bb122f37637a822fabafeba9f9da3b97fd7f6af6431fce3015c969d0e656a48e89ed49b790deefc69fbdbb7e257f8a1aeb56 +DIST mg-20180408.tar.gz 141988 BLAKE2B db7da46fb0160acf8695f05234ed0c8e9a45e4239dc3abd433ddfb8b66e2b1aa550ffc4b409486a8990881d791ed73269a8ab78f6846cd4f0bee67761c11d281 SHA512 25fceb18fcbe63010e7a2e107aa5c30356938be2e04ff48869a12b5018dbb83bcf4dc70b03674713516616037247952a51454a28ca418cdc7b020d1f415f8701 diff --git a/app-editors/mg/mg-20180408.ebuild b/app-editors/mg/mg-20180408.ebuild new file mode 100644 index 00000000000..963154791f8 --- /dev/null +++ b/app-editors/mg/mg-20180408.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit toolchain-funcs + +DESCRIPTION="MicroGnuEmacs, a port from the BSDs" +HOMEPAGE="https://homepage.boetes.org/software/mg/" +SRC_URI="https://github.com/hboetes/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="public-domain" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd" +IUSE="livecd" + +RDEPEND="sys-libs/ncurses:0 + !elibc_FreeBSD? ( >=dev-libs/libbsd-0.7.0 )" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +src_prepare() { + # fix path to tutorial in man page + sed -i -e "s:doc/mg/:doc/${PF}/:" mg.1 || die + eapply_user +} + +src_compile() { + emake CC="$(tc-getCC)" \ + CFLAGS="${CFLAGS}" \ + PKG_CONFIG="$(tc-getPKG_CONFIG)" +} + +src_install() { + dobin mg + doman mg.1 + dodoc README tutorial + # don't compress the tutorial, otherwise mg cannot open it + docompress -x /usr/share/doc/${PF}/tutorial +} + +pkg_postinst() { + if use livecd; then + [[ -e ${EROOT}/usr/bin/emacs ]] || ln -s mg "${EROOT}"/usr/bin/emacs + fi +}