summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-cpp')
-rw-r--r--dev-cpp/wt/Manifest4
-rw-r--r--dev-cpp/wt/files/wt-no-rundir.patch14
-rw-r--r--dev-cpp/wt/metadata.xml14
-rw-r--r--dev-cpp/wt/wt-4.11.0.ebuild65
4 files changed, 97 insertions, 0 deletions
diff --git a/dev-cpp/wt/Manifest b/dev-cpp/wt/Manifest
new file mode 100644
index 0000000..f3781a6
--- /dev/null
+++ b/dev-cpp/wt/Manifest
@@ -0,0 +1,4 @@
+AUX wt-no-rundir.patch 503 BLAKE2B f58991dd150e921e8dfc183d84537ecce98fd5e675a719192a24eb10423ac5bbab8e588bcf2b2cc3c0696649318c19a47d17d4cd17eb71ca78f5b79ae208595a SHA512 8a8bb17fa2592ae0748044a8fdf3eea3998ca85570ecaee67c2b5fb20c07d07d4f4af270af4bd970457b1c85eabdbd505cbe1191d7a8939409a38ea6f7c1bf96
+DIST wt-4.11.0.tar.gz 10563042 BLAKE2B c49427437298cccc930017d3f03badc33cfcacd370e88b0d18e96a0d4302843fac161d02f3af012cda26a24bac2585329d620324f00cdebad1e78cf59217608d SHA512 67557e39f97871855250d38434b1260d507d9bc27fe0d64e5bf3176eedc3b02269bb3167a9e31d61a30817a852e98fd594672bc5e0debd807523cc5f8db4d17f
+EBUILD wt-4.11.0.ebuild 1409 BLAKE2B fb01f7b69cfa185e0f437050d9c48d2794e0b98f406c792bb11c91cbbdbd503bbc43372e173be6668c40be9ded8411a3c54a8ad7d8a29d8eecddec831d61505d SHA512 7f487384c24e181a78d0fc142ac359704a82063aae2cfae06d43f8756db2b19b05ed37e833dcaef64394fd2c95f4b2536b42479d72f97d5853f6a1a0b79c17f8
+MISC metadata.xml 468 BLAKE2B 7010dac99178c643243bcca1f8d0634e762d90173f039e1052472bbd49d0cf3e716f6f7e8d073ec68798f7e2d3af8128679955a1d9280c7cd3811d7ef86cfe86 SHA512 ad592a860956a012cc7017c1d27d1eb022081160aedb8e889a21e754247316e3e5416c6df3e36bb183a1b0ada6d7fe1c559885fd4b59cf95d9eb4ba7fab5fa55
diff --git a/dev-cpp/wt/files/wt-no-rundir.patch b/dev-cpp/wt/files/wt-no-rundir.patch
new file mode 100644
index 0000000..ad17603
--- /dev/null
+++ b/dev-cpp/wt/files/wt-no-rundir.patch
@@ -0,0 +1,14 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 887e5de6..a8d559ab 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -132,9 +132,6 @@ ELSE(WIN32)
+ SET(CONFIG_PREFIX ${CMAKE_INSTALL_PREFIX})
+ ENDIF()
+
+- SET(RUNDIR "${CONFIG_PREFIX}/var/run/wt" CACHE PATH
+- "Default path for wt session management (only used by FCGI connector)")
+-
+ IF(NOT DEFINED CONFIGDIR)
+ SET(CONFIGDIR "${CONFIG_PREFIX}/etc/wt" CACHE STRING "Path for the configuration files")
+ ENDIF( NOT DEFINED CONFIGDIR )
diff --git a/dev-cpp/wt/metadata.xml b/dev-cpp/wt/metadata.xml
new file mode 100644
index 0000000..f8c1c1f
--- /dev/null
+++ b/dev-cpp/wt/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>davidroman96@gmail.com</email>
+ <name>David Roman</name>
+ </maintainer>
+ <use>
+ <flag name="pango">Enable <pkg>x11-libs/pango</pkg>, wich is used for improved font support (WPdfImage and WRasterImage)</flag>
+ </use>
+ <upstream>
+ <remote-id type="github">emweb/wt</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-cpp/wt/wt-4.11.0.ebuild b/dev-cpp/wt/wt-4.11.0.ebuild
new file mode 100644
index 0000000..f2d2d5e
--- /dev/null
+++ b/dev-cpp/wt/wt-4.11.0.ebuild
@@ -0,0 +1,65 @@
+# Copyright 2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake
+
+DESCRIPTION="Wt, C++ Web Toolkit"
+HOMEPAGE="https://www.webtoolkit.eu/wt https://github.com/emweb/wt"
+SRC_URI="https://github.com/emweb/wt/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="doc firebird mysql opengl +pango pdf postgres ssl"
+
+DEPEND="
+ firebird? ( dev-db/firebird )
+ mysql? ( virtual/mysql )
+ opengl? ( virtual/opengl )
+ pango? ( x11-libs/pango )
+ postgres? ( dev-db/postgresql )
+ ssl? ( dev-libs/openssl )
+ dev-libs/boost:=
+ media-libs/libharu
+ media-gfx/graphicsmagick[jpeg,png]
+ sys-libs/zlib
+"
+RDEPEND="${DEPEND}"
+
+BDEPEND="
+ doc? (
+ app-text/doxygen[dot]
+ dev-qt/qtchooser
+ dev-qt/qthelp
+ )
+"
+# for qt6 dev-qt/qttools[qdoc]
+
+PATCHES=( "${FILESDIR}/wt-no-rundir.patch")
+
+src_configure() {
+ # TODO
+ #-DENABLE_QT6=$(usex qt6)
+
+ local mycmakeargs=(
+ -DLIB_INSTALL_DIR=$(get_libdir)
+ -DBUILD_EXAMPLES=OFF
+ -DINSTALL_DOCUMENTATION=$(usex doc)
+ -DDOCUMENTATION_DESTINATION="share/doc/${PF}"
+ -DENABLE_SSL=$(usex ssl)
+ -DENABLE_HARU=$(usex pdf)
+ -DENABLE_PANGO=$(usex pango)
+ -DENABLE_SQLITE=ON
+ -DENABLE_POSTGRES=$(usex postgres)
+ -DENABLE_FIREBIRD=$(usex firebird)
+ -DENABLE_MYSQL=$(usex mysql)
+ -DENABLE_QT4=OFF
+ -DENABLE_QT5=ON
+ -DENABLE_SAML=ON
+ -DENABLE_OPENGL=$(usex opengl)
+ )
+
+ cmake_src_configure
+}