Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Feb 2020 19:59:16 -0800
From:      Yuri <yuri@rawbw.com>
To:        Gleb Popov <arrowd@freebsd.org>
Cc:        freebsd-haskell@freebsd.org
Subject:   Re: How to port a Haskell project that doesn't use cabal, and uses stack instead?
Message-ID:  <34a9050d-597e-3f74-0c1a-5c3ecf18980c@rawbw.com>
In-Reply-To: <CALH631kHgy0qNNFd4stYp_uMv7iAKAWfBJciK=5BL_tdU4_Rqw@mail.gmail.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>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <http://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>




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?34a9050d-597e-3f74-0c1a-5c3ecf18980c>