From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 0B1671382C5 for ; Sun, 13 Dec 2020 12:21:30 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5286BE0BE0; Sun, 13 Dec 2020 12:21:29 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 35EEBE0BE0 for ; Sun, 13 Dec 2020 12:21:29 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id B59A2335C3F for ; Sun, 13 Dec 2020 12:21:27 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 41E844B for ; Sun, 13 Dec 2020 12:21:26 +0000 (UTC) From: "Fabian Groffen" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Fabian Groffen" Message-ID: <1607862083.9fbd0503890b6bcb86d6d2aeca964bb12de0700d.grobian@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/liblinear/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-libs/liblinear/liblinear-241.ebuild X-VCS-Directories: dev-libs/liblinear/ X-VCS-Committer: grobian X-VCS-Committer-Name: Fabian Groffen X-VCS-Revision: 9fbd0503890b6bcb86d6d2aeca964bb12de0700d X-VCS-Branch: master Date: Sun, 13 Dec 2020 12:21:26 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 7ba95845-14f5-4e14-b9b9-2b470ca553ac X-Archives-Hash: 3c98d0929948431d303679a290a85609 commit: 9fbd0503890b6bcb86d6d2aeca964bb12de0700d Author: Fabian Groffen gentoo org> AuthorDate: Sun Dec 13 12:21:02 2020 +0000 Commit: Fabian Groffen gentoo org> CommitDate: Sun Dec 13 12:21:23 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9fbd0503 dev-libs/liblinear-241: fix compilation/install on Darwin Closes: https://bugs.gentoo.org/599596 Package-Manager: Portage-3.0.9, Repoman-3.0.2 Signed-off-by: Fabian Groffen gentoo.org> dev-libs/liblinear/liblinear-241.ebuild | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/dev-libs/liblinear/liblinear-241.ebuild b/dev-libs/liblinear/liblinear-241.ebuild index d5be92f8f8d..94375db456f 100644 --- a/dev-libs/liblinear/liblinear-241.ebuild +++ b/dev-libs/liblinear/liblinear-241.ebuild @@ -26,6 +26,12 @@ src_prepare() { -e '/^CFLAGS/d;/^CXXFLAGS/d' \ -e 's|$${SHARED_LIB_FLAG}|& $(LDFLAGS)|g' \ Makefile || die + + # fix install_name on Darwin + sed -i \ + -e '/install_name/s:liblinear.so.$(SHVER):'"${EPREFIX}"'/usr/lib/liblinear.$(SHVER).dylib:' \ + -e '/LDFLAGS/s:liblinear.so.$(SHVER):liblinear'"$(get_libname '$(SHVER)')"':' \ + Makefile || die } src_compile() { @@ -40,8 +46,8 @@ src_compile() { } src_install() { - dolib.so ${PN}.so.4 - dosym ${PN}.so.4 /usr/$(get_libdir)/${PN}.so + dolib.so ${PN}$(get_libname 4) + dosym ${PN}$(get_libname 4) /usr/$(get_libdir)/${PN}$(get_libname) newbin predict ${PN}-predict newbin train ${PN}-train