From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- sci-mathematics/num-utils/num-utils-0.5-r1.ebuild | 47 +++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 sci-mathematics/num-utils/num-utils-0.5-r1.ebuild (limited to 'sci-mathematics/num-utils/num-utils-0.5-r1.ebuild') diff --git a/sci-mathematics/num-utils/num-utils-0.5-r1.ebuild b/sci-mathematics/num-utils/num-utils-0.5-r1.ebuild new file mode 100644 index 000000000000..a6bf9e3f0638 --- /dev/null +++ b/sci-mathematics/num-utils/num-utils-0.5-r1.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=4 + +inherit eutils + +DEB_PR=11 + +DESCRIPTION="A set of programs for dealing with numbers from the command line" +HOMEPAGE="http://suso.suso.org/programs/num-utils/" +SRC_URI=" + http://suso.suso.org/programs/num-utils/downloads/${P}.tar.gz + mirror://debian/pool/main/${PN:0:1}/${PN}/${PN}_${PV}-${DEB_PR}.diff.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~ppc ~x86" +IUSE="" + +src_prepare() { + epatch "${WORKDIR}"/${PN}_${PV}-${DEB_PR}.diff + sed \ + -e 's:../orig/num-utils-0.5/::g' \ + -i "${S}"/debian/patches/*.diff || die + epatch "${S}"/debian/patches/*.diff + + local x + for x in average bound interval normalize random range round; do + mv $x num$x || die "renaming $x failed" + done + + sed \ + -e 's/^RPMDIR/#RPMDIR/' \ + -e 's/COPYING//' \ + -e 's/LICENSE//' \ + -e '/^DOCS/s/MANIFEST//' \ + -i Makefile || die "sed Makefile failed" +} + +src_install () { + emake ROOT="${ED}" install +} + +pkg_postinst() { + elog "All ${PN} programs have been renamed with prefix 'num' to avoid collisions" +} -- cgit v1.2.3