diff options
author | Justin Lecher <jlec@gentoo.org> | 2010-06-15 15:43:49 +0000 |
---|---|---|
committer | Justin Lecher <jlec@gentoo.org> | 2010-06-15 15:43:49 +0000 |
commit | 15318cdfb545db7c6fec2fa1a5d11f7e2632eded (patch) | |
tree | 7f1a2380bc2726807530dda536f9255d5ca4d8ab /sci-mathematics | |
parent | Version bump. (diff) | |
download | gentoo-2-15318cdfb545db7c6fec2fa1a5d11f7e2632eded.tar.gz gentoo-2-15318cdfb545db7c6fec2fa1a5d11f7e2632eded.tar.bz2 gentoo-2-15318cdfb545db7c6fec2fa1a5d11f7e2632eded.zip |
Imported prefix changes, respecting LDFLAGS now, linking correctly
(Portage version: 2.2_rc67/cvs/Linux x86_64)
Diffstat (limited to 'sci-mathematics')
-rw-r--r-- | sci-mathematics/calc/ChangeLog | 9 | ||||
-rw-r--r-- | sci-mathematics/calc/calc-2.12.4.0-r1.ebuild | 53 | ||||
-rw-r--r-- | sci-mathematics/calc/files/2.12.4.0-ldflags.patch | 101 | ||||
-rw-r--r-- | sci-mathematics/calc/files/calc-2.12.4.0-prefix.patch | 96 |
4 files changed, 258 insertions, 1 deletions
diff --git a/sci-mathematics/calc/ChangeLog b/sci-mathematics/calc/ChangeLog index c40f4d23f9ac..168ea3ebcc84 100644 --- a/sci-mathematics/calc/ChangeLog +++ b/sci-mathematics/calc/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for sci-mathematics/calc # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/calc/ChangeLog,v 1.20 2010/01/07 17:21:15 bicatali Exp $ +# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/calc/ChangeLog,v 1.21 2010/06/15 15:43:48 jlec Exp $ + +*calc-2.12.4.0-r1 (15 Jun 2010) + + 15 Jun 2010; Justin Lecher <jlec@gentoo.org> + +files/2.12.4.0-ldflags.patch, +calc-2.12.4.0-r1.ebuild, + +files/calc-2.12.4.0-prefix.patch: + Imported prefix changes, respecting LDFLAGS now, linking correctly 07 Jan 2010; Sébastien Fabbro <bicatali@gentoo.org> calc-2.12.4.0.ebuild: Added quotes diff --git a/sci-mathematics/calc/calc-2.12.4.0-r1.ebuild b/sci-mathematics/calc/calc-2.12.4.0-r1.ebuild new file mode 100644 index 000000000000..42161658423f --- /dev/null +++ b/sci-mathematics/calc/calc-2.12.4.0-r1.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2010 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.0-r1.ebuild,v 1.1 2010/06/15 15:43:48 jlec Exp $ + +EAPI="3" + +inherit eutils multilib toolchain-funcs + +DESCRIPTION="An arbitrary precision C-like arithmetic system" +HOMEPAGE="http://www.isthe.com/chongo/tech/comp/calc/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2" + +SLOT="0" +LICENSE="LGPL-2" +KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux" + +IUSE="" + +DEPEND=" + >=sys-libs/ncurses-5.2 + >=sys-libs/readline-4.2" +RDEPEND="${DEPEND}" + +src_prepare() { + epatch "${FILESDIR}"/${P}-prefix.patch + epatch "${FILESDIR}"/${PV}-ldflags.patch + ln -sf libcustcalc.so.${PV} custom/libcustcalc.so +} + +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 || die "emake failed" +} + +src_test() { + if echo "${LD_PRELOAD}" | grep -q "sandbox"; then + ewarn "Can't run check when running in sandbox - see bug #59676" + else + make chk || die "Check failed" + fi +} + +src_install() { + emake T="${D}" LIBDIR="${EPREFIX}/usr/$(get_libdir)" install || die "emake install failed" + dodoc BUGS CHANGES LIBRARY README +} diff --git a/sci-mathematics/calc/files/2.12.4.0-ldflags.patch b/sci-mathematics/calc/files/2.12.4.0-ldflags.patch new file mode 100644 index 000000000000..0f2b67d2c084 --- /dev/null +++ b/sci-mathematics/calc/files/2.12.4.0-ldflags.patch @@ -0,0 +1,101 @@ +diff --git a/Makefile b/Makefile +index b526442..baa8273 100644 +--- a/Makefile ++++ b/Makefile +@@ -1144,11 +1144,13 @@ BLD_TYPE= calc-dynamic-only + # + CC_SHARE= -fPIC + LD_SHARE= +-LIBCALC_SHLIB= -shared "-Wl,-soname,libcalc${LIB_EXT_VERSION}" ++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= +@@ -1227,9 +1229,9 @@ BLD_TYPE= calc-dynamic-only + # + CC_SHARE= -fPIC + LD_SHARE= +-LIBCALC_SHLIB= -shared "-Wl,-soname,libcalc${LIB_EXT_VERSION}" ++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 +@@ -1267,9 +1269,9 @@ BLD_TYPE= calc-dynamic-only + # + CC_SHARE= -fPIC + LD_SHARE= +-LIBCALC_SHLIB= -shared "-Wl,-soname,libcalc${LIB_EXT_VERSION}" ++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 +@@ -1304,9 +1306,9 @@ 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 ${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 +@@ -1340,8 +1342,8 @@ BLD_TYPE= calc-static-only + # + CC_SHARE= -fPIC + LD_SHARE= +-LIBCALC_SHLIB= -shared "-Wl,-soname,libcalc${LIB_EXT_VERSION}" +-LIBCUSTCALC_SHLIB= -shared "-Wl,-soname,libcustcalc${LIB_EXT_VERSION}" ++LIBCUSTCALC_SHLIB= -shared ${LDFLAGS} "-Wl,-soname,libcalc${LIB_EXT_VERSION}" ++LIBCUSTCALC_SHLIB= -shared ${LDFLAGS} "-Wl,-soname,libcustcalc${LIB_EXT_VERSION}" + # + CC_STATIC= + LD_STATIC= +@@ -1394,9 +1396,9 @@ BLD_TYPE= calc-static-only + # + CC_SHARE= -fPIC + LD_SHARE= +-LIBCALC_SHLIB= -shared "-Wl,-soname,libcalc${LIB_EXT_VERSION}" ++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 +@@ -1431,9 +1433,9 @@ 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 ${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 +@@ -2002,7 +2004,7 @@ calc-static-only: ${STATIC_FIRST_TARGETS} ${EARLY_TARGETS} \ + + 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} diff --git a/sci-mathematics/calc/files/calc-2.12.4.0-prefix.patch b/sci-mathematics/calc/files/calc-2.12.4.0-prefix.patch new file mode 100644 index 000000000000..68d057212c74 --- /dev/null +++ b/sci-mathematics/calc/files/calc-2.12.4.0-prefix.patch @@ -0,0 +1,96 @@ +diff --git a/Makefile b/Makefile +index cc84386..b526442 100644 +--- a/Makefile ++++ b/Makefile +@@ -959,7 +959,7 @@ LD_DEBUG= + # + # If in doubt, use CALC_ENV= CALCPATH=./cal LD_LIBRARY_PATH=.:./custom + # +-CALC_ENV= CALCPATH=./cal LD_LIBRARY_PATH=. ++CALC_ENV= CALCPATH=./cal LD_LIBRARY_PATH=. DYLD_LIBRARY_PATH=. + #CALC_ENV= CALCPATH=./cal MALLOC_VERBOSE=1 MALLOC_TRACING=1 \ + # MALLOC_FASTCHK=1 MALLOC_FULLWARN=1 LD_LIBRARY_PATH=.:./custom + #CALC_ENV= CALCPATH=./cal MALLOC_VERBOSE=1 MALLOC_TRACING=1 \ +@@ -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.4 + # + 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}" |