diff options
author | nemysis <nemysis@FreeBSD.org> | 2014-01-05 08:19:04 +0800 |
---|---|---|
committer | nemysis <nemysis@FreeBSD.org> | 2014-01-05 08:19:04 +0800 |
commit | aafbbd06423d67dd0e4842513ec54f988cd95f8e (patch) | |
tree | 3bfc5e24fbd77f9c7001edf86b7e67e99480598a /devel | |
parent | 890c901afcb2157d3ce7020c278323252c643904 (diff) | |
download | freebsd-ports-gnome-aafbbd06423d67dd0e4842513ec54f988cd95f8e.tar.gz freebsd-ports-gnome-aafbbd06423d67dd0e4842513ec54f988cd95f8e.tar.zst freebsd-ports-gnome-aafbbd06423d67dd0e4842513ec54f988cd95f8e.zip |
- Readdition of devel/pure-stldict which was removed on 333095
- Bump PORTREVISION
- Add licenses (GPLv3 LGPL3)
- USES pure instead of USE_PURE
- Add DOCS, EXAMPLES and Option
- Support STAGEDIR
- Change pkg-plist, use @dirrmtry instead of @dirrm
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
PR: ports/183756
Submitted by: Zhihao Yuan <zy@miator.net>
Diffstat (limited to 'devel')
-rw-r--r-- | devel/Makefile | 1 | ||||
-rw-r--r-- | devel/pure-stldict/Makefile | 35 | ||||
-rw-r--r-- | devel/pure-stldict/distinfo | 2 | ||||
-rw-r--r-- | devel/pure-stldict/files/patch-Makefile | 27 | ||||
-rw-r--r-- | devel/pure-stldict/pkg-descr | 6 | ||||
-rw-r--r-- | devel/pure-stldict/pkg-plist | 7 |
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 |