aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpawel <pawel@FreeBSD.org>2016-02-27 01:17:44 +0800
committerpawel <pawel@FreeBSD.org>2016-02-27 01:17:44 +0800
commit3e59c167282bf541c70197381fc8b88e8822953f (patch)
tree524290b3e97ffb1315a4d46a39a2440c0f3fae24
parentfa9b6c57eccf4fc39a49518e9a7ceaf0b8e5471f (diff)
downloadfreebsd-ports-gnome-3e59c167282bf541c70197381fc8b88e8822953f.tar.gz
freebsd-ports-gnome-3e59c167282bf541c70197381fc8b88e8822953f.tar.zst
freebsd-ports-gnome-3e59c167282bf541c70197381fc8b88e8822953f.zip
A set of simple(ish) C++ templates which implement sum and option types.
They serve a similar purpose to boost::variant and boost::optional but are implemented on top of Qt's QVariant container.
-rw-r--r--devel/Makefile1
-rw-r--r--devel/qt-maybe/Makefile27
-rw-r--r--devel/qt-maybe/distinfo2
-rw-r--r--devel/qt-maybe/pkg-descr5
4 files changed, 35 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index 7d7bb6f655ef..24195bf810a3 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -4588,6 +4588,7 @@
SUBDIR += qscintilla2-designerplugin
SUBDIR += qscintilla2-designerplugin-qt5
SUBDIR += qscintilla2-qt5
+ SUBDIR += qt-maybe
SUBDIR += qt4
SUBDIR += qt4-assistant
SUBDIR += qt4-assistant-adp
diff --git a/devel/qt-maybe/Makefile b/devel/qt-maybe/Makefile
new file mode 100644
index 000000000000..13a252a2e1bb
--- /dev/null
+++ b/devel/qt-maybe/Makefile
@@ -0,0 +1,27 @@
+# Created by: Pawel Pekala <pawel@FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME= qt-maybe
+PORTVERSION= 0.0.20151227
+CATEGORIES= devel
+
+MAINTAINER= pawel@FreeBSD.org
+COMMENT= Implementation of sum/option types using QVariant
+
+LICENSE= BSD3CLAUSE
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+USE_GITHUB= yes
+GH_ACCOUNT= robertknight
+GH_TAGNAME= 52b21af
+
+USE_QT5= core
+NO_BUILD= yes
+
+PLIST_FILES= include/Either.h include/Maybe.h
+
+do-install:
+ (cd ${WRKSRC} && ${INSTALL_DATA} Either.h Maybe.h \
+ ${STAGEDIR}${PREFIX}/include)
+
+.include <bsd.port.mk>
diff --git a/devel/qt-maybe/distinfo b/devel/qt-maybe/distinfo
new file mode 100644
index 000000000000..7e7047761c3b
--- /dev/null
+++ b/devel/qt-maybe/distinfo
@@ -0,0 +1,2 @@
+SHA256 (robertknight-qt-maybe-0.0.20151227-52b21af_GH0.tar.gz) = d7ede0224f16920c2892d26a59b47651c787f5adf6b618f50bf44b5e93227b69
+SIZE (robertknight-qt-maybe-0.0.20151227-52b21af_GH0.tar.gz) = 4688
diff --git a/devel/qt-maybe/pkg-descr b/devel/qt-maybe/pkg-descr
new file mode 100644
index 000000000000..4c1fb8ba8ecd
--- /dev/null
+++ b/devel/qt-maybe/pkg-descr
@@ -0,0 +1,5 @@
+A set of simple(ish) C++ templates which implement sum and option types.
+They serve a similar purpose to boost::variant and boost::optional but
+are implemented on top of Qt's QVariant container.
+
+WWW: https://github.com/robertknight/qt-maybe