head	1.1;
access;
symbols
	pkgsrc-2026Q1:1.1.0.10
	pkgsrc-2026Q1-base:1.1
	pkgsrc-2025Q4:1.1.0.8
	pkgsrc-2025Q4-base:1.1
	pkgsrc-2025Q3:1.1.0.6
	pkgsrc-2025Q3-base:1.1
	pkgsrc-2025Q2:1.1.0.4
	pkgsrc-2025Q2-base:1.1
	pkgsrc-2025Q1:1.1.0.2
	pkgsrc-2025Q1-base:1.1;
locks; strict;
comment	@# @;


1.1
date	2025.01.29.13.21.52;	author pho;	state Exp;
branches;
next	;
commitid	BioNou7xEmeVNnHF;


desc
@@


1.1
log
@lang/ghc910: import ghc-9.10.1

GHC: The Glasgow Haskell Compiler.

The Glasgow Haskell Compiler is a robust, fully-featured, optimising
compiler for the functional programming language Haskell 98
(http://www.haskell.org). GHC compiles Haskell to either native code
or C. It implements numerous experimental language extensions to
Haskell, including concurrency, a foreign language interface, several
type-system extensions, exceptions, and so on. GHC comes with a
generational garbage collector, a space and time profiler, and a
comprehensive set of libraries.

This package provides the 9.10.x release series.
@
text
@#!/bin/sh
set -eu

# This script extracts the package DB originally came from GHC you are
# using. Only needed when you create a hadrian bootstrap archive.

if [ "$#" -lt 1 ]; then
    echo >&2 "Usage: $0 PKG_DB_DIR"
    exit
fi
PKG_DB_DIR="$1"

mkdir -p "$PKG_DB_DIR"
pkg_info -qL ghc | {
    conf_dir_path=
    while read path; do
        conf_dir_removed="${path#*/package.conf.d/}"
        if [ "$conf_dir_removed" != "$path" ]; then
            echo "Copying ${path}..."
            if [ "$conf_dir_path" = "" ]; then
                conf_dir_path="${path%/${conf_dir_removed}}"
            fi
            sed -e "s|\\\${pkgroot}|${conf_dir_path}/..|g" \
                < "${path}" \
                > "${PKG_DB_DIR}/${conf_dir_removed}"
        fi
    done
}
ghc-pkg --package-db="$PKG_DB_DIR" recache
@
