diff options
author | pav <pav@FreeBSD.org> | 2012-01-26 19:18:51 +0800 |
---|---|---|
committer | pav <pav@FreeBSD.org> | 2012-01-26 19:18:51 +0800 |
commit | 8c5e0793188e5bbbf00a6ed44f4fa4480c24f509 (patch) | |
tree | de21d6cb700408c37227fad6cd6e2f0f33f30fee /lang/pure | |
parent | 3a7304aa9281f789c5922f5bb0b896eb4c76ca43 (diff) | |
download | freebsd-ports-gnome-8c5e0793188e5bbbf00a6ed44f4fa4480c24f509.tar.gz freebsd-ports-gnome-8c5e0793188e5bbbf00a6ed44f4fa4480c24f509.tar.zst freebsd-ports-gnome-8c5e0793188e5bbbf00a6ed44f4fa4480c24f509.zip |
- Update pure to 0.51 and update modules
PR: ports/161799
Submitted by: Zhihao Yuan <lichray@gmail.com> (maintainer)
Diffstat (limited to 'lang/pure')
-rw-r--r-- | lang/pure/Makefile | 18 | ||||
-rw-r--r-- | lang/pure/bsd.pure.mk | 97 | ||||
-rw-r--r-- | lang/pure/distinfo | 8 | ||||
-rw-r--r-- | lang/pure/pkg-plist | 6 |
4 files changed, 114 insertions, 15 deletions
diff --git a/lang/pure/Makefile b/lang/pure/Makefile index 461f6a456807..70291bcf5eac 100644 --- a/lang/pure/Makefile +++ b/lang/pure/Makefile @@ -6,28 +6,27 @@ # PORTNAME= pure -PORTVERSION= 0.47 -PORTREVISION= 1 +PORTVERSION= 0.51 CATEGORIES= lang -MASTER_SITES= http://pure-lang.googlecode.com/files/ DISTFILES= ${PORTNAME}-${PORTVERSION}.tar.gz ${PORTNAME}-docs-${PORTVERSION}.tar.gz MAINTAINER= lichray@gmail.com COMMENT= A modern-style functional programming language -LIB_DEPENDS+= gmp:${PORTSDIR}/math/gmp -BUILD_DEPENDS+= llvm29>=2.9<2.10.*:${PORTSDIR}/devel/llvm29 -RUN_DEPENDS+= llvm29>=2.9<2.10.*:${PORTSDIR}/devel/llvm29 +LICENSE= LGPL3 + +LIB_DEPENDS= gmp.10:${PORTSDIR}/math/gmp \ + mpfr.4:${PORTSDIR}/math/mpfr +BUILD_DEPENDS= llvm>=2.9:${PORTSDIR}/devel/llvm +RUN_DEPENDS= llvm>=2.9:${PORTSDIR}/devel/llvm MAN1= pure.1 -LICENSE= LGPL3 SUB_FILES= pkg-message -USE_GCC= 4.2+ USE_AUTOTOOLS= libltdl GNU_CONFIGURE= yes -USE_GMAKE= yes USE_GNOME= gnomehack +USE_PURE= yes MAKE_JOBS_SAFE= yes CONFIGURE_ARGS= --with-libgmp-prefix=${LOCALBASE} --enable-release @@ -86,4 +85,5 @@ post-install: @${CAT} ${PKGMESSAGE} +.include "bsd.pure.mk" .include <bsd.port.post.mk> diff --git a/lang/pure/bsd.pure.mk b/lang/pure/bsd.pure.mk new file mode 100644 index 000000000000..ac492d2aa65e --- /dev/null +++ b/lang/pure/bsd.pure.mk @@ -0,0 +1,97 @@ +# ex:ts=8 +# +# $FreeBSD$ +# +# bsd.pure.mk - Support for the Pure language packages +# +# Author: Zhihao Yuan <lichray@gmail.com> +# +# USE_PURE - Set it to 'yes' to use libpure.so. +# Others are regarded as a list of *RUN_DEPENDS* +# to pure-* addons. For example, +# USE_PURE= ffi makes the port depends on pure-ffi at runtime. +# USE_PURE_BUILD - Set it to 'yes' to change the addons in USE_PURE +# list to *BUILD_DEPENDS*. +# NO_PURE_EXAMPLES - Don't automatically install examples/. + +.if !defined(PURE_include) + +PURE_MAINTAINER=lichray@gmail.com +PURE_include= bsd.pure.mk + +MASTER_SITES?= http://pure-lang.googlecode.com/files/ +DIST_SUBDIR= pure + +USE_GMAKE= yes +USE_GCC= 4.2+ + +_PURE_audio_cat= audio +_PURE_csv_cat= textproc +_PURE_ffi_cat= devel +_PURE_gen_cat= devel +_PURE_gen_util= pure-gen +_PURE_gl_cat= graphics +_PURE_gl_fn= GL +_PURE_gtk_cat= x11-toolkits +_PURE_mpfr_cat= math +_PURE_readline_cat= devel +_PURE_sockets_cat= net +_PURE_sql3_cat= databases +_PURE_tk_cat= x11-toolkits +_PURE_xml_cat= textproc + +.ifdef _PURE_${PORTNAME}_cat +CATEGORIES= _PURE_${PORTNAME}_cat +.endif + +.if ${PORTNAME} != pure + +.if ${USE_PURE} == yes +LIB_DEPENDS+= pure.8:${PORTSDIR}/lang/pure +.else +. for dep in ${USE_PURE} +_PURE_LIBDIR= ${LOCALBASE}/lib/pure +_PURE_PORTDIR= ${PORTSDIR}/${_PURE_${dep}_cat}/pure-${dep} +. ifdef _PURE_${dep}_cat +. ifdef _PURE_${dep}_util +BUILD_DEPENDS+= ${_PURE_${dep}_util}:${_PURE_PORTDIR} +. else +. ifdef USE_PURE_BUILD +. ifdef _PURE_${dep}_fn +BUILD_DEPENDS+= ${_PURE_LIBDIR}/${_PURE_${dep}_fn}.pure:${_PURE_PORTDIR} +. else +BUILD_DEPENDS+= ${_PURE_LIBDIR}/${dep}.pure:${_PURE_PORTDIR} +. endif +. endif +. ifdef _PURE_${dep}_fn +RUN_DEPENDS+= ${_PURE_LIBDIR}/${_PURE_${dep}_fn}.pure:${_PURE_PORTDIR} +. else +RUN_DEPENDS+= ${_PURE_LIBDIR}/${dep}.pure:${_PURE_PORTDIR} +. endif +. endif +. else +. error pure-${dep} is not supported by "bsd.pure.mk" +. endif +. endfor +.endif + +.endif # PORTNAME != pure + +MAKE_ARGS+= prefix=${PREFIX} mandir=${PREFIX}/man \ + CC=${CC} CFLAGS="${CFLAGS}" \ + CXX=${CXX} CXXFLAGS="${CXXFLAGS}" \ + CPPFLAGS+=-I${LOCALBASE}/include \ + LDFLAGS+=-L${LOCALBASE}/lib + +.if ${PORTNAME:Mpure-*} !="" && !defined(NO_PURE_EXAMPLES) +PORTEXAMPLES= * + +post-install: +.if !defined(NOPORTEXAMPLES) + @${MKDIR} ${EXAMPLESDIR} + (cd ${WRKSRC}/examples/ && ${COPYTREE_SHARE} \* ${EXAMPLESDIR}) +.endif + +.endif + +.endif #!defined(PURE_include) diff --git a/lang/pure/distinfo b/lang/pure/distinfo index fcd05f6c3461..1016867f7faa 100644 --- a/lang/pure/distinfo +++ b/lang/pure/distinfo @@ -1,4 +1,4 @@ -SHA256 (pure-0.47.tar.gz) = 7b3d0093fd695178e154cd24a4983dbff479a62ef840c11ca94af0998699409a -SIZE (pure-0.47.tar.gz) = 1028429 -SHA256 (pure-docs-0.47.tar.gz) = 5d26edc1dce5151a616ad11378657fbf792edf2ddefa31c70934e6d3c011258c -SIZE (pure-docs-0.47.tar.gz) = 2817481 +SHA256 (pure/pure-0.51.tar.gz) = 990b0a30cfb91f1f5a93847c1de666d52d7817f5be28d3753a06f42bc9d74412 +SIZE (pure/pure-0.51.tar.gz) = 1114840 +SHA256 (pure/pure-docs-0.51.tar.gz) = 2e13c12b0d1a03dbdf12c09f30bcbd86e50367079776d677b21e2ee1487419a5 +SIZE (pure/pure-docs-0.51.tar.gz) = 3376386 diff --git a/lang/pure/pkg-plist b/lang/pure/pkg-plist index 27bd08e9f01d..2e3e94151934 100644 --- a/lang/pure/pkg-plist +++ b/lang/pure/pkg-plist @@ -1,8 +1,8 @@ bin/pure include/pure/runtime.h lib/libpure.so -lib/libpure.so.7 -lib/libpure.so.7.0 +lib/libpure.so.8 +lib/libpure.so.8.0 lib/pure/array.pure lib/pure/avltrees.pure lib/pure/dict.pure @@ -11,6 +11,7 @@ lib/pure/getopt.pure lib/pure/heap.pure lib/pure/math.pure lib/pure/matrices.pure +lib/pure/pointers.pure lib/pure/posix.pure lib/pure/prelude.pure lib/pure/primitives.pure @@ -19,6 +20,7 @@ lib/pure/pure_main.o lib/pure/quasiquote.pure lib/pure/quasiquote1.pure lib/pure/records.pure +lib/pure/regex.pure lib/pure/set.pure lib/pure/strings.pure lib/pure/system.pure |