diff options
author | Matthew Marlowe <mattm@gentoo.org> | 2012-01-05 10:43:59 +0000 |
---|---|---|
committer | Matthew Marlowe <mattm@gentoo.org> | 2012-01-05 10:43:59 +0000 |
commit | 2a7cbe4b4a1b16bd32b99002415634eae1dbb0b5 (patch) | |
tree | fb3d60d00e068e831f6f98584cfe58f6975f37aa /net-libs | |
parent | ppc stable (bug 393415) (diff) | |
download | gentoo-2-2a7cbe4b4a1b16bd32b99002415634eae1dbb0b5.tar.gz gentoo-2-2a7cbe4b4a1b16bd32b99002415634eae1dbb0b5.tar.bz2 gentoo-2-2a7cbe4b4a1b16bd32b99002415634eae1dbb0b5.zip |
First draft of wt 3.2.0 ebuild, masked until all major bugs resolved.
(Portage version: 2.1.10.41/cvs/Linux x86_64)
Diffstat (limited to 'net-libs')
-rw-r--r-- | net-libs/wt/ChangeLog | 8 | ||||
-rw-r--r-- | net-libs/wt/wt-3.2.0.ebuild | 107 |
2 files changed, 114 insertions, 1 deletions
diff --git a/net-libs/wt/ChangeLog b/net-libs/wt/ChangeLog index 1f0626a05ecf..5cddbf772a18 100644 --- a/net-libs/wt/ChangeLog +++ b/net-libs/wt/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for net-libs/wt # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-libs/wt/ChangeLog,v 1.4 2012/01/05 10:09:21 mattm Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-libs/wt/ChangeLog,v 1.5 2012/01/05 10:43:59 mattm Exp $ + +*wt-3.2.0 (05 Jan 2012) + + 05 Jan 2012; Matthew Marlowe <mattm@gentoo.org> +wt-3.2.0.ebuild: + first draft of wt 3.2.0 ebuild - it is temporarily masked until all major + bugs resolved 05 Jan 2012; Matthew Marlowe <mattm@gentoo.org> wt-3.1.5.ebuild, wt-3.1.6.ebuild, wt-3.1.7.ebuild, metadata.xml: diff --git a/net-libs/wt/wt-3.2.0.ebuild b/net-libs/wt/wt-3.2.0.ebuild new file mode 100644 index 000000000000..7d95eb231087 --- /dev/null +++ b/net-libs/wt/wt-3.2.0.ebuild @@ -0,0 +1,107 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-libs/wt/wt-3.2.0.ebuild,v 1.1 2012/01/05 10:43:59 mattm 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="" +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 Changelog INSTALL" + +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 WT_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 +} |