Gentoo Archives: gentoo-commits

From: "Matthew Marlow (mattm)" <mattm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-libs/wt: wt-3.2.2_p1.ebuild ChangeLog wt-3.2.2.ebuild
Date: Tue, 02 Oct 2012 06:07:17
Message-Id: 20121002060707.7EB3921600@flycatcher.gentoo.org
1 mattm 12/10/02 06:07:07
2
3 Modified: ChangeLog
4 Added: wt-3.2.2_p1.ebuild
5 Removed: wt-3.2.2.ebuild
6 Log:
7 Bump for wt-3.2.2_p1.
8 First attempts at fixing bug 425436 and hopefully bump will resolve other issues.
9
10 (Portage version: 2.1.11.23/cvs/Linux x86_64)
11
12 Revision Changes Path
13 1.12 net-libs/wt/ChangeLog
14
15 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/wt/ChangeLog?rev=1.12&view=markup
16 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/wt/ChangeLog?rev=1.12&content-type=text/plain
17 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/wt/ChangeLog?r1=1.11&r2=1.12
18
19 Index: ChangeLog
20 ===================================================================
21 RCS file: /var/cvsroot/gentoo-x86/net-libs/wt/ChangeLog,v
22 retrieving revision 1.11
23 retrieving revision 1.12
24 diff -u -r1.11 -r1.12
25 --- ChangeLog 27 Jul 2012 13:29:41 -0000 1.11
26 +++ ChangeLog 2 Oct 2012 06:07:07 -0000 1.12
27 @@ -1,6 +1,13 @@
28 # ChangeLog for net-libs/wt
29 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
30 -# $Header: /var/cvsroot/gentoo-x86/net-libs/wt/ChangeLog,v 1.11 2012/07/27 13:29:41 mattm Exp $
31 +# $Header: /var/cvsroot/gentoo-x86/net-libs/wt/ChangeLog,v 1.12 2012/10/02 06:07:07 mattm Exp $
32 +
33 +*wt-3.2.2_p1 (02 Oct 2012)
34 +
35 + 02 Oct 2012; Matthew Marlowe <mattm@g.o> +wt-3.2.2_p1.ebuild,
36 + -wt-3.2.2.ebuild:
37 + Bump for wt-3.2.2_p1. First attempts at fixing bug 425436 and hopefully bump
38 + will resolve other issues.
39
40 *wt-3.2.2 (27 Jul 2012)
41
42
43
44
45 1.1 net-libs/wt/wt-3.2.2_p1.ebuild
46
47 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/wt/wt-3.2.2_p1.ebuild?rev=1.1&view=markup
48 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/wt/wt-3.2.2_p1.ebuild?rev=1.1&content-type=text/plain
49
50 Index: wt-3.2.2_p1.ebuild
51 ===================================================================
52 # Copyright 1999-2012 Gentoo Foundation
53 # Distributed under the terms of the GNU General Public License v2
54 # $Header: /var/cvsroot/gentoo-x86/net-libs/wt/wt-3.2.2_p1.ebuild,v 1.1 2012/10/02 06:07:07 mattm Exp $
55
56 EAPI="2"
57
58 inherit cmake-utils versionator
59
60 DESCRIPTION="C++ library for developing interactive web applications."
61 MY_P=${P/_/-}
62 HOMEPAGE="http://webtoolkit.eu/"
63 SRC_URI="mirror://sourceforge/witty/wt/3.2.2/${MY_P}.tar.gz"
64
65 LICENSE="GPL-2"
66 SLOT="0"
67 KEYWORDS="~amd64 ~x86"
68 IUSE="doc +extjs fcgi graphicsmagick pdf postgres resources +server ssl +sqlite test zlib"
69
70 RDEPEND="
71 >=dev-libs/boost-1.36
72 graphicsmagick? ( media-gfx/graphicsmagick )
73 pdf? ( media-libs/libharu )
74 postgres? ( dev-db/postgresql-base )
75 sqlite? ( dev-db/sqlite:3 )
76 fcgi? (
77 dev-libs/fcgi
78 virtual/httpd-fastcgi
79 )
80 server? (
81 ssl? ( dev-libs/openssl )
82 zlib? ( sys-libs/zlib )
83 )
84 "
85 DEPEND="${RDEPEND}"
86
87 DOCS="Changelog INSTALL"
88 S=${WORKDIR}/${MY_P}
89
90 pkg_setup() {
91 if use !server && use !fcgi; then
92 ewarn "You have to select at least built-in server support or fcgi support."
93 ewarn "Invalid use flag combination, enable at least one of: server, fcgi"
94 fi
95
96 if use test && use !sqlite; then
97 ewarn "Tests need sqlite, disabling."
98 fi
99 }
100
101 src_prepare() {
102 # just to be sure
103 rm -rf Wt/Dbo/backend/amalgamation
104
105 # fix png linking
106 if use pdf; then
107 sed -e 's/-lpng12/-lpng/' \
108 -i cmake/WtFindHaru.txt || die
109 fi
110
111 base_src_prepare
112 }
113
114 src_configure() {
115 BOOST_PKG="$(best_version ">=dev-libs/boost-1.36.0")"
116 BOOST_VER="$(get_version_component_range 1-2 "${BOOST_PKG/*boost-/}")"
117 BOOST_VER="$(replace_all_version_separators _ "${BOOST_VER}")"
118 BOOST_INC="/usr/include/boost-${BOOST_VER}"
119
120 local mycmakeargs=(
121 -DDESTDIR="${D}"
122 -DLIB_INSTALL_DIR=$(get_libdir)
123 $(cmake-utils_use test BUILD_TESTS)
124 -DSHARED_LIBS=ON
125 -DMULTI_THREADED=ON
126 -DUSE_SYSTEM_SQLITE3=ON
127 $(cmake-utils_use extjs ENABLE_EXT)
128 $(cmake-utils_use graphicsmagick ENABLE_GM)
129 $(cmake-utils_use pdf ENABLE_HARU)
130 $(cmake-utils_use postgres ENABLE_POSTGRES)
131 $(cmake-utils_use sqlite ENABLE_SQLITE)
132 $(cmake-utils_use fcgi CONNECTOR_FCGI)
133 $(cmake-utils_use server CONNECTOR_HTTP)
134 $(cmake-utils_use ssl WT_WITH_SSL)
135 $(cmake-utils_use zlib HTTP_WITH_ZLIB)
136 -DBUILD_EXAMPLES=OFF
137 $(cmake-utils_use resources INSTALL_RESOURCES)
138 )
139
140 cmake-utils_src_configure
141 }
142
143 src_test() {
144 # Tests need sqlite
145 if use sqlite; then
146 pushd "${CMAKE_BUILD_DIR}" > /dev/null
147 ./test/test || die
148 popd > /dev/null
149 fi
150 }
151
152 src_install() {
153 cmake-utils_src_install
154
155 use doc && dohtml -A pdf,xhtml -r doc/*
156 }
157
158 pkg_postinst() {
159 if use fcgi; then
160 elog "You selected fcgi support. Please make sure that the web-server"
161 elog "has fcgi support and access to the fcgi socket."
162 elog "You can use spawn-fcgi to spawn the witty-processes and run them"
163 elog "in a chroot environment."
164 fi
165 }