pkgsrc-WIP-changes archive

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

Initial commit for ghc701



Module Name:	pkgsrc-wip
Committed By:	Sandro Millien <sandro.r.millien%gmail.com@localhost>
Pushed By:	raizen
Date:		Tue Dec 27 13:33:53 2016 -0400
Changeset:	766277d9090ecf4f6a1739b2f95c6b8760b9d080

Added Files:
	ghc710/DESCR
	ghc710/Makefile
	ghc710/README
	ghc710/distinfo

Log Message:
Initial commit for ghc701

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=766277d9090ecf4f6a1739b2f95c6b8760b9d080

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

diffstat:
 ghc710/DESCR    | 10 +++++++
 ghc710/Makefile | 86 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 ghc710/README   |  8 ++++++
 ghc710/distinfo | 10 +++++++
 4 files changed, 114 insertions(+)

diffs:
diff --git a/ghc710/DESCR b/ghc710/DESCR
new file mode 100644
index 0000000..2f6a085
--- /dev/null
+++ b/ghc710/DESCR
@@ -0,0 +1,10 @@
+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.
diff --git a/ghc710/Makefile b/ghc710/Makefile
new file mode 100644
index 0000000..8fa1c14
--- /dev/null
+++ b/ghc710/Makefile
@@ -0,0 +1,86 @@
+# $NetBSD$
+
+DISTNAME=	ghc-7.10.3-src
+PKGNAME=	ghc710-7.10.3
+CATEGORIES=	lang
+MASTER_SITES=	http://www.haskell.org/ghc/dist/${PKGVERSION_NOREV}/
+EXTRACT_SUFX=	.tar.xz
+DISTFILES=	ghc-7.10.3-src.tar.xz
+DISTFILES+=	ghc-7.10.3-testsuite.tar.xz
+
+
+MAINTAINER=			sandro.r.millien%gmail.com@localhost
+HOMEPAGE=			http://www.haskell.org/ghc/
+COMMENT=			Compiler for the functional language Haskell
+LICENSE=			modified-bsd
+
+
+
+WRKSRC=				${WRKDIR}/ghc-7.10.3
+
+GHC_SUBPREFIX=		ghc710
+
+GNU_CONFIGURE=		yes
+USE_GNU_CONFIGURE_HOST=	no
+USE_LIBTOOL=		yes
+USE_TOOLS+=		autoconf gmake perl:run
+USE_LANGUAGES=		c
+GNU_CONFIGURE_PREFIX=	${GHC_PREFIX}
+
+.include "../../mk/bsd.prefs.mk"
+
+GHC_PREFIX=			${PREFIX}/${GHC_SUBPREFIX}
+CFLAGS+=			-fPIC
+LDFLAGS+=			${COMPILER_RPATH_FLAG}${PREFIX}/lib  -L${PREFIX}/lib
+LDFLAGS+=			${COMPILER_RPATH_FLAG}${GHC_PREFIX}/lib  -L${GHC_PREFIX}/lib
+
+
+CONFIGURE_ARGS+=	--with-gcc=${CC:Q}
+CONFIGURE_ARGS+=	--prefix=${GHC_PREFIX:M*:Q}
+CONFIGURE_ARGS+=	--with-iconv-includes=${BUILDLINK_PREFIX.iconv}/include
+CONFIGURE_ARGS+=	--with-iconv-libraries=${BUILDLINK_PREFIX.iconv}/lib
+CONFIGURE_ARGS+=	--with-curses-includes=${BUILDLINK_PREFIX.curses}/include
+CONFIGURE_ARGS+=	--with-curses-libraries=${BUILDLINK_PREFIX.curses}/lib
+
+
+CONFIGURE_ENV+=		ac_cv_path_fp_prog_ar=${AR:Q}
+CONFIGURE_ENV+=		PerlCmd=${PERL5:Q}
+
+.for stage in 0 1 3
+CONFIGURE_ENV+=		CONF_CC_OPTS_STAGE${stage}=${CFLAGS:M*:Q}
+CONFIGURE_ENV+=		CONF_GCC_LINKER_OPTS_STAGE${stage}=${CFLAGS:M*:Q}
+CONFIGURE_ENV+=		CONF_LD_LINKER_OPTS_STAGE${stage}=${LDFLAGS:M*:Q}
+.endfor
+
+
+
+do-configure:
+	#${RUN} cd ${WRKSRC} && ./boot
+	${RUN} cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} ${SH} ${CONFIGURE_SCRIPT} ${CONFIGURE_ARGS}
+
+
+# We can't use static PLIST because the package installs some files whose
+# names are randomly generated (e.g. lib/${PKGNAME}/package.conf.d/*.conf)
+GENERATE_PLIST+= \
+	cd ${DESTDIR}/${PREFIX} && \
+		${FIND} * \( -type f -o -type l \) | ${SORT} -d;
+
+CHECK_SHLIBS_SKIP+=		ghc710/*/libHS*-ghc${PKGVERSION_NOREV}.*
+CHECK_SHLIBS_SKIP+=		ghc710/lib/ghc-${PKGVERSION_NOREV}/*
+
+.include "../../mk/bsd.prefs.mk"
+
+.include "../../converters/libiconv/buildlink3.mk"
+.include "../../lang/ghc7/buildlink3.mk"
+.include "../../devel/gmp/buildlink3.mk"
+.include "../../devel/binutils/buildlink3.mk"
+.include "../../devel/libffi/buildlink3.mk"
+.include "../../lang/llvm/buildlink3.mk"
+.include "../../lang/libLLVM/buildlink3.mk"
+.include "../../lang/clang/buildlink3.mk"
+.include "../../mk/curses.buildlink3.mk"
+.include "../../textproc/libxslt/buildlink3.mk"
+.include "../../textproc/hs-hscolour/buildlink3.mk"
+.include "../../mk/pthread.buildlink3.mk"
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/ghc710/README b/ghc710/README
new file mode 100644
index 0000000..2ab27c3
--- /dev/null
+++ b/ghc710/README
@@ -0,0 +1,8 @@
+This package was forked from wip/ghc because wip/ghc doesn't build.
+
+The idea with this package is to use lang/ghc7 (which is a ghc 7.6.3) to build
+wip/ghc710 (which is ghc 7.10.3) and then use wip/ghc710 to build wip/ghc8
+(which is ghc 8.0.1) as ghc version 7.8 or later is required in order to build ghc 8.0.1.
+
+We already have lang/ghc7 in pkgsrc that manages to bootstrap and build. We use it to build
+ghc 7.10.3, which will be used to build ghc 8.0.1
diff --git a/ghc710/distinfo b/ghc710/distinfo
new file mode 100644
index 0000000..4491627
--- /dev/null
+++ b/ghc710/distinfo
@@ -0,0 +1,10 @@
+$NetBSD$
+
+SHA1 (ghc-7.10.3-src.tar.xz) = 471a3df55c7f5ac6be75109d0c29de97842b98e9
+RMD160 (ghc-7.10.3-src.tar.xz) = 993a69f761e608fa2424d72a48509ff6247a2ed9
+SHA512 (ghc-7.10.3-src.tar.xz) = a39700ec6cb3396639c8d5349590d56d685777adabdec8ff6877dbce9f5f66daaab27fce205fdf3cceb6219b0a901b7cbe25b6fa228f765c725423b3c36e52b1
+Size (ghc-7.10.3-src.tar.xz) = 11731468 bytes
+SHA1 (ghc-7.10.3-testsuite.tar.xz) = 479a34c82a250145d5aa89f531ef78c75d00e282
+RMD160 (ghc-7.10.3-testsuite.tar.xz) = 0940b283d378b4f0fc1b57210996d0fcaff42384
+SHA512 (ghc-7.10.3-testsuite.tar.xz) = 8780d2823e1f94266b8ac8dbea838ce60384f03f85c04ac911e1f72a0cebece8070d82db195c2db1bbabaa5bc5da1b9648409a4595b66b41574ca27638189432
+Size (ghc-7.10.3-testsuite.tar.xz) = 1513212 bytes


Home | Main Index | Thread Index | Old Index