1 |
commit: 0eb38a4eb53ac0a798193b965329cd7658e25669 |
2 |
Author: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Oct 24 10:48:31 2015 +0000 |
4 |
Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Oct 24 10:48:31 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0eb38a4e |
7 |
|
8 |
dev-db/pgagent: Support wxGTK:3.0 |
9 |
|
10 |
Package-Manager: portage-2.2.23 |
11 |
|
12 |
dev-db/pgagent/pgagent-3.4.0-r1.ebuild | 54 ++++++++++++++++++++++++++++++++++ |
13 |
1 file changed, 54 insertions(+) |
14 |
|
15 |
diff --git a/dev-db/pgagent/pgagent-3.4.0-r1.ebuild b/dev-db/pgagent/pgagent-3.4.0-r1.ebuild |
16 |
new file mode 100644 |
17 |
index 0000000..3df4def |
18 |
--- /dev/null |
19 |
+++ b/dev-db/pgagent/pgagent-3.4.0-r1.ebuild |
20 |
@@ -0,0 +1,54 @@ |
21 |
+# Copyright 1999-2015 Gentoo Foundation |
22 |
+# Distributed under the terms of the GNU General Public License v2 |
23 |
+# $Id$ |
24 |
+ |
25 |
+EAPI="5" |
26 |
+CMAKE_IN_SOURCE_BUILD=1 |
27 |
+WX_GTK_VER="3.0" |
28 |
+ |
29 |
+inherit cmake-utils eutils wxwidgets |
30 |
+ |
31 |
+MY_PN=${PN/a/A} |
32 |
+ |
33 |
+KEYWORDS="~amd64 ~x86" |
34 |
+ |
35 |
+DESCRIPTION="${MY_PN} is a job scheduler for PostgreSQL" |
36 |
+HOMEPAGE="http://www.pgadmin.org/download/pgagent.php" |
37 |
+SRC_URI="mirror://postgresql/pgadmin3/release/${PN}/${MY_PN}-${PV}-Source.tar.gz" |
38 |
+LICENSE="POSTGRESQL GPL-2" |
39 |
+SLOT="0" |
40 |
+IUSE="" |
41 |
+ |
42 |
+RDEPEND=">=dev-db/postgresql-9.0.0 |
43 |
+ x11-libs/wxGTK:${WX_GTK_VER} |
44 |
+" |
45 |
+DEPEND="${RDEPEND} |
46 |
+ >=dev-util/cmake-2.6 |
47 |
+" |
48 |
+ |
49 |
+S="${WORKDIR}/${MY_PN}-${PV}-Source" |
50 |
+ |
51 |
+src_prepare() { |
52 |
+ sed -e "s:share):share/${P}):" \ |
53 |
+ -i CMakeLists.txt || die "Couldn't patch CMakeLists.txt" |
54 |
+ sed -i -e '/SET(WX_VERSION "2.8")/d' CMakeLists.txt || die |
55 |
+} |
56 |
+ |
57 |
+src_configure() { |
58 |
+ if has_version "x11-libs/wxGTK[X]"; then |
59 |
+ need-wxwidgets unicode |
60 |
+ else |
61 |
+ need-wxwidgets base-unicode |
62 |
+ fi |
63 |
+ mycmakeargs="-DSTATIC_BUILD:BOOLEAN=FALSE -DWX_VERSION=${WX_GTK_VER}" |
64 |
+ cmake-utils_src_configure |
65 |
+} |
66 |
+ |
67 |
+src_install() { |
68 |
+ cmake-utils_src_install |
69 |
+ |
70 |
+ newinitd "${FILESDIR}/pgagent.initd" ${PN} |
71 |
+ newconfd "${FILESDIR}/pgagent.confd" ${PN} |
72 |
+ |
73 |
+ rm "${ED}"/usr/{LICENSE,README} || die "Failed to remove useless docs" |
74 |
+} |