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 17542139694 for ; Wed, 2 Aug 2017 10:27:16 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 919211FC0B5; Wed, 2 Aug 2017 10:27:10 +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 4471A1FC08D for ; Wed, 2 Aug 2017 10:27:10 +0000 (UTC) Received: from localhost (unknown [IPv6:2a01:e34:eeaa:6bd0:4ecc:6aff:fe03:1cfc]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: aballier) by smtp.gentoo.org (Postfix) with ESMTPSA id CA6713418E6 for ; Wed, 2 Aug 2017 10:27:08 +0000 (UTC) Date: Wed, 2 Aug 2017 12:27:03 +0200 From: Alexis Ballier To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] New eclass: opam.eclass Message-ID: <20170802122703.78503fd5@gentoo.org> In-Reply-To: <20170802120719.136f8021@gentoo.org> References: <20170724172032.0a6623dc@gentoo.org> <1500992290.795.19.camel@gentoo.org> <20170802120719.136f8021@gentoo.org> Organization: Gentoo X-Mailer: Claws Mail 3.15.0-dirty (GTK+ 2.24.31; x86_64-pc-linux-gnu) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Archives-Salt: 84da1894-c1ad-4755-ad2e-15fc52d21530 X-Archives-Hash: b8d0baa5fe32fe9edfec6425aae55435 > > > > > "${pkg}.install" || die > > > done > > > } > > > > > > opam_src_install() { > > > opam-install "${PN}" > > > # Handle opam putting doc in a subdir > > > if [ -d "${ED}/usr/share/doc/${PF}/${PN}" ] ; then > > > > Is PN always the correct subdirectory here? > > yes because opam-install is called for $PN only here and guess what: $PN is not always the proper package name...