diff options
author | David Seifert <soap@gentoo.org> | 2016-03-06 23:58:40 +0100 |
---|---|---|
committer | David Seifert <soap@gentoo.org> | 2016-03-07 00:04:55 +0100 |
commit | e4cad4b39c4b1f35a2ffe4a7c747fa1ac1a6f9cc (patch) | |
tree | b95aebdb143d761773c3f87eba17c8b3bdef6046 /sci-mathematics | |
parent | media-libs/babl: Add use flag for CPU feature f16c (bug #576388) (diff) | |
download | gentoo-e4cad4b39c4b1f35a2ffe4a7c747fa1ac1a6f9cc.tar.gz gentoo-e4cad4b39c4b1f35a2ffe4a7c747fa1ac1a6f9cc.tar.bz2 gentoo-e4cad4b39c4b1f35a2ffe4a7c747fa1ac1a6f9cc.zip |
sci-mathematics/calc: Version bump to 2.12.5.4
Gentoo-Bug: 524544
* EAPI=6
Package-Manager: portage-2.2.27
Diffstat (limited to 'sci-mathematics')
-rw-r--r-- | sci-mathematics/calc/Manifest | 1 | ||||
-rw-r--r-- | sci-mathematics/calc/calc-2.12.5.4.ebuild | 61 | ||||
-rw-r--r-- | sci-mathematics/calc/files/calc-2.12.5.4-as-needed.patch | 161 |
3 files changed, 223 insertions, 0 deletions
diff --git a/sci-mathematics/calc/Manifest b/sci-mathematics/calc/Manifest index e8036b091c26..e29e4423f2d3 100644 --- a/sci-mathematics/calc/Manifest +++ b/sci-mathematics/calc/Manifest @@ -3,3 +3,4 @@ DIST calc-2.12.2.2.tar.bz2 864687 SHA256 0a334cd331a4953a86365becce9b9f401b264a5 DIST calc-2.12.4.13.tar.bz2 970778 SHA256 1e6fd3256bd7bf738fcfe6e2d6a9d8a6bb0f37393aba6020b01d96274419a92c SHA512 7b7136c793917652ce2f2b3866b2db16a69dbead729d8a72b8c1359ebb8a4e1d4e7a3a8b214f8e85b9ccf41193ba6ffcb49926cc68f494e2b6cdff58559f2534 WHIRLPOOL 365700655f53eb5efb58ee6fbdf1d123943c2cc6a799318d9a48e2c5b8e0e2e871fd36e54b185442e0a0bc5380644edca1612bbfe7e2506247015743cdb556ee DIST calc-2.12.4.3.tar.bz2 865956 SHA256 a4e7d8a9313e7d28653e2c372fca9b0defdc02f965b833bb43479bbdfee51a92 SHA512 b1ab7724769a39fe5d57715bb6edfe775b9a14ecfe14d9db7adc2ea44d1794b969edbf0d8265dfb30b2be0c022e7ff8af271be8e9bd78faa483e29a31fdf1b88 WHIRLPOOL 2abdacea7f2e363947c9911b38d6787edb75b2a6f5b7088e0b2a16d8f80bef549de2e3c58e4d38a8bf75ebd35ae52dbc0b63bed3b08da63dad742c21d598df5a DIST calc-2.12.4.4.tar.bz2 867180 SHA256 106a0e5dc4da94ec8711a8631cd5d17b3979cde1d248ba9385cdcb862cb1390b SHA512 58be9d70a2c79adeb44d86da6f5f2d04dbf09aaec10ad4e8eed870a7b8de1d4a7cd35b1738ccb5cc64ef5f945e6cfbe1944e27f064541289abe1a4e7f4703690 WHIRLPOOL 1a106ba7b10463aca673329b625721d47a14721467e7847fdbe509b8bf16b4c5829b006240faf58f915abb0f0bf9cbc033289077f20f0c74c2704fb63ccaf340 +DIST calc-2.12.5.4.tar.bz2 956258 SHA256 a776121efe49f3230a293e28682e52ff6d5f2f1896d3a9b474a51de8c890919e SHA512 07c89059d4718b29e649a5198e0bb6c6a6d9c6705a0050ad744146f1649c65d0fb1277a68eb45daca907b08ef9336de2002808a5f9b2312e413eb3afb74d491f WHIRLPOOL 210f259749c7ea5427b7c3698d17cb9af72243e39cde54d1371f246d96a9f9e360f645e8f0ce64514e92275a17756cf57c4757410bd7db192f0767f48676abfd diff --git a/sci-mathematics/calc/calc-2.12.5.4.ebuild b/sci-mathematics/calc/calc-2.12.5.4.ebuild new file mode 100644 index 000000000000..14bfe65800eb --- /dev/null +++ b/sci-mathematics/calc/calc-2.12.5.4.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +inherit 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="" + +RDEPEND=" + sys-libs/ncurses:0= + sys-libs/readline:0=" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +PATCHES=( + "${FILESDIR}/${P}-as-needed.patch" +) + +src_prepare() { + default + 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 $(pkg-config --libs ncurses) -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.5.4-as-needed.patch b/sci-mathematics/calc/files/calc-2.12.5.4-as-needed.patch new file mode 100644 index 000000000000..3e7e03002ac3 --- /dev/null +++ b/sci-mathematics/calc/files/calc-2.12.5.4-as-needed.patch @@ -0,0 +1,161 @@ +--- calc-2.12.5.3/Makefile ++++ calc-2.12.5.3/Makefile +@@ -1136,14 +1136,14 @@ + 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}" +-LIBCALC_SHLIB= -shared "-Wl,-soname,libcalc${LIB_EXT_VERSION}" ++LD_SHARE= ++LIBCUSTCALC_SHLIB= -shared ${LDFLAGS} "-Wl,-soname,libcalc${LIB_EXT_VERSION}" + ifdef ALLOW_CUSTOM +-LIBCUSTCALC_SHLIB= -shared "-Wl,-soname,libcustcalc${LIB_EXT_VERSION}" ++LIBCUSTCALC_SHLIB= -shared ${LDFLAGS} "-Wl,-soname,libcustcalc${LIB_EXT_VERSION}" ++LIBCALC_SHLIB= -shared ${LDFLAGS} "-Wl,-soname,libcalc${LIB_EXT_VERSION}" + else +-LIBCUSTCALC_SHLIB= ++LIBCUSTCALC_SHLIB= -shared ${LDFLAGS} "-Wl,-soname,libcustcalc${LIB_EXT_VERSION}" ++LIBCALC_SHLIB= -shared ${LDFLAGS} "-Wl,-soname,libcalc${LIB_EXT_VERSION}" + endif + # + CC_STATIC= +@@ -1173,7 +1173,6 @@ + BLD_TYPE= calc-dynamic-only + # + CC_SHARE= -fPIC +-DEFAULT_LIB_INSTALL_PATH= ${PWD}:${LIBDIR}:/usr/local/lib + LD_SHARE= ${DARWIN_ARCH} + #SET_INSTALL_NAME= no + SET_INSTALL_NAME= yes +@@ -1249,14 +1248,14 @@ + 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}" +-LIBCALC_SHLIB= -shared "-Wl,-soname,libcalc${LIB_EXT_VERSION}" ++LD_SHARE= ++LIBCUSTCALC_SHLIB= -shared ${LDFLAGS} "-Wl,-soname,libcalc${LIB_EXT_VERSION}" + ifdef ALLOW_CUSTOM +-LIBCUSTCALC_SHLIB= -shared "-Wl,-soname,libcustcalc${LIB_EXT_VERSION}" ++LIBCUSTCALC_SHLIB= -shared ${LDFLAGS} "-Wl,-soname,libcustcalc${LIB_EXT_VERSION}" ++LIBCALC_SHLIB= -shared ${LDFLAGS} "-Wl,-soname,libcalc${LIB_EXT_VERSION}" + else +-LIBCUSTCALC_SHLIB= ++LIBCUSTCALC_SHLIB= -shared ${LDFLAGS} "-Wl,-soname,libcustcalc${LIB_EXT_VERSION}" ++LIBCALC_SHLIB= -shared ${LDFLAGS} "-Wl,-soname,libcalc${LIB_EXT_VERSION}" + endif + # + CC_STATIC= +@@ -1294,12 +1293,10 @@ + 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}" +-LIBCALC_SHLIB= -shared "-Wl,-soname,libcalc${LIB_EXT_VERSION}" ++LD_SHARE= ++LIBCUSTCALC_SHLIB= -shared ${LDFLAGS} "-Wl,-soname,libcalc${LIB_EXT_VERSION}" + ifdef ALLOW_CUSTOM +-LIBCUSTCALC_SHLIB= -shared "-Wl,-soname,libcustcalc${LIB_EXT_VERSION}" ++LIBCUSTCALC_SHLIB= -shared ${LDFLAGS} "-Wl,-soname,libcustcalc${LIB_EXT_VERSION}" + else + LIBCUSTCALC_SHLIB= + endif +@@ -1333,12 +1330,10 @@ + 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}" +-LIBCALC_SHLIB= -shared "-Wl,-soname,libcalc${LIB_EXT_VERSION}" ++LD_SHARE= ++LIBCUSTCALC_SHLIB= -shared ${LDFLAGS} "-Wl,-soname,libcalc${LIB_EXT_VERSION}" + ifdef ALLOW_CUSTOM +-LIBCUSTCALC_SHLIB= -shared "-Wl,-soname,libcustcalc${LIB_EXT_VERSION}" ++LIBCUSTCALC_SHLIB= -shared ${LDFLAGS} "-Wl,-soname,libcustcalc${LIB_EXT_VERSION}" + else + LIBCUSTCALC_SHLIB= + endif +@@ -1370,12 +1365,10 @@ + 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}" +-LIBCALC_SHLIB= -shared "-Wl,-soname,libcalc${LIB_EXT_VERSION}" ++LD_SHARE= ++LIBCUSTCALC_SHLIB= -shared ${LDFLAGS} "-Wl,-soname,libcalc${LIB_EXT_VERSION}" + ifdef ALLOW_CUSTOM +-LIBCUSTCALC_SHLIB= -shared "-Wl,-soname,libcustcalc${LIB_EXT_VERSION}" ++LIBCUSTCALC_SHLIB= -shared ${LDFLAGS} "-Wl,-soname,libcustcalc${LIB_EXT_VERSION}" + else + LIBCUSTCALC_SHLIB= + endif +@@ -1411,11 +1404,9 @@ + 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}" +-LIBCALC_SHLIB= -shared "-Wl,-soname,libcalc${LIB_EXT_VERSION}" +-LIBCUSTCALC_SHLIB= -shared "-Wl,-soname,libcustcalc${LIB_EXT_VERSION}" ++LD_SHARE= ++LIBCUSTCALC_SHLIB= -shared ${LDFLAGS} "-Wl,-soname,libcalc${LIB_EXT_VERSION}" ++LIBCUSTCALC_SHLIB= -shared ${LDFLAGS} "-Wl,-soname,libcustcalc${LIB_EXT_VERSION}" + # + CC_STATIC= + LD_STATIC= +@@ -1470,12 +1461,11 @@ + 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}" +-LIBCALC_SHLIB= -shared "-Wl,-soname,libcalc${LIB_EXT_VERSION}" ++LD_SHARE= ++LIBCUSTCALC_SHLIB= -shared ${LDFLAGS} "-Wl,-soname,libcalc${LIB_EXT_VERSION}" + ifdef ALLOW_CUSTOM + LIBCUSTCALC_SHLIB= -shared "-Wl,-soname,libcustcalc${LIB_EXT_VERSION}" ++LIBCUSTCALC_SHLIB= -shared ${LDFLAGS} "-Wl,-soname,libcustcalc${LIB_EXT_VERSION}" + else + LIBCUSTCALC_SHLIB= + endif +@@ -1510,14 +1500,14 @@ + 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}" +-LIBCALC_SHLIB= -shared "-Wl,-soname,libcalc${LIB_EXT_VERSION}" ++LD_SHARE= ++LIBCUSTCALC_SHLIB= -shared ${LDFLAGS} "-Wl,-soname,libcalc${LIB_EXT_VERSION}" + ifdef ALLOW_CUSTOM +-LIBCUSTCALC_SHLIB= -shared "-Wl,-soname,libcustcalc${LIB_EXT_VERSION}" ++LIBCUSTCALC_SHLIB= -shared ${LDFLAGS} "-Wl,-soname,libcustcalc${LIB_EXT_VERSION}" ++LIBCALC_SHLIB= -shared ${LDFLAGS} "-Wl,-soname,libcalc${LIB_EXT_VERSION}" + else +-LIBCUSTCALC_SHLIB= ++LIBCUSTCALC_SHLIB= -shared ${LDFLAGS} "-Wl,-soname,libcustcalc${LIB_EXT_VERSION}" ++LIBCALC_SHLIB= -shared ${LDFLAGS} "-Wl,-soname,libcalc${LIB_EXT_VERSION}" + endif + # + CC_STATIC= +@@ -2110,7 +2100,7 @@ + + calc${EXT}: .hsrc ${CALCOBJS} ${CALC_DYNAMIC_LIBS} ${MAKE_FILE} + ${RM} -f $@ +- ${CC} ${CALCOBJS} ${LDFLAGS} ${LD_SHARE} ${CALC_DYNAMIC_LIBS} \ ++ ${CC} ${LDFLAGS} ${CALCOBJS} ${LD_SHARE} ${CALC_DYNAMIC_LIBS} \ + ${READLINE_LIB} ${READLINE_EXTRAS} -o $@ + + libcalc${LIB_EXT_VERSION}: ${LIBOBJS} ver_calc${EXT} ${MAKE_FILE} |