diff options
author | Fabian Groffen <grobian@gentoo.org> | 2011-08-27 10:28:35 +0000 |
---|---|---|
committer | Fabian Groffen <grobian@gentoo.org> | 2011-08-27 10:28:35 +0000 |
commit | 21e1aa9093e3e27c4faf91dd16f1b8f16714be3f (patch) | |
tree | 6a4d9d21e64b1ab227904dae7e98a56e503847ed /sys-libs | |
parent | Bump for #358083 using ebuild from aluco overlay (diff) | |
download | gentoo-2-21e1aa9093e3e27c4faf91dd16f1b8f16714be3f.tar.gz gentoo-2-21e1aa9093e3e27c4faf91dd16f1b8f16714be3f.tar.bz2 gentoo-2-21e1aa9093e3e27c4faf91dd16f1b8f16714be3f.zip |
Fix install_names on Darwin, working around tremendously broken waf-buildsystem, bug #374455, keyworded ~x64-macos
(Portage version: 2.2.01.19074-prefix/cvs/Darwin i386)
Diffstat (limited to 'sys-libs')
-rw-r--r-- | sys-libs/talloc/ChangeLog | 6 | ||||
-rw-r--r-- | sys-libs/talloc/talloc-2.0.5.ebuild | 31 |
2 files changed, 33 insertions, 4 deletions
diff --git a/sys-libs/talloc/ChangeLog b/sys-libs/talloc/ChangeLog index 8870a99ef5bd..7aa81c506286 100644 --- a/sys-libs/talloc/ChangeLog +++ b/sys-libs/talloc/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for sys-libs/talloc # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-libs/talloc/ChangeLog,v 1.26 2011/08/17 16:50:59 chithanh Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-libs/talloc/ChangeLog,v 1.27 2011/08/27 10:28:35 grobian Exp $ + + 27 Aug 2011; Fabian Groffen <grobian@gentoo.org> talloc-2.0.5.ebuild: + Fix install_names on Darwin, working around tremendously broken + waf-buildsystem, bug #374455, keyworded ~x64-macos 17 Aug 2011; Chí-Thanh Christopher Nguyễn <chithanh@gentoo.org> talloc-2.0.5.ebuild: diff --git a/sys-libs/talloc/talloc-2.0.5.ebuild b/sys-libs/talloc/talloc-2.0.5.ebuild index a4d9ac7a1420..6ee6326e8f14 100644 --- a/sys-libs/talloc/talloc-2.0.5.ebuild +++ b/sys-libs/talloc/talloc-2.0.5.ebuild @@ -1,10 +1,10 @@ # Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-libs/talloc/talloc-2.0.5.ebuild,v 1.8 2011/08/17 16:50:59 chithanh Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-libs/talloc/talloc-2.0.5.ebuild,v 1.9 2011/08/27 10:28:35 grobian Exp $ EAPI=3 PYTHON_DEPEND="python? 2:2.6" -inherit waf-utils python +inherit waf-utils python multilib DESCRIPTION="Samba talloc library" HOMEPAGE="http://talloc.samba.org/" @@ -12,7 +12,7 @@ SRC_URI="http://samba.org/ftp/${PN}/${P}.tar.gz" LICENSE="GPL-3" SLOT="0" -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~sparc-solaris" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~x64-macos ~sparc-solaris" IUSE="compat python" RDEPEND="!!<sys-libs/talloc-2.0.5" @@ -35,3 +35,28 @@ src_configure() { waf-utils_src_configure \ ${extra_opts} } + +src_install() { + waf-utils_src_install + + # waf is stupid, and no, we can't fix the build-system, since it's provided + # as a brilliant binary blob thats decompressed on the fly + if [[ ${CHOST} == *-darwin* ]] ; then + install_name_tool \ + -id "${EPREFIX}"/usr/$(get_libdir)/libtalloc.2.dylib \ + "${ED}"/usr/$(get_libdir)/libtalloc.2.0.5.dylib || die + if use python ; then + install_name_tool \ + -id "${EPREFIX}"/usr/$(get_libdir)/libpytalloc-util.2.dylib \ + "${ED}"/usr/$(get_libdir)/libpytalloc-util.2.0.5.dylib || die + install_name_tool \ + -change "${S}/bin/default/libtalloc.dylib" \ + "${EPREFIX}"/usr/$(get_libdir)/libtalloc.2.dylib \ + "${ED}"/usr/$(get_libdir)/libpytalloc-util.2.0.5.dylib || die + install_name_tool \ + -change "${S}/bin/default/libtalloc.dylib" \ + "${EPREFIX}"/usr/$(get_libdir)/libtalloc.2.dylib \ + "${ED}"$(python_get_sitedir)/talloc.bundle || die + fi + fi +} |