cpphs-0.8

This commit is contained in:
dons 2005-02-19 04:49:00 +00:00
parent d1837aebea
commit afdffe15e8
4 changed files with 68 additions and 0 deletions

39
devel/cpphs/Makefile Normal file
View File

@ -0,0 +1,39 @@
# $OpenBSD: Makefile,v 1.1.1.1 2005/02/19 04:49:00 dons Exp $
COMMENT= "liberalised reimplementation of cpp in Haskell"
V= 0.8
DISTNAME= cpphs-${V}
CATEGORIES= devel
MAINTAINER= Don Stewart <dons@openbsd.org>
HOMEPAGE= http://www.cs.york.ac.uk/fp/cpphs/
MASTER_SITES= ${HOMEPAGE}
# Pure Haskell 98. Could also interpret via Hugs
.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "amd64"
MODULES= ghc
HC= ghc
HC_OPTS= -O -o cpphs --make
.else
BUILD_DEPENDS+= bin/hmake::lang/nhc98
HC= hmake
HC_OPTS= -package base
.endif
do-build:
( cd ${WRKSRC} && ${HC} ${HC_OPTS} cpphs )
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/cpphs ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/docs/cpphs.1 ${PREFIX}/man/man1
do-regress:
( cd ${WRKSRC}/tests && ./runtests )
# LGPL
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
.include <bsd.port.mk>

4
devel/cpphs/distinfo Normal file
View File

@ -0,0 +1,4 @@
MD5 (cpphs-0.8.tar.gz) = 1b46d5b80159df20668f6bff4e6c1796
RMD160 (cpphs-0.8.tar.gz) = e5a7d01ad28fb0da4c3dbf461f26e22065e68f84
SHA1 (cpphs-0.8.tar.gz) = 750610bfdb18c042a4f6b438a9d0214cc4a5278f
SIZE (cpphs-0.8.tar.gz) = 40759

22
devel/cpphs/pkg/DESCR Normal file
View File

@ -0,0 +1,22 @@
Rightly or wrongly, the C pre-processor is widely used in Haskell
source code. It enables conditional compilation for different
compilers, different versions of the same compiler, and different OS
platforms. It is also occasionally used for its macro language, which
can enable certain forms of platform-specific detail-filling, such as
the tedious boilerplate generation of instance definitions and FFI
declarations. However, there are two problems with cpp, aside from the
obvious aesthetic ones:
* For some Haskell systems, notably Hugs on Windows, a true cpp is
not available by default.
* Even for the other Haskell systems, the common cpp provided by the
gcc 3.x series is changing subtly in ways that are incompatible
with Haskell's syntax. There have always been problems with, for
instance, string gaps, and prime characters in identifiers. These
problems are only going to get worse.
So, it seemed right to attempt to provide an alternative to cpp, both
more compatible with Haskell, and itself written in Haskell so that it
can be distributed with compilers. This version of the C pre-processor
is pretty-much feature-complete, and compatible with the -traditional
style.

3
devel/cpphs/pkg/PLIST Normal file
View File

@ -0,0 +1,3 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2005/02/19 04:49:00 dons Exp $
bin/cpphs
@man man/man1/cpphs.1