Date: Mon, 20 Apr 2015 21:03:25 +0000 (UTC) From: Mikhail Teterin <mi@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r384386 - in head/graphics: . qtawesome qtawesome/files Message-ID: <201504202103.t3KL3P3e041253@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: mi Date: Mon Apr 20 21:03:25 2015 New Revision: 384386 URL: https://svnweb.freebsd.org/changeset/ports/384386 Log: Add port for QtAwesome -- a small library, which makes it easier for QtApplications to use the "fontawesome" collection of icons. Although the upstream source bundles the "font" itself with its sources too, the port makes no use of it -- there are already about 2 scores of fontawesome-FOO.ttf listed in various pkg-plist files in the tree. This port's pkg-message will advise the user, that for the library to be useful, the font-file must be known to fontconfig. Added: head/graphics/qtawesome/ head/graphics/qtawesome/Makefile (contents, props changed) head/graphics/qtawesome/distinfo (contents, props changed) head/graphics/qtawesome/files/ head/graphics/qtawesome/files/patch-QtAwesome.cpp (contents, props changed) head/graphics/qtawesome/pkg-descr (contents, props changed) head/graphics/qtawesome/pkg-message (contents, props changed) Modified: head/graphics/Makefile Modified: head/graphics/Makefile ============================================================================== --- head/graphics/Makefile Mon Apr 20 20:45:00 2015 (r384385) +++ head/graphics/Makefile Mon Apr 20 21:03:25 2015 (r384386) @@ -878,6 +878,7 @@ SUBDIR += qt5-opengl SUBDIR += qt5-pixeltool SUBDIR += qt5-svg + SUBDIR += qtawesome SUBDIR += qtgtl SUBDIR += quat SUBDIR += quat-gui Added: head/graphics/qtawesome/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/graphics/qtawesome/Makefile Mon Apr 20 21:03:25 2015 (r384386) @@ -0,0 +1,42 @@ +# Created by: mi +# $FreeBSD$ + +PORTNAME= qtawesome +PORTVERSION= 20150319 +CATEGORIES= graphics devel + +MAINTAINER= mi@aldan.algebra.com +COMMENT= Embed Font Awesome glyphs in Qt-applications + +LICENSE= MIT + +USE_GITHUB= yes +USES= uidfix qmake + +GH_ACCOUNT= gamecreature +GH_PROJECT= QtAwesome +GH_TAGNAME= d674aef + +OPTIONS_SINGLE= GUI +OPTIONS_SINGLE_GUI= QT4 QT5 +OPTIONS_DEFAULT= QT4 + +QT4_USE= qt4=corelib,gui,qmake_build +QT5_USE= qt5=core,gui,qmake_build +MAKE_ARGS+= ${PORT_OPTIONS:MQT*:S/QT/QT=/} + +WRKSRC= ${WRKDIR}/QtAwesome-${GH_TAGNAME}/QtAwesome +#MAKEFILE= ${FILESDIR}/BSDmakefile +EXTRACT_AFTER_ARGS=--no-same-owner --no-same-permissions \ + --exclude QtAwesomeSample --exclude fonts +PLIST_FILES= lib/libQtAwesome.so.1.0.0 lib/libQtAwesome.so.1.0 \ + lib/libQtAwesome.so.1 lib/libQtAwesome.so \ + include/QtAwesome.h +USE_LDCONFIG= yep... + +post-patch: + ${REINPLACE_CMD} -e 's,staticlib,sharedlib,' \ + -e '/^RESOURCES/,$$d' \ + ${WRKSRC}/QtAwesome.pro + +.include <bsd.port.mk> Added: head/graphics/qtawesome/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/graphics/qtawesome/distinfo Mon Apr 20 21:03:25 2015 (r384386) @@ -0,0 +1,2 @@ +SHA256 (gamecreature-QtAwesome-20150319-d674aef_GH0.tar.gz) = 9f8a7b466ac71cd8393b858ba3255615dd7cb057d4df85ecb21073fc791f1f49 +SIZE (gamecreature-QtAwesome-20150319-d674aef_GH0.tar.gz) = 93887 Added: head/graphics/qtawesome/files/patch-QtAwesome.cpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/graphics/qtawesome/files/patch-QtAwesome.cpp Mon Apr 20 21:03:25 2015 (r384386) @@ -0,0 +1,18 @@ +--- QtAwesome.cpp 2015-03-19 20:21:38 UTC ++++ QtAwesome.cpp 2015-04-20 15:57:35 -0400 +@@ -155,6 +155,7 @@ void QtAwesome::init(const QString& font + /// To initialize QtAwesome with font-awesome you need to call this method + bool QtAwesome::initFontAwesome( ) + { ++#if 0 + static int fontAwesomeFontId = -1; + + // only load font-awesome once +@@ -189,6 +190,7 @@ bool QtAwesome::initFontAwesome( ) + fontAwesomeFontId = -1; // restore the font-awesome id + return false; + } ++#endif + + // intialize the map + QHash<QString, int>& m = namedCodepoints_; Added: head/graphics/qtawesome/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/graphics/qtawesome/pkg-descr Mon Apr 20 21:03:25 2015 (r384386) @@ -0,0 +1,10 @@ +QtAwesome is a simple library that can be used to add Font Awesome +icons to your Qt application. + +NOTE: Though the name is QtAwesome and currently it's very Font +Awesome based, you can use every other icon/glyph font you want. + +The class can also be used to manage your own dynamic code-drawn +icons, by adding named icon-painters. + +WWW: https://github.com/gamecreature/QtAwesome Added: head/graphics/qtawesome/pkg-message ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/graphics/qtawesome/pkg-message Mon Apr 20 21:03:25 2015 (r384386) @@ -0,0 +1,2 @@ +For the library to be useful, fontawesome-*.ttf must be known to +fontconfig.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201504202103.t3KL3P3e041253>