commit: 60d0e8c0e0b2ebb079461f304d2509196332aeb9 Author: Manuel Rüger <mrueg <AT> gentoo <DOT> org> AuthorDate: Wed Feb 10 23:02:08 2016 +0000 Commit: Manuel Rüger <mrueg <AT> gentoo <DOT> org> CommitDate: Wed Feb 10 23:02:08 2016 +0000 URL: https://gitweb.gentoo.org/dev/mrueg.git/commit/?id=60d0e8c0
sci-mathematics/calc: Version bump. Remove old Package-Manager: portage-2.2.27 sci-mathematics/calc/Manifest | 1 + sci-mathematics/calc/calc-2.12.5.3.ebuild | 57 +++++++++++++++++++++++++++++++ 2 files changed, 58 insertions(+) diff --git a/sci-mathematics/calc/Manifest b/sci-mathematics/calc/Manifest index a579147..4f2ad38 100644 --- a/sci-mathematics/calc/Manifest +++ b/sci-mathematics/calc/Manifest @@ -1 +1,2 @@ DIST calc-2.12.5.0.tar.bz2 955430 SHA256 a0e7b47af38330f188970998c8e5039134dadf6f2e3f2c00d7efdae272a4338d SHA512 8196c2a250807bb7aa819551fe374edd4d18e28f046627a9800ee7f13b3a4a8d8ed14619e3c1eef8144d80c3969f244e019ac8e6e4ea2d4eca44f16fd98040db WHIRLPOOL 5f307bfc62493172c627eaa4ec57c1d723091f89db822f1dcff38dbd4246b96369dc47be507e16ec9ae3f36d3fc84f6dfb0f41886dba402622017e8dc16051ac +DIST calc-2.12.5.3.tar.bz2 956025 SHA256 0fcf60917efb10aab145f1180c278a3ab63d789aad6d5e5f066a4458b5f9b692 SHA512 5f05f9710d5ad1a89212a4f0e36adeeb766ee317a3db70ae31fa1d555de8e4ecc61c4afe8a62c3a18d899073376e3f88fdd9c03ea6a5ada83a692583b205d8ba WHIRLPOOL 56159900928409555f9429846d3d879ee828fc4d8fb82cf1c57b4d9785cef6f379c296edcfad7632823098dbff64ba766b3981ec53b54955c7637d28e1c8e320 diff --git a/sci-mathematics/calc/calc-2.12.5.3.ebuild b/sci-mathematics/calc/calc-2.12.5.3.ebuild new file mode 100644 index 0000000..5d53fcd --- /dev/null +++ b/sci-mathematics/calc/calc-2.12.5.3.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils multilib toolchain-funcs + +DESCRIPTION="Arbitrary precision C-like arithmetic system" +HOMEPAGE="http://www.isthe.com/chongo/tech/comp/calc/" +SRC_URI="http://www.isthe.com/chongo/src/calc/${P}.tar.bz2" + +SLOT="0" +LICENSE="LGPL-2" +KEYWORDS="~amd64" + +IUSE="" + +DEPEND="sys-libs/ncurses + sys-libs/readline:0" +RDEPEND="${DEPEND}" + +src_prepare() { + # Rework patches before adding it to the main tree! + epatch "${FILESDIR}"/${PN}-2.12.5.0-prefix.patch \ + "${FILESDIR}"/${PN}-2.12.5.0-ldflags.patch + ln -sf libcustcalc.so.${PV} custom/libcustcalc.so + sed -i -e "/DIR/s:/usr:${EPREFIX}/usr:g" Makefile || die +} + +src_compile() { + # parallel compilation hard to fix. better to leave upstream. + emake -j1 \ + CC="$(tc-getCC)" \ + DEBUG="${CFLAGS}" \ + LDFLAGS="${LDFLAGS}" \ + CALCPAGER="${PAGER}" \ + USE_READLINE="-DUSE_READLINE" \ + READLINE_LIB="-lreadline -lhistory -lncurses -L\"${S}\"/custom -lcustcalc" \ + all +} + +src_test() { + if echo "${LD_PRELOAD}" | grep -q "sandbox"; then + ewarn "Can't run check when running in sandbox - see bug #59676" + else + emake chk + fi +} + +src_install() { + emake \ + T="${D}" \ + LIBDIR="${EPREFIX}/usr/$(get_libdir)" \ + install + dodoc BUGS CHANGES LIBRARY README +}
