Subject: [PATCH 1/6] testing/qscintilla: New aport

From: Marian Buschsieweke <[email-masked]>
Date: Sun, 1 Sep 2019 21:02:38 +0200

QScintilla is a port to Qt of Neil Hodgson's Scintilla C++ editor control
https://www.riverbankcomputing.com/software/qscintilla
---
 testing/qscintilla/APKBUILD | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)
 create mode 100644 testing/qscintilla/APKBUILD

diff --git a/testing/qscintilla/APKBUILD b/testing/qscintilla/APKBUILD
new file mode 100644
index 0000000000..b9b4ed1f8e
--- /dev/null
+++ b/testing/qscintilla/APKBUILD
@@ -0,0 +1,27 @@
+# Maintainer: Marian Buschsiewke <[email-masked]>
+pkgname=qscintilla
+pkgver=2.11.2
+pkgrel=0
+pkgdesc="QScintilla is a port to Qt of Neil Hodgson's Scintilla C++ editor control"
+url="https://www.riverbankcomputing.com/software/qscintilla"
+arch="all"
+license=" GPL-3.0-only"
+subpackages="$pkgname-dev"
+makedepends="qt5-qtbase-dev"
+source="https://www.riverbankcomputing.com/static/Downloads/QScintilla/$pkgver/QScintilla_gpl-$pkgver.tar.gz"
+builddir="$srcdir/QScintilla_gpl-$pkgver/Qt4Qt5"
+
+build() {
+	qmake-qt5
+	make
+}
+
+check() {
+	make check
+}
+
+package() {
+	make DESTDIR="$pkgdir" INSTALL_ROOT="${pkgdir}" install -j1
+}
+
+sha512sums="de4eb9fb8d13c1a8f1acb6e941a8e751e0f0df02b59eb1a32bcdbedc1cc62ad3a1b778d45541ea048710349db827323a07aaede415712d6c9ac6acc07f0c160f  QScintilla_gpl-2.11.2.tar.gz"
-- 
2.23.0

---

From: Marian Buschsieweke <[email-masked]>
Date: Sun, 1 Sep 2019 21:02:39 +0200

A library that does image-based CSG rendering using OpenGL
http://www.opencsg.org/
---
 testing/opencsg/APKBUILD | 34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)
 create mode 100644 testing/opencsg/APKBUILD

diff --git a/testing/opencsg/APKBUILD b/testing/opencsg/APKBUILD
new file mode 100644
index 0000000000..e14896598b
--- /dev/null
+++ b/testing/opencsg/APKBUILD
@@ -0,0 +1,34 @@
+# Maintainer: Marian Buschsieweke <[email-masked]>
+pkgname=opencsg
+pkgver=1.4.2
+pkgrel=0
+pkgdesc="A library that does image-based CSG rendering using OpenGL"
+url="http://www.opencsg.org/"
+arch="all"
+license="GPL-2.0-only"
+subpackages="$pkgname-dev $pkgname-example"
+makedepends="glew-dev freeglut-dev"
+source="http://www.opencsg.org/OpenCSG-${pkgver}.tar.gz"
+builddir="$srcdir/OpenCSG-$pkgver"
+
+build() {
+	make -j1
+}
+
+check() {
+	make check
+}
+
+package() {
+	for folder in src example; do
+		sed -e 's/\/usr\/local\//\/usr\//g' -i $folder/Makefile
+		make INSTALL_ROOT="$pkgdir" install -j 1 -C $folder
+	done
+}
+
+example() {
+	mkdir -p "$subpkgdir"/usr/
+	mv "$pkgdir"/usr/bin "$subpkgdir"/usr/
+}
+
+sha512sums="fbe6f925982717ecca7bd0eacc4fc5b362c80c7663b1ff0d9a228f2b5e1d3625d3e6d324d9e634665c74e9c0fc37d10290ece293e59a3eba67035b6b700b7778  OpenCSG-1.4.2.tar.gz"
-- 
2.23.0

---

From: Marian Buschsieweke <[email-masked]>
Date: Sun, 1 Sep 2019 21:02:40 +0200

Efficient and reliable geometric algorithms as C++ library
https://www.cgal.org/
---
 testing/cgal/APKBUILD | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)
 create mode 100644 testing/cgal/APKBUILD

diff --git a/testing/cgal/APKBUILD b/testing/cgal/APKBUILD
new file mode 100644
index 0000000000..701a6b9f83
--- /dev/null
+++ b/testing/cgal/APKBUILD
@@ -0,0 +1,29 @@
+# Maintainer: Marian Buschsieweke <[email-masked]>
+pkgname=cgal
+pkgver=4.14
+pkgrel=0
+pkgdesc="Efficient and reliable geometric algorithms as C++ library"
+url="https://www.cgal.org/"
+arch="all"
+license="GPL-3.0-or-later custom" # Dual licensed under GPL-3.0+ and commercial
+subpackages="$pkgname-dev $pkgname-doc"
+makedepends="mpfr-dev gmp-dev mesa-dev glu-dev boost-dev cmake"
+source="https://github.com/CGAL/cgal/releases/download/releases%2FCGAL-$pkgver/CGAL-$pkgver.tar.xz"
+builddir="$srcdir/CGAL-$pkgver"
+# Citing from.https://github.com/CGAL/cgal/wiki/Testing#test-suite-directory
+# > The test/ directory is not part of external releases.
+options="!check"
+
+build() {
+	mkdir -p build
+	cd build
+	cmake ../ -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=lib
+	make
+}
+
+package() {
+	cd build
+	make DESTDIR="$pkgdir" install
+}
+
+sha512sums="1f22da098a136c26fd51c7ac401212865dce7cc5110ca6a083ef6f09ead5c03a002bfd16752cb298427b84bd5b4900b52c6514f97ccd0e199ffb28e9fe640c43  CGAL-4.14.tar.xz"
-- 
2.23.0

---

From: Marian Buschsieweke <[email-masked]>
Date: Sun, 1 Sep 2019 21:02:43 +0200

The programmers solid 3D CAD modeller
http://openscad.org/
---
 testing/openscad/APKBUILD | 36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)
 create mode 100644 testing/openscad/APKBUILD

diff --git a/testing/openscad/APKBUILD b/testing/openscad/APKBUILD
new file mode 100644
index 0000000000..adbfaeedbd
--- /dev/null
+++ b/testing/openscad/APKBUILD
@@ -0,0 +1,36 @@
+# Maintainer: Marian Buschsieweke <[email-masked]>
+pkgname=openscad
+pkgver=2019.05
+pkgrel=0
+pkgdesc="The programmers solid 3D CAD modeller"
+url="http://openscad.org/"
+arch="all"
+license="GPL-2.0-only"
+subpackages="$pkgname-doc"
+makedepends="
+	qscintilla-dev qt5-qtbase-dev cgal-dev opencsg-dev libzip-dev boost-dev
+	eigen-dev libxml2-dev qt5-qtmultimedia-dev gmp-dev lib3mf-dev mpfr-dev
+	double-conversion-dev flex bison
+	"
+checkdepends="imagemagick python3 xorgproto libx11"
+source="https://files.openscad.org/openscad-$pkgver.src.tar.gz"
+
+build() {
+	qmake-qt5 PREFIX="/usr"
+	# fix issue with #include_next stdlib.h
+	sed -e 's/-isystem \/usr\/include //g' -i Makefile
+	make
+}
+
+check() {
+	cd tests
+	cmake .
+	make
+	ctest
+}
+
+package() {
+	make INSTALL_ROOT="$pkgdir" install
+}
+
+sha512sums="073053f625ffa4fea6ed836396b7ff4b87b26cf7500b06c804983afc0f1dfd3d78bfb81b3fd217c3939b0ec915d85b0c7990773eaf968512a150deaa0399df13  openscad-2019.05.src.tar.gz"
-- 
2.23.0