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 5B7DE1393F1 for ; Wed, 16 Sep 2015 03:54:38 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7346CE085C; Wed, 16 Sep 2015 03:54:37 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id ED8F5E085C for ; Wed, 16 Sep 2015 03:54:36 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 9FAC8340C60 for ; Wed, 16 Sep 2015 03:54:33 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 8434118F for ; Wed, 16 Sep 2015 03:54:31 +0000 (UTC) From: "Jeroen Roovers" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Jeroen Roovers" Message-ID: <1442373993.7d8bfc3874266ea9f4cae31c0ffa7a501b89c081.jer@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sci-calculators/units/ X-VCS-Repository: repo/gentoo X-VCS-Files: sci-calculators/units/Manifest sci-calculators/units/units-2.11d.ebuild X-VCS-Directories: sci-calculators/units/ X-VCS-Committer: jer X-VCS-Committer-Name: Jeroen Roovers X-VCS-Revision: 7d8bfc3874266ea9f4cae31c0ffa7a501b89c081 X-VCS-Branch: master Date: Wed, 16 Sep 2015 03:54:31 +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: 8d64be17-36c1-40cc-9044-3f87f9bbde31 X-Archives-Hash: 7d68573c5fefe9b4f7a81e4558db282b commit: 7d8bfc3874266ea9f4cae31c0ffa7a501b89c081 Author: Jeroen Roovers gentoo org> AuthorDate: Wed Sep 16 03:25:33 2015 +0000 Commit: Jeroen Roovers gentoo org> CommitDate: Wed Sep 16 03:26:33 2015 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7d8bfc38 sci-calculators/units: Version bump. Package-Manager: portage-2.2.20.1 sci-calculators/units/Manifest | 1 + sci-calculators/units/units-2.11d.ebuild | 61 ++++++++++++++++++++++++++++++++ 2 files changed, 62 insertions(+) diff --git a/sci-calculators/units/Manifest b/sci-calculators/units/Manifest index 4acd6be..e5365a6 100644 --- a/sci-calculators/units/Manifest +++ b/sci-calculators/units/Manifest @@ -1,2 +1,3 @@ DIST units-2.11.tar.gz 861772 SHA256 53b6daf2a03d9a060449944b0a6c1aca0d18a84d1d9a93098e4a8920181f5abe SHA512 83e062a0daf9541454cdcaa4efe03bf9f03afdcfdbe2013d5e913a53e1b5e37ef846a3129185898ad2d25e3ea632533f8eb8d89681c855b19a3998aca6e733ce WHIRLPOOL 4c405e0a81af2b02d05156225c26573631ddb02d323d160b0850fcfda52b4a84a36f3ddbfdc732aa8a9dc06c8fc59a41141f985d6025ea6cb18b87749b78d500 DIST units-2.11a.tar.gz 865120 SHA256 cdc1ef5adf0701f9bf0f9e3c890cd832554e5bf3f078dab852e5a6783e525b8b SHA512 d942194b73a4d920d711bdcf07481aefff8fc1403f47ca73c1c0fd9837cb7c385a45f326d9537ba1aa77283c4f812be346a1b5ac15ca1e508c268857cc9d78db WHIRLPOOL 72efc473f9105796bdbdc92e2e355a0a2c8ede0ae5febbc017a112b6524e6ad9081a581cc22666ed4e7e74a87bf1b8d45e3a262df53358cbe32107edbe4b6230 +DIST units-2.11d.tar.gz 868580 SHA256 f1ba31658de19fa4ab3ecf791a08c590dc4f6dd5903c771bb9d678ba68ac785b SHA512 6e0dac8ae8830d0ab914e6e367f9473ac8c860cde9d189d05a8ade047037d21884a66e07733e8decc4d95325dcfb5a7110e4552b4b47c72b746cdc248354c1e5 WHIRLPOOL a54a33f50a0976d180e889485600de5354c94302dbe4b83aaff732efe9d473a07295d447b6d1df9fef766c35cb9571c947c4f12a23f8c21f8665ddb365078914 diff --git a/sci-calculators/units/units-2.11d.ebuild b/sci-calculators/units/units-2.11d.ebuild new file mode 100644 index 0000000..b08c085 --- /dev/null +++ b/sci-calculators/units/units-2.11d.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +PYTHON_COMPAT=( python{2_7,3_3,3_4} ) +PYTHON_REQ_USE="xml" +inherit eutils python-r1 + +DESCRIPTION="Unit conversion program" +HOMEPAGE="https://www.gnu.org/software/units/units.html" +SRC_URI="mirror://gnu-alpha/${PN}/${P}.tar.gz" + +LICENSE="FDL-1.3 GPL-3" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~sparc ~x86 ~amd64-linux ~x86-linux" +IUSE="+units_cur" + +DEPEND=" + >=sys-libs/readline-4.1-r2 + units_cur? ( + dev-lang/python-exec:2 + ) +" +RDEPEND=" + ${DEPEND} + units_cur? ( + dev-python/unidecode[${PYTHON_USEDEP}] + ${PYTHON_DEPS} + ) +" + +units_cur_prepare() { + local UNITS_PYTHON_MAJOR + UNITS_PYTHON_MAJOR=$( + UNITS_PYTHON_MAJOR=${EPYTHON/.*} + shopt -s extglob + echo ${UNITS_PYTHON_MAJOR/*([[:alpha:]])} + ) + sed -e "/^outfile/s|'.*'|'/usr/share/units/currency.units'|g" units_cur${UNITS_PYTHON_MAJOR} > units_cur-${EPYTHON} +} + +src_prepare() { + use units_cur && python_foreach_impl units_cur_prepare +} + +src_compile() { + emake HAVE_PYTHON=no +} + +units_cur_install() { + python_newexe units_cur-${EPYTHON} units_cur +} + +src_install() { + emake DESTDIR="${D}" HAVE_PYTHON=no install + + dodoc ChangeLog NEWS README + + use units_cur && python_foreach_impl units_cur_install +}