1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-19 03:52:17 +00:00

- Add a couple of pure extensions:

devel/pure-readline:   A readline interface for the Pure language
  devel/pure-stldict:    Pure interface to C++ STL map/unordered_map
  devel/pure-stlvec:     Pure interface to C++ STL vector
  math/pure-mpfr:        Multiprecision floats for Pure
  x11-toolkits/pure-tk:  A basic interface between Pure and Tcl/Tk

PR:		ports/161799
Submitted by:	Zhihao Yuan <lichray@gmail.com>
This commit is contained in:
Pav Lucistnik 2012-01-26 20:18:32 +00:00
parent 630374295f
commit 61d3e67655
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=289858
21 changed files with 219 additions and 0 deletions

View File

@ -2987,6 +2987,9 @@
SUBDIR += publib
SUBDIR += pure-ffi
SUBDIR += pure-gen
SUBDIR += pure-readline
SUBDIR += pure-stldict
SUBDIR += pure-stlvec
SUBDIR += pushmi
SUBDIR += pwlib
SUBDIR += py-Acquisition

View File

@ -0,0 +1,23 @@
# New ports collection makefile for: pure-readline
# Date created: 2011-10-21
# Whom: Zhihao Yuan <lichray@gmail.com>
#
# $FreeBSD$
#
PORTNAME= pure-readline
PORTVERSION= 0.1
CATEGORIES= devel
MAINTAINER= lichray@gmail.com
COMMENT= A readline interface for the Pure language
USE_PURE= yes
NO_PURE_EXAMPLES= yes
PLIST_FILES= lib/pure/readline.pure \
lib/pure/readline.so
.include <bsd.port.pre.mk>
.include "${PORTSDIR}/lang/pure/bsd.pure.mk"
.include <bsd.port.post.mk>

View File

@ -0,0 +1,2 @@
SHA256 (pure/pure-readline-0.1.tar.gz) = a8721d58d2d34c803967923a2ebd1b8f612abfe8d4ad75d6796bee5bbc3c45a2
SIZE (pure/pure-readline-0.1.tar.gz) = 16358

View File

@ -0,0 +1,5 @@
Pure's interface to C++ vectors, specialized to hold pointers to arbitrary
Pure expressions, and the C++ Standard Template Library algorithms that act
on them.
WWW: http://docs.pure-lang.googlecode.com/hg/pure-readline.html

View File

@ -0,0 +1,24 @@
# New ports collection makefile for: pure-stldict
# Date created: 2011-12-05
# Whom: Zhihao Yuan <lichray@gmail.com>
#
# $FreeBSD$
#
PORTNAME= pure-stldict
PORTVERSION= 0.3
CATEGORIES= devel
MAINTAINER= lichray@gmail.com
COMMENT= Pure interface to C++ STL map/unordered_map
USE_PURE= yes
USE_GCC= 4.6+
CXX= g++${GCC_DEFAULT_V}
CXXFLAGS+= -std=c++0x -DHAVE_STD_IS_PERMUTATION
CXXFLAGS+= -DHAVE_STD_IS_PERMUTATION
.include <bsd.port.pre.mk>
.include "${PORTSDIR}/lang/pure/bsd.pure.mk"
.include <bsd.port.post.mk>

View File

@ -0,0 +1,2 @@
SHA256 (pure/pure-stldict-0.3.tar.gz) = 86e3c1402e86c7c637d3191b94800121fda2724b0a5641a9f39becde0462567e
SIZE (pure/pure-stldict-0.3.tar.gz) = 64546

View File

@ -0,0 +1,27 @@
--- Makefile.orig 2011-11-15 20:34:11.000000000 -0600
+++ Makefile 2011-12-05 23:59:07.886393453 -0600
@@ -4,11 +4,11 @@ version = 0.1
# platform-specific setup
-DLL = $(shell pkg-config pure --variable DLL)
-PIC = $(shell pkg-config pure --variable PIC)
-shared = $(shell pkg-config pure --variable shared)
+DLL = .so
+PIC = -fPIC
+shared = -shared
-libdir = $(shell pkg-config pure --variable libdir)
+libdir = $(prefix)/lib
installdir = $(addprefix $(DESTDIR), $(libdir)/pure)
MOD_CXXFLAGS = $(PIC) $(shell pkg-config pure --cflags) $(CXXFLAGS) $(CPPFLAGS)
@@ -25,7 +25,7 @@ objects = $(patsubst %.cc, %$(DLL), $(cp
all: $(objects)
%$(DLL): %.cc
- g++ $(shared) -o $@ $(MOD_CXXFLAGS) $< $(MOD_LDFLAGS) $(LIBS)
+ $(CXX) $(shared) $(CPPFLAGS) $(CXXFLAGS) $(PIC) $< -o $@ $(LDFLAGS) -lpure $(LIBS)
clean:
rm -f *.o *$(DLL) examples/life *~

View File

@ -0,0 +1,6 @@
This package provides a light-weight, no frills interface to the C++
dictionary containers map and unordered_map. The stldict module makes
these data structures available in Pure land and equips them with a
(more or less) idiomatic Pure container interface.
WWW: http://docs.pure-lang.googlecode.com/hg/pure-stldict.html

View File

@ -0,0 +1,7 @@
lib/pure/hashdict.pure
lib/pure/hashdict.so
lib/pure/orddict.pure
lib/pure/orddict.so
lib/pure/stldict.pure
lib/pure/stldictbase.pure
@dirrm lib/pure

View File

@ -0,0 +1,25 @@
# New ports collection makefile for: pure-stlvec
# Date created: 2011-10-19
# Whom: Zhihao Yuan <lichray@gmail.com>
#
# $FreeBSD$
#
PORTNAME= pure-stlvec
PORTVERSION= 0.2
CATEGORIES= devel
MAINTAINER= lichray@gmail.com
COMMENT= Pure interface to C++ STL vector
USE_PURE= yes
.include <bsd.port.pre.mk>
post-patch:
@${REINPLACE_CMD} -e \
's|^PROD_FLAGS =.*|PROD_FLAGS = $$(CPPFLAGS) $$(CFLAGS) $$(LDFLAGS)|' \
${WRKSRC}/Makefile
.include "${PORTSDIR}/lang/pure/bsd.pure.mk"
.include <bsd.port.post.mk>

View File

@ -0,0 +1,2 @@
SHA256 (pure/pure-stlvec-0.2.tar.gz) = 503bbc04f014c073d27d0bf2de3b57a889b5ceb9e01c4afbd82e8e5b5a2e4178
SIZE (pure/pure-stlvec-0.2.tar.gz) = 149369

View File

@ -0,0 +1,5 @@
Pure's interface to C++ vectors, specialized to hold pointers to arbitrary
Pure expressions, and the C++ Standard Template Library algorithms that act
on them.
WWW: http://docs.pure-lang.googlecode.com/hg/pure-stlvec.html

View File

@ -0,0 +1,13 @@
lib/pure/stlalgorithm.so
lib/pure/stlbase.pure
lib/pure/stlcontainer.so
lib/pure/stlvec.pure
lib/pure/stlvec/algorithms.pure
lib/pure/stlvec/heap.pure
lib/pure/stlvec/merge.pure
lib/pure/stlvec/minmax.pure
lib/pure/stlvec/modifying.pure
lib/pure/stlvec/nonmodifying.pure
lib/pure/stlvec/numeric.pure
lib/pure/stlvec/sort.pure
@dirrm lib/pure/stlvec

View File

@ -489,6 +489,7 @@
SUBDIR += prng
SUBDIR += proofgeneral
SUBDIR += pspp
SUBDIR += pure-mpfr
SUBDIR += pure-rational
SUBDIR += py-apgl
SUBDIR += py-basemap

24
math/pure-mpfr/Makefile Normal file
View File

@ -0,0 +1,24 @@
# New ports collection makefile for: pure-mpfr
# Date created: 2011-10-19
# Whom: Zhihao Yuan <lichray@gmail.com>
#
# $FreeBSD$
#
PORTNAME= pure-mpfr
PORTVERSION= 0.4
CATEGORIES= math
MAINTAINER= lichray@gmail.com
COMMENT= Multiprecision floats for Pure
USE_PURE= yes
PLIST_FILES= lib/pure/mpfr.pure \
lib/pure/mpfr.so
MAKE_ARGS+= libdir="${PREFIX}/lib"
.include <bsd.port.pre.mk>
.include "${PORTSDIR}/lang/pure/bsd.pure.mk"
.include <bsd.port.post.mk>

2
math/pure-mpfr/distinfo Normal file
View File

@ -0,0 +1,2 @@
SHA256 (pure/pure-mpfr-0.4.tar.gz) = 23797d9996d4395aa08eadcb6ce3313267a24e9bc3bf7faa6012dcce339b65d6
SIZE (pure/pure-mpfr-0.4.tar.gz) = 24401

5
math/pure-mpfr/pkg-descr Normal file
View File

@ -0,0 +1,5 @@
pure-mpfr makes the MPFR multiprecision floats (henceforth referred to as
mpfr numbers or values) available in Pure, so that they work with the other
types of Pure numbers in an almost seamless fashion.
WWW: http://docs.pure-lang.googlecode.com/hg/pure-mpfr.html

View File

@ -191,6 +191,7 @@
SUBDIR += phat
SUBDIR += plib
SUBDIR += pure-gtk
SUBDIR += pure-tk
SUBDIR += py-Pmw
SUBDIR += py-SciParam
SUBDIR += py-fltk

View File

@ -0,0 +1,34 @@
# New ports collection makefile for: pure-tk
# Date created: 2011-11-09
# Whom: Zhihao Yuan <lichray@gmail.com>
#
# $FreeBSD$
#
PORTNAME= pure-tk
PORTVERSION= 0.3
CATEGORIES= x11-toolkits
MAINTAINER= lichray@gmail.com
COMMENT= A basic interface between Pure and Tcl/Tk
USE_PURE= yes
USE_TK= 82+
SHORT_TCL_VER= ${TCL_VER:S/8./8/}
MAKE_ARGS+= tclvers=${TCL_VER}
PLIST_FILES= lib/pure/gnocl.pure \
lib/pure/tk.so \
lib/pure/tk.pure
post-patch:
${REINPLACE_CMD} \
-e "s|/usr/include|${LOCALBASE}/include|g" \
-e "s|-ltcl\$$(tclvers)|-ltcl${SHORT_TCL_VER}|" \
-e "s|-ltk\$$(tclvers)|-ltk${SHORT_TCL_VER}|" \
${WRKSRC}/Makefile
.include <bsd.port.pre.mk>
.include "${PORTSDIR}/lang/pure/bsd.pure.mk"
.include <bsd.port.post.mk>

View File

@ -0,0 +1,2 @@
SHA256 (pure/pure-tk-0.3.tar.gz) = a1807441b4784b590b1fcd287d7750b66dd68f9e91bcddf710ccb3a4e9506a32
SIZE (pure/pure-tk-0.3.tar.gz) = 31547

View File

@ -0,0 +1,6 @@
pure-tk provides a basic interface between Pure and Tcl/Tk. The
operations of this module allow you to execute arbitrary commands
in the Tcl interpreter, set and retrieve variable values in the
interpreter, and invoke Pure callbacks from Tcl/Tk.
WWW: http://docs.pure-lang.googlecode.com/hg/pure-tk.html