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 723CC139085 for ; Wed, 4 Jan 2017 19:42:21 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D039121C028; Wed, 4 Jan 2017 19:42:20 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id A174E21C028 for ; Wed, 4 Jan 2017 19:42:20 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id AA30F341134 for ; Wed, 4 Jan 2017 19:42:19 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 1E5F724EC for ; Wed, 4 Jan 2017 19:42:18 +0000 (UTC) From: "Tim Harder" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Tim Harder" Message-ID: <1483558893.dc820fda4d55a03f8f48c483289e1f2fbc811260.radhermit@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/moreutils/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-apps/moreutils/moreutils-0.60-r1.ebuild X-VCS-Directories: sys-apps/moreutils/ X-VCS-Committer: radhermit X-VCS-Committer-Name: Tim Harder X-VCS-Revision: dc820fda4d55a03f8f48c483289e1f2fbc811260 X-VCS-Branch: master Date: Wed, 4 Jan 2017 19:42:18 +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: 9c24056d-5efb-4844-9362-00f1c9ebc4c0 X-Archives-Hash: 0ab737c1246f52b194d21107aedca79b commit: dc820fda4d55a03f8f48c483289e1f2fbc811260 Author: Tim Harder gentoo org> AuthorDate: Wed Jan 4 19:40:41 2017 +0000 Commit: Tim Harder gentoo org> CommitDate: Wed Jan 4 19:41:33 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dc820fda sys-apps/moreutils: try to make sure $EDITOR is valid for vipe bug #604630 sys-apps/moreutils/moreutils-0.60-r1.ebuild | 65 +++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) diff --git a/sys-apps/moreutils/moreutils-0.60-r1.ebuild b/sys-apps/moreutils/moreutils-0.60-r1.ebuild new file mode 100644 index 00000000..130cf81 --- /dev/null +++ b/sys-apps/moreutils/moreutils-0.60-r1.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 +inherit toolchain-funcs + +DESCRIPTION="a collection of tools that nobody thought to write when Unix was young" +HOMEPAGE="http://joeyh.name/code/moreutils/" +#SRC_URI="mirror://debian/pool/main/${PN:0:1}/${PN}/${PN}_${PV}.orig.tar.gz" +SRC_URI="https://dev.gentoo.org/~radhermit/dist/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~x86 ~x86-linux" +IUSE="+doc +perl" + +RDEPEND=" + perl? ( + dev-lang/perl + dev-perl/IPC-Run + dev-perl/Time-Duration + dev-perl/TimeDate + )" +DEPEND=" + app-admin/eselect + doc? ( + dev-lang/perl + >=app-text/docbook2X-0.8.8-r2 + app-text/docbook-xml-dtd:4.4 + )" + +src_prepare() { + # don't build manpages + if ! use doc ; then + sed -i -e '/^all:/s/$(MANS)//' -e '/man1/d' Makefile || die + fi + + # don't install perl scripts + if ! use perl ; then + sed -i -e '/PERLSCRIPTS/d' Makefile || die + fi + + default +} + +src_compile() { + tc-export CC + emake CFLAGS="${CFLAGS}" DOCBOOK2XMAN=docbook2man.pl PREFIX="${EPREFIX}/usr" +} + +src_install() { + emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" INSTALL_BIN=install install + + # sys-process is more advanced than parallel from moreutils, rename it + if use doc; then + mv "${ED}"usr/share/man/man1/{,${PN}_}parallel.1 || die + fi + mv "${ED}"usr/bin/{,${PN}_}parallel || die +} + +pkg_postinst() { + # try to make sure $EDITOR is valid for vipe (bug #604630) + eselect editor update +}