diff --git a/srcpkgs/openscad/patches/uic_qgettext.patch b/srcpkgs/openscad/patches/uic_qgettext.patch new file mode 100644 index 00000000000..af3ad233394 --- /dev/null +++ b/srcpkgs/openscad/patches/uic_qgettext.patch @@ -0,0 +1,34 @@ +From 4fa5f0340a2b7b031a0b39f7de0ca795d52bb68b Mon Sep 17 00:00:00 2001 +From: Torsten Paul +Date: Sun, 27 Nov 2016 19:29:04 +0100 +Subject: [PATCH] Handle 2 argument translation calls generated by Qt 5.7.1 + (fixes #1872). + +--- + src/qtgettext.h | 12 +++++++++--- + 1 file changed, 9 insertions(+), 3 deletions(-) + +diff --git src/qtgettext.h src/qtgettext.h +index 6e66716..dbc4f17 100644 +--- src/qtgettext.h ++++ src/qtgettext.h +@@ -16,10 +16,16 @@ + + #define N_(String) String + +-inline QString _( const char *msgid, int category ) ++inline QString _(const char *msgid, int category) + { +- Q_UNUSED( category ); +- return QString::fromUtf8( _( msgid ) ); ++ Q_UNUSED(category); ++ return QString::fromUtf8(_(msgid)); ++} ++ ++inline QString _(const char *msgid, const char *disambiguation) ++{ ++ Q_UNUSED(disambiguation); ++ return QString::fromUtf8(_(msgid)); + } + + #endif diff --git a/srcpkgs/openscad/template b/srcpkgs/openscad/template new file mode 100644 index 00000000000..a2c42699733 --- /dev/null +++ b/srcpkgs/openscad/template @@ -0,0 +1,17 @@ +# Template file for 'openscad' + +pkgname="openscad" +version="2015.03.2" +revision=1 +_distver="${version%.*}-${version##*.}" +build_style=qmake +short_desc="The programmers solid 3D CAD modeller" +maintainer="Pierre Allegraud " +license="GPL-2" +homepage="http://www.openscad.org" +distfiles="http://files.openscad.org/${pkgname}-${_distver}.src.tar.gz" +checksum="a2535bb9e27d96e10e1e19268a596155164c7129d410a0c7f96edc2d09400083" +wrksrc="${pkgname}-${_distver}" + +hostmakedepends="bison flex pkg-config" +makedepends="cgal-devel harfbuzz-devel opencsg-devel qscintilla-qt5-devel"