aboutsummaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorRusmir Dusko <nemysis@FreeBSD.org>2014-01-05 00:19:04 +0000
committerRusmir Dusko <nemysis@FreeBSD.org>2014-01-05 00:19:04 +0000
commit4f1c1aa65d751079a2dde63d17867a1801eec1c8 (patch)
tree3bfc5e24fbd77f9c7001edf86b7e67e99480598a /devel
parentabd39abbd9777e537ac34d86a944d3d269607987 (diff)
downloadports-4f1c1aa65d751079a2dde63d17867a1801eec1c8.tar.gz
ports-4f1c1aa65d751079a2dde63d17867a1801eec1c8.zip
Notes
Diffstat (limited to 'devel')
-rw-r--r--devel/Makefile1
-rw-r--r--devel/pure-stldict/Makefile35
-rw-r--r--devel/pure-stldict/distinfo2
-rw-r--r--devel/pure-stldict/files/patch-Makefile27
-rw-r--r--devel/pure-stldict/pkg-descr6
-rw-r--r--devel/pure-stldict/pkg-plist7
6 files changed, 78 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index aa390ebef313..9df8c4d2b6d6 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -3413,6 +3413,7 @@
SUBDIR += pure-ffi
SUBDIR += pure-gen
SUBDIR += pure-readline
+ SUBDIR += pure-stldict
SUBDIR += pure-stllib
SUBDIR += pushmi
SUBDIR += pwlib
diff --git a/devel/pure-stldict/Makefile b/devel/pure-stldict/Makefile
new file mode 100644
index 000000000000..debadf0ece1f
--- /dev/null
+++ b/devel/pure-stldict/Makefile
@@ -0,0 +1,35 @@
+# Created by: Zhihao Yuan <lichray@gmail.com>
+# $FreeBSD$
+
+PORTNAME= pure-stldict
+PORTVERSION= 0.5
+PORTREVISION= 2
+CATEGORIES= devel
+MASTER_SITES= https://cdn.bitbucket.org/purelang/pure-lang/downloads/
+DIST_SUBDIR= pure
+
+MAINTAINER= lichray@gmail.com
+COMMENT= Pure interface to C++ STL map/unordered_map
+
+LICENSE= GPLv3 LGPL3
+LICENSE_COMB= dual
+
+USES= pure
+
+USE_GCC= yes
+CXXFLAGS+= -std=c++0x -DHAVE_STD_IS_PERMUTATION
+
+PORTDOCS= README
+
+PORTEXAMPLES= *
+
+OPTIONS_DEFINE= DOCS EXAMPLES
+
+post-install:
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
+
+ @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+ @(cd ${WRKSRC}/examples/ && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR})
+
+.include <bsd.port.mk>
diff --git a/devel/pure-stldict/distinfo b/devel/pure-stldict/distinfo
new file mode 100644
index 000000000000..32abfa4e1b58
--- /dev/null
+++ b/devel/pure-stldict/distinfo
@@ -0,0 +1,2 @@
+SHA256 (pure/pure-stldict-0.5.tar.gz) = 3c12b4e15d79955e28d025d62525685e3bdbf4a07a3849cffad82eeb578e022b
+SIZE (pure/pure-stldict-0.5.tar.gz) = 64968
diff --git a/devel/pure-stldict/files/patch-Makefile b/devel/pure-stldict/files/patch-Makefile
new file mode 100644
index 000000000000..aebf2a2b7111
--- /dev/null
+++ b/devel/pure-stldict/files/patch-Makefile
@@ -0,0 +1,27 @@
+--- ./Makefile.orig 2012-03-22 19:47:34.000000000 +0100
++++ ./Makefile 2014-01-04 17:44:05.000000000 +0100
+@@ -4,11 +4,11 @@
+
+ # 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 @@
+ 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 *~
diff --git a/devel/pure-stldict/pkg-descr b/devel/pure-stldict/pkg-descr
new file mode 100644
index 000000000000..ef2e6d87aa0f
--- /dev/null
+++ b/devel/pure-stldict/pkg-descr
@@ -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
diff --git a/devel/pure-stldict/pkg-plist b/devel/pure-stldict/pkg-plist
new file mode 100644
index 000000000000..d65f5f26e183
--- /dev/null
+++ b/devel/pure-stldict/pkg-plist
@@ -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
+@dirrmtry lib/pure