Date: Tue, 25 Feb 2020 11:37:04 +0400 From: Gleb Popov <arrowd@freebsd.org> To: Yuri <yuri@rawbw.com> Cc: freebsd-haskell@freebsd.org Subject: Re: How to port a Haskell project that doesn't use cabal, and uses stack instead? Message-ID: <CALH631kHgy0qNNFd4stYp_uMv7iAKAWfBJciK=5BL_tdU4_Rqw@mail.gmail.com> In-Reply-To: <f3ff0560-544a-c83c-d1f1-41d96aedf165@rawbw.com> References: <09e95df1-c606-9be8-2117-cbf93c52f71a@rawbw.com> <CALH631nKzr%2Bxguu0Vm%2BZ3WuvXyCCWcmT3oob=ZDW0y7r8SWAXw@mail.gmail.com> <f3ff0560-544a-c83c-d1f1-41d96aedf165@rawbw.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Feb 25, 2020 at 10:54 AM Yuri <yuri@rawbw.com> wrote: > On 2020-02-24 02:09, Gleb Popov wrote: > > > > This project has "package.yaml" file. It is a file for hpack program, > > which can be turned into a proper .cabal file. Start with > > > > USES=cabal:hpack > > > > Other than that, you'll need to add USE_GITHUB=yes to make the > > distfile fetch from GitHub. > > > It fails: > > cabal: Internal error in target matching. It should always be possible > to find > a syntax that's sufficiently qualified to give an unambiguous match. > However > when matching 'exe:alchemy' we found exe:alchemy (unknown-component) which > does not have an unambiguous syntax. The possible syntax and the targets > they > match are as follows: > 'exe:alchemy' which matches exe:alchemy (unknown-component), > :pkg:exe:lib:exe:file:alchemy (unknown-file) > According to package.yaml, the only executable provided by the package is called "alchemy-homomrlwr". cabal.mk defaults to EXECUTABLES=${PORTNAME}, so you have to override it in this case. > > Yuri > > > > > PORTNAME= alchemy > PORTVERSION= g20200223 > CATEGORIES= security haskell > > MAINTAINER= haskell@FreeBSD.org > COMMENT= X > > LICENSE= BSD3CLAUSE > > USES= cabal:hpack > USE_GITHUB= yes > GH_ACCOUNT= cpeikert > GH_PROJECT= ALCHEMY > GH_TAGNAME= 76b9fd7 > > .include <bsd.port.mk> > >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CALH631kHgy0qNNFd4stYp_uMv7iAKAWfBJciK=5BL_tdU4_Rqw>