Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 337970 Details for
Bug 455546
sys-libs/zlib as a wrong install_name in the optional minizip library
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
ebuild fixing libminizip*.dylib
zlib-1.2.7.ebuild (text/plain), 3.42 KB, created by
François Bissey
on 2013-02-05 02:58:40 UTC
(
hide
)
Description:
ebuild fixing libminizip*.dylib
Filename:
MIME Type:
Creator:
François Bissey
Created:
2013-02-05 02:58:40 UTC
Size:
3.42 KB
patch
obsolete
># Copyright 1999-2012 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 ># $Header: /var/cvsroot/gentoo-x86/sys-libs/zlib/zlib-1.2.7.ebuild,v 1.12 2012/09/30 17:26:34 armin76 Exp $ > >AUTOTOOLS_AUTO_DEPEND="no" >inherit autotools toolchain-funcs eutils > >DESCRIPTION="Standard (de)compression library" >HOMEPAGE="http://www.zlib.net/" >SRC_URI="http://zlib.net/${P}.tar.gz > http://www.gzip.org/zlib/${P}.tar.gz > http://www.zlib.net/current/beta/${P}.tar.gz" > >LICENSE="ZLIB" >SLOT="0" >KEYWORDS="~ppc-aix ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris ~x86-winnt" >IUSE="minizip static-libs" > >DEPEND="minizip? ( ${AUTOTOOLS_DEPEND} )" >RDEPEND="!<dev-libs/libxml2-2.7.7" #309623 > >src_unpack() { > unpack ${A} > cd "${S}" > > if use minizip ; then > pushd contrib/minizip > /dev/null || die > eautoreconf > popd > /dev/null > fi > > epatch "${FILESDIR}"/${PN}-1.2.7-aix-soname.patch #213277 > > # set soname on Solaris for GNU toolchain > sed -i -e 's:Linux\* | linux\*:Linux\* | linux\* | SunOS\* | solaris\*:' configure || die > # make sure we don't use host libtool on Darwin #419499 > sed -i -e 's:AR="/usr/bin/libtool":AR=libtool:' configure || die >} > >echoit() { echo "$@"; "$@"; } >src_compile() { > tc-export CC > case ${CHOST} in > *-mingw*|mingw*) > emake -f win32/Makefile.gcc STRIP=true prefix="${EPREFIX}"/usr PREFIX=${CHOST}- || die > sed \ > -e 's|@prefix@|/usr|g' \ > -e 's|@exec_prefix@|${prefix}|g' \ > -e 's|@libdir@|${exec_prefix}/'$(get_libdir)'|g' \ > -e 's|@sharedlibdir@|${exec_prefix}/'$(get_libdir)'|g' \ > -e 's|@includedir@|${prefix}/include|g' \ > -e 's|@VERSION@|'${PV}'|g' \ > zlib.pc.in > zlib.pc || die > ;; > *) # not an autoconf script, so can't use econf > local uname=$("${EPREFIX}"/usr/share/gnuconfig/config.sub "${CHOST}" | cut -d- -f3) #347167 > echoit ./configure \ > $(tc-is-static-only && echo "--static" || echo "--shared") \ > --prefix="${EPREFIX}"/usr \ > --libdir="${EPREFIX}"/usr/$(get_libdir) \ > ${uname:+--uname=${uname}} \ > || die > emake || die > ;; > esac > if use minizip ; then > cd contrib/minizip > econf $(use_enable static-libs static) > emake || die > fi >} > >sed_macros() { > # clean up namespace a little #383179 > # we do it here so we only have to tweak 2 files > sed -i -r 's:\<(O[FN])\>:_Z_\1:g' "$@" || die >} >src_install() { > case ${CHOST} in > *-mingw*|mingw*) > emake -f win32/Makefile.gcc install \ > BINARY_PATH="${ED}/usr/bin" \ > LIBRARY_PATH="${ED}/usr/$(get_libdir)" \ > INCLUDE_PATH="${ED}/usr/include" \ > SHARED_MODE=1 \ > || die > insinto /usr/share/pkgconfig > doins zlib.pc || die > ;; > > *) > emake install DESTDIR="${D}" LDCONFIG=: || die > gen_usr_ldscript -a z > ;; > esac > sed_macros "${ED}"/usr/include/*.h > > dodoc FAQ README ChangeLog doc/*.txt > > # on winnt, additionally install the .dll files. > if [[ ${CHOST} == *-winnt* ]]; then > into / > dolib libz$(get_libname ${PV}).dll > fi > > if use minizip ; then > cd contrib/minizip > if [[ ${CHOST} == *-darwin* ]]; then > echo "fix library install name in minizip" > install_name_tool -change \ > "${EPREFIX}"/usr/lib/libz.1.dylib \ > "${EPREFIX}"/lib/libz.1.dylib \ > .libs/libminizip.1.0.0.dylib > fi > emake install DESTDIR="${D}" || die > sed_macros "${ED}"/usr/include/minizip/*.h > dodoc *.txt > fi > > use static-libs || rm -f "${ED}"/usr/$(get_libdir)/lib{z,minizip}.{a,la} #419645 >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 455546
:
337970
|
352302