/[gentoo-x86]/dev-db/pgagent/pgagent-3.2.1.ebuild
Gentoo

Contents of /dev-db/pgagent/pgagent-3.2.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sat Jul 28 12:21:42 2012 UTC (2 years, 2 months ago) by titanofold
Branch: MAIN
Changes since 1.1: +2 -2 lines
Add GPL-2 to $LICENSE. Fixes bug 425922.

(Portage version: 2.1.10.65/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-db/pgagent/pgagent-3.2.1.ebuild,v 1.1 2012/04/28 18:34:11 titanofold Exp $
4
5 EAPI="4"
6
7 inherit cmake-utils eutils wxwidgets
8
9 MY_PN=${PN/a/A}
10
11 KEYWORDS="~x86 ~amd64"
12
13 DESCRIPTION="${MY_PN} is a job scheduler for PostgreSQL"
14 HOMEPAGE="http://www.pgadmin.org/download/pgagent.php"
15 SRC_URI="mirror://postgresql/pgadmin3/release/${PN}/${MY_PN}-${PV}-Source.tar.gz"
16 LICENSE="POSTGRESQL GPL-2"
17 SLOT="0"
18 IUSE=""
19
20 RDEPEND=">=dev-db/postgresql-base-8.3.0
21 x11-libs/wxGTK:2.8
22 "
23 DEPEND="${RDEPEND}
24 >=dev-util/cmake-2.6
25 "
26
27 S="${WORKDIR}/${MY_PN}-${PV}-Source"
28
29 src_prepare() {
30 sed -e "s:share):share/${P}):" \
31 -i CMakeLists.txt || die "Couldn't patch CMakeLists.txt"
32 }
33
34 src_configure() {
35 WX_GTK_VER="2.8"
36 if has_version "x11-libs/wxGTK[X]"; then
37 need-wxwidgets unicode
38 else
39 need-wxwidgets base-unicode
40 fi
41 mycmakeargs="-DSTATIC_BUILD:BOOLEAN=FALSE"
42 cmake-utils_src_configure
43 }
44
45 src_install() {
46 cmake-utils_src_install
47
48 newinitd "${FILESDIR}/pgagent.initd" ${PN}
49 newconfd "${FILESDIR}/pgagent.confd" ${PN}
50
51 rm "${ED}"/usr/{LICENSE,README} || die "Failed to remove useless docs"
52 }

  ViewVC Help
Powered by ViewVC 1.1.20