Gentoo Archives: gentoo-dev

From: Alexis Ballier <aballier@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] New eclass: opam.eclass
Date: Wed, 02 Aug 2017 10:27:16
Message-Id: 20170802122703.78503fd5@gentoo.org
In Reply to: Re: [gentoo-dev] New eclass: opam.eclass by Alexis Ballier
1 > >
2 > > > "${pkg}.install" || die
3 > > > done
4 > > > }
5 > > >
6 > > > opam_src_install() {
7 > > > opam-install "${PN}"
8 > > > # Handle opam putting doc in a subdir
9 > > > if [ -d "${ED}/usr/share/doc/${PF}/${PN}" ] ; then
10 > >
11 > > Is PN always the correct subdirectory here?
12 >
13 > yes because opam-install is called for $PN only here
14
15
16 and guess what: $PN is not always the proper package name...