Source-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk mk/haskell.mk: clean up _VARGROUPS section and unus...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/4d96e072efb0
branches:  trunk
changeset: 435178:4d96e072efb0
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Wed Jul 01 15:07:25 2020 +0000

description:
mk/haskell.mk: clean up _VARGROUPS section and unused variables

diffstat:

 mk/haskell.mk |  32 ++++++++++++++++++++++----------
 1 files changed, 22 insertions(+), 10 deletions(-)

diffs (76 lines):

diff -r b951b4c2be8d -r 4d96e072efb0 mk/haskell.mk
--- a/mk/haskell.mk     Wed Jul 01 14:58:43 2020 +0000
+++ b/mk/haskell.mk     Wed Jul 01 15:07:25 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: haskell.mk,v 1.26 2020/07/01 14:58:43 rillig Exp $
+# $NetBSD: haskell.mk,v 1.27 2020/07/01 15:07:25 rillig Exp $
 #
 # This Makefile fragment handles Haskell Cabal packages.
 # Package configuration, building, installation, registration and
@@ -56,21 +56,37 @@
 _USER_VARS.haskell= \
        HASKELL_ENABLE_SHARED_LIBRARY \
        HASKELL_ENABLE_LIBRARY_PROFILING \
-       HASKELL_ENABLE_HADDOCK_DOCUMENTATION
+       HASKELL_ENABLE_HADDOCK_DOCUMENTATION \
+       HS_UPDATE_PLIST
 _SYS_VARS.haskell= \
        PKGNAME DISTNAME MASTER_SITES MASTER_SITE_HASKELL_HACKAGE \
        HOMEPAGE UNLIMIT_RESOURCES PREFIX
 _DEF_VARS.haskell= \
        HASKELL_OPTIMIZATION_LEVEL \
        HASKELL_PKG_NAME \
+       USE_LANGUAGES \
+       CONFIGURE_ARGS \
+       PLIST_SUBST \
+       PRINT_PLIST_AWK \
+       GENERATE_PLIST \
+       PLIST_SRC \
+       FILES_SUBST \
+       INSTALLATION_DIRS \
+       INSTALL_TEMPLATES \
+       DEINSTALL_TEMPLATES \
        _HASKELL_VERSION_CMD \
        _HASKELL_BIN \
        _HASKELL_PKG_BIN \
        _HASKELL_PKG_DESCR_FILE \
        _HASKELL_PKG_ID_FILE \
        _HASKELL_VERSION
+_USE_VARS.haskell= \
+       PKG_VERBOSE \
+       BUILDLINK_PREFIX.ghc \
+       PKGDIR DESTDIR \
+       WRKSRC
 _IGN_VARS.haskell= \
-       USE_TOOLS _*
+       USE_TOOLS CONFIGURE_ENV MAKE_ENV WARNINGS _*
 
 PKGNAME?=      hs-${DISTNAME}
 MASTER_SITES?= ${MASTER_SITE_HASKELL_HACKAGE:=${DISTNAME}/}
@@ -97,10 +113,6 @@
 _HASKELL_VERSION_CMD=  ${_HASKELL_BIN} -V 2>/dev/null | ${CUT} -d ' ' -f 8
 _HASKELL_VERSION=      ghc-${_HASKELL_VERSION_CMD:sh}
 
-# Determine GHC shlib suffix
-_HASKELL_SHLIB_SUFFIX.dylib=   dylib
-_HASKELL_SHLIB_SUFFIX=         ${_HASKELL_SHLIB_SUFFIX.${SHLIB_TYPE}:Uso}
-
 # GHC requires C compiler.
 USE_LANGUAGES+=        c
 
@@ -176,12 +188,12 @@
 
 .if ${_HS_PLIST_STATUS} == missing || ${_HS_PLIST_STATUS} == outdated
 .  if ${HS_UPDATE_PLIST} == yes
-GENERATE_PLIST+=       ${MAKE} print-PLIST > ${PKGDIR}/PLIST;
+GENERATE_PLIST+=       ${MAKE} print-PLIST > ${PKGDIR}/PLIST;
 .  endif
-GENERATE_PLIST+= \
+GENERATE_PLIST+=       \
        cd ${DESTDIR:Q}${PREFIX:Q} && \
                ${FIND} * \( -type f -o -type l \) | ${SORT};
-PLIST_SRC=     # none
+PLIST_SRC=             # none
 .endif
 
 .if ${_HS_PLIST_STATUS} == outdated && ${HS_UPDATE_PLIST} == no



Home | Main Index | Thread Index | Old Index