pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/mk



Module Name:    pkgsrc
Committed By:   riastradh
Date:           Mon Mar 30 16:51:53 UTC 2020

Modified Files:
        pkgsrc/mk: haskell.mk

Log Message:
New package variable HASKELL_PKG_NAME.

Used to form _HASKELL_PKG_DESCR_DIR.  Defaults to DISTNAME, but for
some packages (hledger, incoming), the same DISTNAME is shared by
multiple packages.  So let the package define it explicitly if need
be.


To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 pkgsrc/mk/haskell.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/mk/haskell.mk
diff -u pkgsrc/mk/haskell.mk:1.16 pkgsrc/mk/haskell.mk:1.17
--- pkgsrc/mk/haskell.mk:1.16   Tue Mar 24 20:43:17 2020
+++ pkgsrc/mk/haskell.mk        Mon Mar 30 16:51:53 2020
@@ -1,4 +1,4 @@
-# $NetBSD: haskell.mk,v 1.16 2020/03/24 20:43:17 joerg Exp $
+# $NetBSD: haskell.mk,v 1.17 2020/03/30 16:51:53 riastradh Exp $
 #
 # This Makefile fragment handles Haskell Cabal packages.
 # See: http://www.haskell.org/cabal/
@@ -108,6 +108,7 @@ BUILD_DEFS+=        HASKELL_ENABLE_HADDOCK_DOCU
 _VARGROUPS+=           haskell
 _DEF_VARS.haskell= \
        HASKELL_OPTIMIZATION_LEVEL \
+       HASKELL_PKG_NAME \
        _DISTBASE \
        _DISTVERSION \
        _GHC_BIN \
@@ -252,7 +253,8 @@ do-build:
 
 # Define install target. We need installed-pkg-config to be installed
 # for package registration (if any).
-_HASKELL_PKG_DESCR_DIR=                ${PREFIX}/lib/${DISTNAME}/${_HASKELL_VERSION}
+HASKELL_PKG_NAME?=             ${DISTNAME}
+_HASKELL_PKG_DESCR_DIR=                ${PREFIX}/lib/${HASKELL_PKG_NAME}/${_HASKELL_VERSION}
 _HASKELL_PKG_DESCR_FILE=       ${_HASKELL_PKG_DESCR_DIR}/package-description
 _HASKELL_PKG_ID_FILE=          ${_HASKELL_PKG_DESCR_DIR}/package-id
 



Home | Main Index | Thread Index | Old Index