diff options
author | Manuel Rüger <mrueg@gentoo.org> | 2014-01-13 05:10:12 +0000 |
---|---|---|
committer | Manuel Rüger <mrueg@gentoo.org> | 2014-01-13 05:10:12 +0000 |
commit | bf49005022d88bb681c7f4d0e018cf0a0ea9dfb7 (patch) | |
tree | f1ab32f2eed68179eb836230c1c62a3c676346c2 /sci-mathematics | |
parent | NMU: Version bump. Fixes bug #471030. (diff) | |
download | gentoo-2-bf49005022d88bb681c7f4d0e018cf0a0ea9dfb7.tar.gz gentoo-2-bf49005022d88bb681c7f4d0e018cf0a0ea9dfb7.tar.bz2 gentoo-2-bf49005022d88bb681c7f4d0e018cf0a0ea9dfb7.zip |
NMU: Version bump. Fixes bug #478496.
(Portage version: 2.2.8/cvs/Linux x86_64, signed Manifest commit with key )
Diffstat (limited to 'sci-mathematics')
-rw-r--r-- | sci-mathematics/calc/ChangeLog | 10 | ||||
-rw-r--r-- | sci-mathematics/calc/calc-2.12.4.13.ebuild | 57 | ||||
-rw-r--r-- | sci-mathematics/calc/files/calc-2.12.4.13-prefix.patch | 87 |
3 files changed, 152 insertions, 2 deletions
diff --git a/sci-mathematics/calc/ChangeLog b/sci-mathematics/calc/ChangeLog index f17bab1e48d0..23807d0309a2 100644 --- a/sci-mathematics/calc/ChangeLog +++ b/sci-mathematics/calc/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for sci-mathematics/calc -# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/calc/ChangeLog,v 1.23 2012/08/09 17:52:26 bicatali Exp $ +# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/calc/ChangeLog,v 1.24 2014/01/13 05:10:11 mrueg Exp $ + +*calc-2.12.4.13 (13 Jan 2014) + + 13 Jan 2014; Manuel Rüger <mrueg@gentoo.org> +calc-2.12.4.13.ebuild, + +files/calc-2.12.4.13-prefix.patch: + NMU: Version bump. Fixes bug #478496. *calc-2.12.4.4 (09 Aug 2012) diff --git a/sci-mathematics/calc/calc-2.12.4.13.ebuild b/sci-mathematics/calc/calc-2.12.4.13.ebuild new file mode 100644 index 000000000000..f4a6a8157dbe --- /dev/null +++ b/sci-mathematics/calc/calc-2.12.4.13.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/calc/calc-2.12.4.13.ebuild,v 1.1 2014/01/13 05:10:11 mrueg Exp $ + +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="~alpha ~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux" + +IUSE="" + +DEPEND=" + sys-libs/ncurses + sys-libs/readline" +RDEPEND="${DEPEND}" + +src_prepare() { + epatch "${FILESDIR}"/${PN}-2.12.4.13-prefix.patch\ + "${FILESDIR}"/2.12.4.0-ldflags.patch + ln -sf libcustcalc.so.${PV} custom/libcustcalc.so || die + 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 +} diff --git a/sci-mathematics/calc/files/calc-2.12.4.13-prefix.patch b/sci-mathematics/calc/files/calc-2.12.4.13-prefix.patch new file mode 100644 index 000000000000..727618c3fe71 --- /dev/null +++ b/sci-mathematics/calc/files/calc-2.12.4.13-prefix.patch @@ -0,0 +1,87 @@ +diff --git a/Makefile b/Makefile +index cc84386..b526442 100644 +--- a/Makefile ++++ b/Makefile +@@ -1143,9 +1143,7 @@ ifeq ($(target),Linux) + BLD_TYPE= calc-dynamic-only + # + CC_SHARE= -fPIC +-DEFAULT_LIB_INSTALL_PATH= ${PWD}:/lib:/usr/lib:${LIBDIR}:/usr/local/lib +-LD_SHARE= "-Wl,-rpath,${DEFAULT_LIB_INSTALL_PATH}" \ +- "-Wl,-rpath-link,${DEFAULT_LIB_INSTALL_PATH}" ++LD_SHARE= + LIBCALC_SHLIB= -shared "-Wl,-soname,libcalc${LIB_EXT_VERSION}" + ifdef ALLOW_CUSTOM + LIBCUSTCALC_SHLIB= -shared "-Wl,-soname,libcustcalc${LIB_EXT_VERSION}" +@@ -1177,9 +1175,8 @@ ifeq ($(target),Darwin) + BLD_TYPE= calc-dynamic-only + # + CC_SHARE= -fPIC +-DEFAULT_LIB_INSTALL_PATH= ${PWD}:${LIBDIR}:/usr/local/lib + LD_SHARE= ${DARWIN_ARCH} +-LIBCALC_SHLIB= -single_module -undefined dynamic_lookup -dynamiclib ++LIBCALC_SHLIB= -single_module -undefined dynamic_lookup -dynamiclib -install_name ${LIBDIR}/libcalc${LIB_EXT_VERSION} + ifdef ALLOW_CUSTOM + LIBCUSTCALC_SHLIB= -single_module -undefined dynamic_lookup -dynamiclib + else +@@ -1196,7 +1193,7 @@ CCWERR= + CCOPT= ${DEBUG} + CCMISC= ${DARWIN_ARCH} + # +-LCC= MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET} gcc ++LCC= gcc + CC= ${PURIFY} ${LCC} ${CCWERR} + # + # Darmin dynamic shared lib filenames +@@ -1211,7 +1208,6 @@ LDCONFIG:= + # DARWIN_ARCH= -arch i386 # Intel binary + # DARWIN_ARCH= -arch ppc # PPC binary + DARWIN_ARCH= # native binary +-MACOSX_DEPLOYMENT_TARGET=10.8 + # + endif + +@@ -1230,9 +1226,7 @@ ifeq ($(target),FreeBSD) + BLD_TYPE= calc-dynamic-only + # + CC_SHARE= -fPIC +-DEFAULT_LIB_INSTALL_PATH= ${PWD}:/lib:/usr/lib:${LIBDIR}:/usr/local/lib +-LD_SHARE= "-Wl,-rpath,${DEFAULT_LIB_INSTALL_PATH}" \ +- "-Wl,-rpath-link,${DEFAULT_LIB_INSTALL_PATH}" ++LD_SHARE= + LIBCALC_SHLIB= -shared "-Wl,-soname,libcalc${LIB_EXT_VERSION}" + ifdef ALLOW_CUSTOM + LIBCUSTCALC_SHLIB= -shared "-Wl,-soname,libcustcalc${LIB_EXT_VERSION}" +@@ -1272,9 +1266,7 @@ ifeq ($(target),OpenBSD) + BLD_TYPE= calc-dynamic-only + # + CC_SHARE= -fPIC +-DEFAULT_LIB_INSTALL_PATH= ${PWD}:/lib:/usr/lib:${LIBDIR}:/usr/local/lib +-LD_SHARE= "-Wl,-rpath,${DEFAULT_LIB_INSTALL_PATH}" \ +- "-Wl,-rpath-link,${DEFAULT_LIB_INSTALL_PATH}" ++LD_SHARE= + LIBCALC_SHLIB= -shared "-Wl,-soname,libcalc${LIB_EXT_VERSION}" + ifdef ALLOW_CUSTOM + LIBCUSTCALC_SHLIB= -shared "-Wl,-soname,libcustcalc${LIB_EXT_VERSION}" +@@ -1347,9 +1339,7 @@ ifeq ($(target),simple) + BLD_TYPE= calc-static-only + # + CC_SHARE= -fPIC +-DEFAULT_LIB_INSTALL_PATH= ${PWD}:/lib:/usr/lib:${LIBDIR}:/usr/local/lib +-LD_SHARE= "-Wl,-rpath,${DEFAULT_LIB_INSTALL_PATH}" \ +- "-Wl,-rpath-link,${DEFAULT_LIB_INSTALL_PATH}" ++LD_SHARE= + LIBCALC_SHLIB= -shared "-Wl,-soname,libcalc${LIB_EXT_VERSION}" + LIBCUSTCALC_SHLIB= -shared "-Wl,-soname,libcustcalc${LIB_EXT_VERSION}" + # +@@ -1403,9 +1393,7 @@ CALCRC= ${CALC_SHAREDIR}/startup;~/.calcrc;./.calcinit + BLD_TYPE= calc-static-only + # + CC_SHARE= -fPIC +-DEFAULT_LIB_INSTALL_PATH= ${PWD}:/lib:/usr/lib:${LIBDIR}:/usr/local/lib +-LD_SHARE= "-Wl,-rpath,${DEFAULT_LIB_INSTALL_PATH}" \ +- "-Wl,-rpath-link,${DEFAULT_LIB_INSTALL_PATH}" ++LD_SHARE= + LIBCALC_SHLIB= -shared "-Wl,-soname,libcalc${LIB_EXT_VERSION}" + ifdef ALLOW_CUSTOM + LIBCUSTCALC_SHLIB= -shared "-Wl,-soname,libcustcalc${LIB_EXT_VERSION}" |