Date: Thu, 27 Feb 2020 12:46:59 +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: <CALH631n1GgB==O3iVkZ0j2SxPfx5iwnsUY=76UaMyV60WRemxw@mail.gmail.com> In-Reply-To: <34a9050d-597e-3f74-0c1a-5c3ecf18980c@rawbw.com> References: <09e95df1-c606-9be8-2117-cbf93c52f71a@rawbw.com> <CALH631nKzr%2Bxguu0Vm%2BZ3WuvXyCCWcmT3oob=ZDW0y7r8SWAXw@mail.gmail.com> <f3ff0560-544a-c83c-d1f1-41d96aedf165@rawbw.com> <CALH631kHgy0qNNFd4stYp_uMv7iAKAWfBJciK=5BL_tdU4_Rqw@mail.gmail.com> <34a9050d-597e-3f74-0c1a-5c3ecf18980c@rawbw.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Feb 26, 2020 at 7:59 AM Yuri <yuri@rawbw.com> wrote: > On 2020-02-24 23:37, Gleb Popov wrote: > > 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. > > > It needs a bundled project: > > cabal: Could not resolve dependencies: > [__0] trying: alchemy-0.1.0 (user goal) > [__1] unknown package: lol-cpp (dependency of alchemy) > > > However, adding > GH_TUPLE=cpeikert:Lol:60d7b3d38fc4279a60d6932a433ed2e4c22cc287 doesn't help > because it doesn't get extracted when USES=cabal:hpack is present for some > reason. > > > Also, the same tarball is listed twice in distinfo: > > SHA256 (cabal/alchemy-g20200223.tar.gz) = > 8f00114a75e57f7302237fd7664a9192e9cd6d8510f91bc119ea6e5fcd5a09e0 > SIZE (cabal/alchemy-g20200223.tar.gz) = 41624 > SHA256 (cabal/cpeikert-ALCHEMY-g20200223-76b9fd7_GH0.tar.gz) = > 8f00114a75e57f7302237fd7664a9192e9cd6d8510f91bc119ea6e5fcd5a09e0 > SIZE (cabal/cpeikert-ALCHEMY-g20200223-76b9fd7_GH0.tar.gz) = 41624 > > > Yuri > > > > PORTNAME= alchemy > PORTVERSION= g20200223 > CATEGORIES= security haskell > > MAINTAINER= yuri@FreeBSD.org > COMMENT= X > > LICENSE= BSD3CLAUSE > > USES= cabal:hpack > USE_GITHUB= yes > GH_ACCOUNT= cpeikert > GH_PROJECT= ALCHEMY > GH_TAGNAME= 76b9fd7 > #GH_TUPLE= cpeikert:Lol:60d7b3d38fc4279a60d6932a433ed2e4c22cc287 > > EXECUTABLES= alchemy-homomrlwr > > .include <bsd.port.mk> > > After adding USES=cabal:hpack you have to follow usual procedure for generating USE_CABAL (make cabal-extract-deps, make make-use-cabal, etc.)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CALH631n1GgB==O3iVkZ0j2SxPfx5iwnsUY=76UaMyV60WRemxw>