summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Volkov <pva@gentoo.org>2010-10-14 15:12:31 +0000
committerPeter Volkov <pva@gentoo.org>2010-10-14 15:12:31 +0000
commitd1ebfb3fa50882787b3fab1aa87a850f9856e7f3 (patch)
treeb74e6181d5bbc7431fc0ae297518c9d7e77d6aeb
parentx86 stable, bug 336869 (diff)
downloadhistorical-d1ebfb3fa50882787b3fab1aa87a850f9856e7f3.tar.gz
historical-d1ebfb3fa50882787b3fab1aa87a850f9856e7f3.tar.bz2
historical-d1ebfb3fa50882787b3fab1aa87a850f9856e7f3.zip
Initial import, the dependency of future releases of the eiskaltdcpp, thank Nikoli for this job.
Package-Manager: portage-2.1.9.18/cvs/Linux x86_64
-rw-r--r--net-libs/miniupnpc/Manifest3
-rw-r--r--net-libs/wt/ChangeLog11
-rw-r--r--net-libs/wt/Manifest5
-rw-r--r--net-libs/wt/files/wt-fix-automagic.patch282
-rw-r--r--net-libs/wt/metadata.xml20
-rw-r--r--net-libs/wt/wt-3.1.5.ebuild109
6 files changed, 429 insertions, 1 deletions
diff --git a/net-libs/miniupnpc/Manifest b/net-libs/miniupnpc/Manifest
index d957cf0a2191..a6b784b2986f 100644
--- a/net-libs/miniupnpc/Manifest
+++ b/net-libs/miniupnpc/Manifest
@@ -2,6 +2,7 @@ AUX 0003-Move-non-used-and-non-installed-test-executables-to-.patch 1202 RMD160
AUX 0004-Move-minixml-validation-test-to-check-target.patch 822 RMD160 633cd250dce2ff1c08290ecbd737ff77eacf9a4f SHA1 0f31ad648274a6c8d8fb928d8a72e86562e1e828 SHA256 e884a6c3a7d855be57d4774277a437c50efa5817e4a84142606ed332a0f0a5e6
AUX miniupnpc-Respect-LDFLAGS.patch 968 RMD160 54847e0996a08649c817c3265074660593c2c037 SHA1 56219da899959b22ac6a7c94b276f2d536fd87d2 SHA256 f522b3ab1745bb0ad000cac493ef453bfa6113b321f3544b7059f093d698fd29
DIST miniupnpc-1.4.20100609.tar.gz 50390 RMD160 75b9b147a6595da1f0336a946ece56412ca5ea38 SHA1 470c7ecd2b2c5c4c79fae4e632e52c02e0bd35f0 SHA256 f2708b8a98bb996ce0bb6dbc91b9f13c7796290f3996093ebdcc82e173c33f0e
+EBUILD miniupnpc-1.4.20100609-r1.ebuild 1515 RMD160 ff8a7e79d62f6d8df0cf9e52b9e0d0248e6a3b19 SHA1 bf286b7bcc5a746f09c12cf1fa75fff5c06c70f8 SHA256 54e3b426517541ec5cb53c45be4a154d0d461b8d84236f20c1d5e67633e21a75
EBUILD miniupnpc-1.4.20100609.ebuild 1470 RMD160 75e3e4cf4f1c9c0e551fefc6fa4dbd8a2f5f34c8 SHA1 f46b4f936fde796bf9dffa372c0e96410abc5562 SHA256 25560a5a8a75f19c62d1e9a067cbff3ac81ca40c44f31d455377193188a1752d
-MISC ChangeLog 599 RMD160 82985b7c30fd2d92312bc1061c7bdd6a382197f8 SHA1 cbadcf9b177d8affce765e4af0d929efe23f2821 SHA256 dea1b55540cd4277401233afa53245977b8e698c704e8040d2430e174964a50e
+MISC ChangeLog 820 RMD160 96b0faa6f10d565e99f294f5ab9bfb67f72aed2e SHA1 50ffca876857ead473737db87a77522dd30da8fc SHA256 954b323c8c506afc5c697c8531ccee693354405c19688ec7561b35cf2d68e846
MISC metadata.xml 330 RMD160 b948e90daad06396a9cfc57cb31ed482e4c08c51 SHA1 9669d60831ad498e45b74787923f86747fc06ea8 SHA256 df0181571d9fc9e1396369395da1eb5e059505d976e10a83528edc339e414c66
diff --git a/net-libs/wt/ChangeLog b/net-libs/wt/ChangeLog
new file mode 100644
index 000000000000..26903620e975
--- /dev/null
+++ b/net-libs/wt/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for net-libs/wt
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-libs/wt/ChangeLog,v 1.1 2010/10/14 15:12:31 pva Exp $
+
+*wt-3.1.5 (14 Oct 2010)
+
+ 14 Oct 2010; Peter Volkov <pva@gentoo.org> +wt-3.1.5.ebuild,
+ +files/wt-fix-automagic.patch, +metadata.xml:
+ Initial import, the dependency of future releases of the eiskaltdcpp,
+ thank Nikoli for this job.
+
diff --git a/net-libs/wt/Manifest b/net-libs/wt/Manifest
new file mode 100644
index 000000000000..0e7c04fb37f0
--- /dev/null
+++ b/net-libs/wt/Manifest
@@ -0,0 +1,5 @@
+AUX wt-fix-automagic.patch 8672 RMD160 5ef4f2acd21f0d91b35f7ef3b169574facd7bb44 SHA1 9b5c53421213dcdafd8362ce79e7ad27923a4b27 SHA256 991db3f4c7ff8715828f7f24c0d6ac6b5629da5380e6036e75d81244823aba70
+DIST wt-3.1.5.tar.gz 14709947 RMD160 21bb737291f91364628bc45f7dfb5d364900cabb SHA1 7589d30e3d12a46d9e8d206bbde32734a611778d SHA256 5ecc5b4e9faa60b4efb2ef3ea4268862c9ff07f40189f34a5cb8e3a0887dad36
+EBUILD wt-3.1.5.ebuild 2617 RMD160 f41926fe87cd411f8e046ff5acd5e3a2d9ef7bcc SHA1 8caf372584ce39bab9b3e4c99c50f38476f5fa14 SHA256 de4dda856f7d60d241bda633fb1ef35796e9960b6e96c5bb25d5b0cf242ee03e
+MISC ChangeLog 430 RMD160 ed90f5b23ffb84dcdae9e8ad568baeebf7d2e047 SHA1 c6f768b7163905de75d5c8e62bd8b7a1d8a2729d SHA256 ad39b5ed9581a37042fd6b4920d61654ed30705db0bf093ccb04ef8b60c8107b
+MISC metadata.xml 763 RMD160 2afb17b641ee385129f8d80721549068d89e6aab SHA1 94789541b0fc832f2ac1a2c7d8a4ad11f3ec6ca1 SHA256 e2e9c259e4f3cacc6c833b6edda685df884dbb831e5f903d647e620a9b3d3d73
diff --git a/net-libs/wt/files/wt-fix-automagic.patch b/net-libs/wt/files/wt-fix-automagic.patch
new file mode 100644
index 000000000000..ea7ca59b90a1
--- /dev/null
+++ b/net-libs/wt/files/wt-fix-automagic.patch
@@ -0,0 +1,282 @@
+From 414ad3a07f4bb9a4a6678d25e992d337771684b3 Mon Sep 17 00:00:00 2001
+From: Nikoli <nikoli@lavabit.com>
+Date: Wed, 22 Sep 2010 08:18:48 +0400
+Subject: [PATCH] cmake: fix automagic, config installation; make examples and resources optional
+
+---
+ CMakeLists.txt | 30 ++++++++++++++++++----------
+ examples/mandelbrot/CMakeLists.txt | 6 ++--
+ examples/style/CMakeLists.txt | 6 ++--
+ src/CMakeLists.txt | 28 +++++++++++++++-----------
+ src/Wt/CMakeLists.txt | 12 ++++++++++-
+ src/Wt/Dbo/backend/CMakeLists.txt | 17 ++++++++++++---
+ test/CMakeLists.txt | 37 +++++++++++++++++++++--------------
+ 7 files changed, 87 insertions(+), 49 deletions(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 896bd2d..9c6f679 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -27,6 +27,10 @@ SET(WTDBOPOSTGRES_SOVERSION 23)
+ #
+ # Various things that must be configured by the user or packager ...
+ #
++option(BUILD_EXAMPLES "Build examples" OFF)
++option(INSTALL_RESOURCES "Install resources directory" ON)
++option(ENABLE_GM "Enable GraphicsMagick, for supporting painting to raster images (PNG, GIF, ...) (WRasterImage)" ON)
++option(ENABLE_HARU "Enable Haru Free PDF Library, which is used to provide support for painting to PDF (WPdfImage)" ON)
+
+ IF(NOT SHARED_LIBS)
+ IF(WIN32)
+@@ -296,11 +300,11 @@ IF (DOXYGEN_FOUND)
+ ADD_DEPENDENCIES(doc doxygen-examples)
+ ENDIF (DOXYGEN_FOUND)
+
+-IF(WIN32)
+- SUBDIRS(src examples)
+-ELSE(WIN32)
+- SUBDIRS(src EXCLUDE_FROM_ALL examples)
+-ENDIF(WIN32)
++SUBDIRS(src)
++
++IF(BUILD_EXAMPLES)
++ SUBDIRS(examples)
++ENDIF(BUILD_EXAMPLES)
+
+ IF(BUILD_TESTS)
+ SUBDIRS(test)
+@@ -313,20 +317,24 @@ ENDIF( NOT DEFINED WT_CMAKE_FINDER_INSTALL_DIR)
+ INSTALL(FILES ${PROJECT_SOURCE_DIR}/cmake/FindWt.cmake DESTINATION
+ ${CMAKE_INSTALL_PREFIX}/${WT_CMAKE_FINDER_INSTALL_DIR} )
+
++IF(INSTALL_RESOURCES)
+ INSTALL(DIRECTORY ${PROJECT_SOURCE_DIR}/resources DESTINATION
+ ${CMAKE_INSTALL_PREFIX}/share/Wt/)
++ENDIF(INSTALL_RESOURCES)
+
+-IF(NOT EXISTS ${CONFIGDIR}/wt_config.xml)
++IF(NOT EXISTS ${DESTDIR}${CONFIGDIR}/wt_config.xml)
+ INSTALL(FILES ${WT_BINARY_DIR}/wt_config.xml DESTINATION ${CONFIGDIR})
+-ENDIF (NOT EXISTS ${CONFIGDIR}/wt_config.xml)
++ENDIF (NOT EXISTS ${DESTDIR}${CONFIGDIR}/wt_config.xml)
+
+-IF(HARU_FOUND)
++IF(ENABLE_HARU AND HARU_FOUND)
++ SET(HAVE_HARU ON)
+ SET(WT_HAS_WPDFIMAGE true)
+-ENDIF(HARU_FOUND)
++ENDIF(ENABLE_HARU AND HARU_FOUND)
+
+-IF(GM_FOUND)
++IF(ENABLE_GM AND GM_FOUND)
++ SET(HAVE_GM ON)
+ SET(WT_HAS_WRASTERIMAGE true)
+-ENDIF(GM_FOUND)
++ENDIF(ENABLE_GM AND GM_FOUND)
+
+ # Compile time constants & make sure our build finds it
+ FILE(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/Wt)
+diff --git a/examples/mandelbrot/CMakeLists.txt b/examples/mandelbrot/CMakeLists.txt
+index 176cab6..64b8ff7 100644
+--- a/examples/mandelbrot/CMakeLists.txt
++++ b/examples/mandelbrot/CMakeLists.txt
+@@ -1,6 +1,6 @@
+-IF(NOT GM_FOUND)
++IF(NOT HAVE_GM)
+ MESSAGE(STATUS "** Not building mandelbrot example: requires Wt::WRasterImage.")
+-ELSE(NOT GM_FOUND)
++ELSE(NOT HAVE_GM)
+
+ WT_ADD_EXAMPLE(mandelbrot.wt MandelbrotImage.C MandelbrotExample.C)
+
+@@ -11,5 +11,5 @@ ELSE(NOT GM_FOUND)
+
+ ADD_DEPENDENCIES(mandelbrot.wt wt ${EXAMPLES_CONNECTOR})
+
+-ENDIF(NOT GM_FOUND)
++ENDIF(NOT HAVE_GM)
+
+diff --git a/examples/style/CMakeLists.txt b/examples/style/CMakeLists.txt
+index 6443035..04a71f7 100644
+--- a/examples/style/CMakeLists.txt
++++ b/examples/style/CMakeLists.txt
+@@ -1,8 +1,8 @@
+-IF(NOT GM_FOUND)
++IF(NOT HAVE_GM)
+
+ MESSAGE(STATUS "** Not building style example: requires WRasterImage.")
+
+-ELSE(NOT GM_FOUND)
++ELSE(NOT HAVE_GM)
+
+ WT_ADD_EXAMPLE(styleexample.wt CornerImage.C RoundedWidget.C StyleExample.C)
+
+@@ -12,5 +12,5 @@ ELSE(NOT GM_FOUND)
+
+ ADD_DEPENDENCIES(styleexample.wt wt ${EXAMPLES_CONNECTOR})
+
+-ENDIF(NOT GM_FOUND)
++ENDIF(NOT HAVE_GM)
+
+diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
+index 7d11b67..4523540 100644
+--- a/src/CMakeLists.txt
++++ b/src/CMakeLists.txt
+@@ -238,33 +238,37 @@ IF (MULTI_THREADED_BUILD)
+ SET(libsources ${libsources} web/SocketNotifier.C)
+ ENDIF(MULTI_THREADED_BUILD)
+
+-IF(HARU_FOUND)
++IF(HAVE_HARU)
+ SET(libsources ${libsources} Wt/WPdfImage.C)
+-ENDIF(HARU_FOUND)
++ENDIF(HAVE_HARU)
+
+-IF(GM_FOUND)
++IF(HAVE_GM)
+ SET(libsources ${libsources} Wt/WRasterImage.C)
+-ENDIF(GM_FOUND)
++ENDIF(HAVE_GM)
+
+ ADD_LIBRARY(wt ${libsources})
+ TARGET_LINK_LIBRARIES(wt ${BOOST_WT_LIBRARIES})
+
+-IF(HARU_FOUND)
++IF(HAVE_HARU)
+ TARGET_LINK_LIBRARIES(wt ${HARU_LIBRARIES})
+ INCLUDE_DIRECTORIES(${HARU_INCLUDE_DIRS})
+-ELSE(HARU_FOUND)
++ELSE(HAVE_HARU)
+ MESSAGE("** Disabling PDF support (WPdfImage): requires libharu.")
+- MESSAGE(" Indicate the location of your haru library using -DHARU_PREFIX=...")
+-ENDIF(HARU_FOUND)
++ IF(ENABLE_HARU)
++ MESSAGE(" Indicate the location of your haru library using -DHARU_PREFIX=...")
++ ENDIF(ENABLE_HARU)
++ENDIF(HAVE_HARU)
+
+-IF(GM_FOUND)
++IF(HAVE_GM)
+ TARGET_LINK_LIBRARIES(wt ${GM_LIBRARIES})
+ INCLUDE_DIRECTORIES(${GM_INCLUDE_DIRS})
+ ADD_DEFINITIONS(-DHAVE_RASTER_IMAGE)
+-ELSE(GM_FOUND)
++ELSE(HAVE_GM)
+ MESSAGE("** Disabling raster image support (WRasterImage): requires graphicsmagick.")
+- MESSAGE(" Indicate the location of your graphicsmagick library using -DGM_PREFIX=...")
+-ENDIF(GM_FOUND)
++ IF(ENABLE_GM)
++ MESSAGE(" Indicate the location of your graphicsmagick library using -DGM_PREFIX=...")
++ ENDIF(ENABLE_GM)
++ENDIF(HAVE_GM)
+
+ IF(MULTI_THREADED_BUILD)
+ TARGET_LINK_LIBRARIES(wt ${CMAKE_THREAD_LIBS_INIT})
+diff --git a/src/Wt/CMakeLists.txt b/src/Wt/CMakeLists.txt
+index d5a3c58..67faae8 100644
+--- a/src/Wt/CMakeLists.txt
++++ b/src/Wt/CMakeLists.txt
+@@ -1,4 +1,14 @@
+-SUBDIRS(Dbo Ext Chart Http Test)
++SUBDIRS(Chart Http Test)
++
++# FIXME we should use (HAVE_SQLITE OR HAVE_POSTGRES)
++IF(ENABLE_SQLITE OR ENABLE_POSTGRES)
++ SUBDIRS(Dbo)
++ENDIF(ENABLE_SQLITE OR ENABLE_POSTGRES)
++
++option(ENABLE_EXT "Build Wt Ext library with JavaScript-only widgets (http://extjs.com/)" ON)
++IF(ENABLE_EXT)
++ SUBDIRS(Ext)
++ENDIF(ENABLE_EXT)
+
+ INSTALL_FILES(/include/Wt "^W.*[^C~]$")
+ #INSTALL(
+diff --git a/src/Wt/Dbo/backend/CMakeLists.txt b/src/Wt/Dbo/backend/CMakeLists.txt
+index 653a830..7668b90 100644
+--- a/src/Wt/Dbo/backend/CMakeLists.txt
++++ b/src/Wt/Dbo/backend/CMakeLists.txt
+@@ -1,3 +1,8 @@
++OPTION(ENABLE_SQLITE "Build SQLite3 backend for Wt::Dbo" ON)
++OPTION(ENABLE_POSTGRES "Build PostgreSQL backend for Wt::Dbo" OFF)
++
++IF(ENABLE_SQLITE)
++
+ OPTION( USE_SYSTEM_SQLITE3 "Use system-wide Sqlite3 instead of Wt's version" OFF)
+
+ IF(USE_SYSTEM_SQLITE3)
+@@ -41,7 +46,9 @@ PROPERTIES
+ INSTALL_FILES(/include/Wt/Dbo/backend "^Sqlite3$")
+ INSTALL_FILES(/include/Wt/Dbo/backend "^.*Sqlite3.*h$")
+
+-IF(POSTGRES_FOUND)
++ENDIF(ENABLE_SQLITE)
++
++IF(ENABLE_POSTGRES AND POSTGRES_FOUND)
+ MESSAGE("** Wt::Dbo: building Postgres backend.")
+ ADD_LIBRARY(wtdbopostgres
+ Postgres.C
+@@ -65,8 +72,10 @@ IF(POSTGRES_FOUND)
+
+ INSTALL_FILES(/include/Wt/Dbo/backend "^Postgres$")
+ INSTALL_FILES(/include/Wt/Dbo/backend "^.*Postgres.*h$")
+-ELSE(POSTGRES_FOUND)
++ELSE(ENABLE_POSTGRES AND POSTGRES_FOUND)
+ MESSAGE("** Wt::Dbo: not building Postgres backend.")
+- MESSAGE(" Indicate the location of your postgres installation using -DPOSTGRES_PREFIX=...")
+-ENDIF(POSTGRES_FOUND)
++ IF(ENABLE_POSTGRES)
++ MESSAGE(" Indicate the location of your postgres installation using -DPOSTGRES_PREFIX=...")
++ ENDIF(ENABLE_POSTGRES)
++ENDIF(ENABLE_POSTGRES AND POSTGRES_FOUND)
+
+diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
+index d18ca2e..2a928ae 100644
+--- a/test/CMakeLists.txt
++++ b/test/CMakeLists.txt
+@@ -1,20 +1,27 @@
+-ADD_EXECUTABLE(test
+- test.C
+- chart/WChartTest.C
+- dbo/DboTest.C
+- dbo/DboTest2.C
+- models/WBatchEditProxyModelTest.C
+- utf8/Utf8Test.C
+- wdatetime/WDateTimeTest.C
+-)
++# Tests need sqlite
++IF(ENABLE_SQLITE)
+
+-# SQLITE3 test
+-TARGET_LINK_LIBRARIES(test wt wtdbo wtdbosqlite3)
+-ADD_DEFINITIONS(-DSQLITE3)
++ ADD_EXECUTABLE(test
++ test.C
++ chart/WChartTest.C
++ dbo/DboTest.C
++ dbo/DboTest2.C
++ models/WBatchEditProxyModelTest.C
++ utf8/Utf8Test.C
++ wdatetime/WDateTimeTest.C
++ )
+
+-# POSTGRES test
+-#TARGET_LINK_LIBRARIES(test wt wtdbo wtdbopostgres)
+-#ADD_DEFINITIONS(-DPOSTGRES)
++ # SQLITE3 test
++ TARGET_LINK_LIBRARIES(test wt wtdbo wtdbosqlite3)
++ ADD_DEFINITIONS(-DSQLITE3)
++
++ENDIF(ENABLE_SQLITE)
++
++## # POSTGRES test
++## IF(ENABLE_POSTGRES AND POSTGRES_FOUND)
++## TARGET_LINK_LIBRARIES(test wt wtdbo wtdbopostgres)
++## ADD_DEFINITIONS(-DPOSTGRES)
++## ENDIF(ENABLE_POSTGRES AND POSTGRES_FOUND)
+
+ INCLUDE_DIRECTORIES(${WT_SOURCE_DIR}/src)
+
+--
+1.7.2.2
+
diff --git a/net-libs/wt/metadata.xml b/net-libs/wt/metadata.xml
new file mode 100644
index 000000000000..db706bf4d3d3
--- /dev/null
+++ b/net-libs/wt/metadata.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>no-herd</herd>
+ <maintainer>
+ <email>pva@gentoo.org</email>
+ <name>Peter Volkov</name>
+ </maintainer>
+ <maintainer>
+ <email>nikoli@lavabit.com</email>
+ <name>Nikoli</name>
+ </maintainer>
+ <use>
+ <flag name="extjs">Build Wt Ext library with JavaScript-only widgets (http://extjs.com/)</flag>
+ <flag name="fcgi">Compile in FCGI connector</flag>
+ <flag name="graphicsmagick">Enable GraphicsMagick, for supporting painting to raster images (PNG, GIF, ...) (WRasterImage)</flag>
+ <flag name="resources">Install resources directory</flag>
+ <flag name="server">Compile in stand-alone httpd connector</flag>
+ </use>
+</pkgmetadata>
diff --git a/net-libs/wt/wt-3.1.5.ebuild b/net-libs/wt/wt-3.1.5.ebuild
new file mode 100644
index 000000000000..0a70025c177d
--- /dev/null
+++ b/net-libs/wt/wt-3.1.5.ebuild
@@ -0,0 +1,109 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-libs/wt/wt-3.1.5.ebuild,v 1.1 2010/10/14 15:12:31 pva Exp $
+
+EAPI="2"
+
+inherit cmake-utils
+
+DESCRIPTION="C++ library for developing interactive web applications."
+HOMEPAGE="http://webtoolkit.eu/"
+SRC_URI="mirror://sourceforge/witty/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc +extjs fcgi graphicsmagick pdf postgres resources +server ssl +sqlite test zlib"
+
+RDEPEND="
+ >=dev-libs/boost-1.36
+ graphicsmagick? ( media-gfx/graphicsmagick )
+ pdf? ( media-libs/libharu )
+ postgres? ( dev-db/postgresql-base )
+ sqlite? ( dev-db/sqlite:3 )
+ fcgi? (
+ dev-libs/fcgi
+ virtual/httpd-fastcgi
+ )
+ server? (
+ ssl? ( dev-libs/openssl )
+ zlib? ( sys-libs/zlib )
+ )
+"
+DEPEND="${RDEPEND}"
+
+DOCS="AUTHORS BUGS Changelog INSTALL"
+
+PATCHES=( "${FILESDIR}"/${PN}-fix-automagic.patch )
+
+pkg_setup() {
+ if use !server && use !fcgi; then
+ ewarn "You have to select at least built-in server support or fcgi support."
+ ewarn "Invalid use flag combination, enable at least one of: server, fcgi"
+ fi
+
+ if use test && use !sqlite; then
+ ewarn "Tests need sqlite, disabling."
+ fi
+}
+
+src_prepare() {
+ # just to be sure
+ rm -rf Wt/Dbo/backend/amalgamation
+
+ # fix png linking
+ if use pdf; then
+ sed -e 's/-lpng12/-lpng/' \
+ -i cmake/WtFindHaru.txt || die
+ fi
+
+ base_src_prepare
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DDESTDIR="${D}"
+ -DLIB_INSTALL_DIR=$(get_libdir)
+ $(cmake-utils_use test BUILD_TESTS)
+ -DSHARED_LIBS=ON
+ -DMULTI_THREADED=ON
+ -DUSE_SYSTEM_SQLITE3=ON
+ $(cmake-utils_use extjs ENABLE_EXT)
+ $(cmake-utils_use graphicsmagick ENABLE_GM)
+ $(cmake-utils_use pdf ENABLE_HARU)
+ $(cmake-utils_use postgres ENABLE_POSTGRES)
+ $(cmake-utils_use sqlite ENABLE_SQLITE)
+ $(cmake-utils_use fcgi CONNECTOR_FCGI)
+ $(cmake-utils_use server CONNECTOR_HTTP)
+ $(cmake-utils_use ssl HTTP_WITH_SSL)
+ $(cmake-utils_use zlib HTTP_WITH_ZLIB)
+ -DBUILD_EXAMPLES=OFF
+ $(cmake-utils_use resources INSTALL_RESOURCES)
+ )
+
+ cmake-utils_src_configure
+}
+
+src_test() {
+ # Tests need sqlite
+ if use sqlite; then
+ pushd "${CMAKE_BUILD_DIR}" > /dev/null
+ ./test/test || die
+ popd > /dev/null
+ fi
+}
+
+src_install() {
+ cmake-utils_src_install
+
+ use doc && dohtml -A pdf,xhtml -r doc/*
+}
+
+pkg_postinst() {
+ if use fcgi; then
+ elog "You selected fcgi support. Please make sure that the web-server"
+ elog "has fcgi support and access to the fcgi socket."
+ elog "You can use spawn-fcgi to spawn the witty-processes and run them"
+ elog "in a chroot environment."
+ fi
+}