Skip to content

Commit

Permalink
Remove ghc.port.mk (copy the relevant parts into ghc/Makefile)
Browse files Browse the repository at this point in the history
  • Loading branch information
blackgnezdo committed Oct 30, 2020
1 parent 3b78d87 commit 2e81306
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 155 deletions.
20 changes: 10 additions & 10 deletions lang/ghc/Makefile
Expand Up @@ -11,16 +11,16 @@ COMMENT = compiler for the functional language Haskell
# ghc hardcodes ${WRKDIR}/bin/gcc when the package is compiled with ccache
NO_CCACHE = Yes

DISTNAME = ghc-${MODGHC_VER}
GHC_VER = 8.10.2
DISTNAME = ghc-${GHC_VER}
CATEGORIES = lang devel
HOMEPAGE = https://www.haskell.org/ghc/

# Version of the precompiled binaries
BIN_VER = 8.6.4.20200921

# Pull in lang/ghc to get MODGHC_VER and ONLY_FOR_ARCHS, which is maintained
# in ghc.port.mk. lang/python needed for regression tests.
MODULES = lang/ghc lang/python
# lang/python needed for regression tests.
MODULES = lang/python

MODPY_BUILDDEP = No
MODPY_RUNDEP = No
Expand All @@ -47,16 +47,16 @@ RUN_DEPENDS =
# loadObj_() instead.
USE_WXNEEDED = special

MASTER_SITES = ${HOMEPAGE}dist/${MODGHC_VER}/ \
MASTER_SITES = ${HOMEPAGE}dist/${GHC_VER}/ \
${HOMEPAGE}dist/stable/dist/
MASTER_SITES0 = https://openbsd.dead-parrot.de/distfiles/

DIST_SUBDIR = ghc

BINDISTFILE = ${BINDISTFILE-${MACHINE_ARCH}}

DISTFILES = ghc-${MODGHC_VER}-src.tar.xz \
ghc-${MODGHC_VER}-testsuite.tar.xz \
DISTFILES = ghc-${GHC_VER}-src.tar.xz \
ghc-${GHC_VER}-testsuite.tar.xz \
${BINDISTFILE}

.for m in amd64 i386
Expand Down Expand Up @@ -225,11 +225,11 @@ _bootstrap_prepare:
echo ${BOOTSTRAP_DATE} > ${WRKSRC}/VERSION_DATE

_bootstrap_finish:
mkdir -p ${WRKBUILD}/ghc-${MODGHC_VER}.${BOOTSTRAP_DATE}-shlibs-$$(arch -s)
mkdir -p ${WRKBUILD}/ghc-${GHC_VER}.${BOOTSTRAP_DATE}-shlibs-$$(arch -s)
ldd ${WRKBUILD}/ghc/stage2/build/tmp/ghc-stage2 | \
awk '$$NF ~ /^\/usr\/(local\/)?lib\// { print $$NF }' | \
xargs -J % cp -p % ${WRKBUILD}/ghc-${MODGHC_VER}.${BOOTSTRAP_DATE}-shlibs-$$(arch -s)
xargs -J % cp -p % ${WRKBUILD}/ghc-${GHC_VER}.${BOOTSTRAP_DATE}-shlibs-$$(arch -s)
cd ${WRKBUILD} && \
pax -wzf ghc-${MODGHC_VER}.${BOOTSTRAP_DATE}-shlibs-$$(arch -s){.tar.gz,}
pax -wzf ghc-${GHC_VER}.${BOOTSTRAP_DATE}-shlibs-$$(arch -s){.tar.gz,}

.include <bsd.port.mk>
145 changes: 0 additions & 145 deletions lang/ghc/ghc.port.mk

This file was deleted.

0 comments on commit 2e81306

Please sign in to comment.