Mercurial > hg > portage
annotate dev-db/pgadmin3/pgadmin3-1.6.3.ebuild @ 61:efdeddd494e9
pull changes from holgi
author | Dirk Olmes <dirk@xanthippe.ping.de> |
---|---|
date | Fri, 15 Aug 2008 17:26:54 +0200 |
parents | 126096e3d51b |
children |
rev | line source |
---|---|
25
126096e3d51b
added ebuilds from the svn portage tree
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
1 # Copyright 1999-2006 Gentoo Foundation |
126096e3d51b
added ebuilds from the svn portage tree
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
2 # Distributed under the terms of the GNU General Public License v2 |
126096e3d51b
added ebuilds from the svn portage tree
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
3 # |
126096e3d51b
added ebuilds from the svn portage tree
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
4 |
126096e3d51b
added ebuilds from the svn portage tree
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
5 inherit wxwidgets eutils autotools |
126096e3d51b
added ebuilds from the svn portage tree
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
6 |
126096e3d51b
added ebuilds from the svn portage tree
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
7 KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86" |
126096e3d51b
added ebuilds from the svn portage tree
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
8 |
126096e3d51b
added ebuilds from the svn portage tree
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
9 DESCRIPTION="wxWidgets GUI for PostgreSQL." |
126096e3d51b
added ebuilds from the svn portage tree
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
10 HOMEPAGE="http://www.pgadmin.org/" |
126096e3d51b
added ebuilds from the svn portage tree
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
11 SRC_URI="mirror://postgresql/pgadmin3/release/v${PV}/src/${P}.tar.gz" |
126096e3d51b
added ebuilds from the svn portage tree
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
12 LICENSE="Artistic" |
126096e3d51b
added ebuilds from the svn portage tree
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
13 SLOT="0" |
126096e3d51b
added ebuilds from the svn portage tree
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
14 IUSE="debug" |
126096e3d51b
added ebuilds from the svn portage tree
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
15 |
126096e3d51b
added ebuilds from the svn portage tree
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
16 DEPEND="=x11-libs/wxGTK-2.8* |
126096e3d51b
added ebuilds from the svn portage tree
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
17 >=dev-db/libpq-7.4 |
126096e3d51b
added ebuilds from the svn portage tree
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
18 >=dev-libs/libxml2-2.5 |
126096e3d51b
added ebuilds from the svn portage tree
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
19 >=dev-libs/libxslt-1.1" |
126096e3d51b
added ebuilds from the svn portage tree
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
20 RDEPEND="${DEPEND}" |
126096e3d51b
added ebuilds from the svn portage tree
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
21 |
126096e3d51b
added ebuilds from the svn portage tree
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
22 pkg_setup() { |
126096e3d51b
added ebuilds from the svn portage tree
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
23 export WX_GTK_VER=2.8 |
126096e3d51b
added ebuilds from the svn portage tree
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
24 export WX_HOME=/usr |
126096e3d51b
added ebuilds from the svn portage tree
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
25 need-wxwidgets unicode |
126096e3d51b
added ebuilds from the svn portage tree
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
26 } |
126096e3d51b
added ebuilds from the svn portage tree
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
27 |
126096e3d51b
added ebuilds from the svn portage tree
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
28 src_unpack() { |
126096e3d51b
added ebuilds from the svn portage tree
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
29 unpack ${A} |
126096e3d51b
added ebuilds from the svn portage tree
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
30 cd "${S}" |
126096e3d51b
added ebuilds from the svn portage tree
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
31 |
126096e3d51b
added ebuilds from the svn portage tree
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
32 # --debug=yes/no for wx_config is only needed if wxGTK debug and |
126096e3d51b
added ebuilds from the svn portage tree
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
33 # release versions are installed aside. Which is not possible |
126096e3d51b
added ebuilds from the svn portage tree
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
34 # on Gentoo at the moment. |
126096e3d51b
added ebuilds from the svn portage tree
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
35 sed -i \ |
126096e3d51b
added ebuilds from the svn portage tree
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
36 -e 's/--debug=[yesno]* //g' \ |
126096e3d51b
added ebuilds from the svn portage tree
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
37 acinclude.m4 || die "sed failed" |
126096e3d51b
added ebuilds from the svn portage tree
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
38 eautoreconf |
126096e3d51b
added ebuilds from the svn portage tree
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
39 } |
126096e3d51b
added ebuilds from the svn portage tree
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
40 |
126096e3d51b
added ebuilds from the svn portage tree
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
41 src_compile() { |
126096e3d51b
added ebuilds from the svn portage tree
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
42 cd "${S}" |
126096e3d51b
added ebuilds from the svn portage tree
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
43 patch -p0 < ${FILESDIR}/patch.p0 |
126096e3d51b
added ebuilds from the svn portage tree
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
44 # pgadmin3 inserts WX_HOME before the WX_CONFIG path below, so we have to strip "/usr" from it |
126096e3d51b
added ebuilds from the svn portage tree
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
45 econf \ |
126096e3d51b
added ebuilds from the svn portage tree
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
46 --with-wx-config=/${WX_CONFIG/\ /usr} \ |
126096e3d51b
added ebuilds from the svn portage tree
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
47 --with-wx-version=2.8 \ |
126096e3d51b
added ebuilds from the svn portage tree
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
48 || die "econf failed" |
126096e3d51b
added ebuilds from the svn portage tree
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
49 emake || die "emake failed" |
126096e3d51b
added ebuilds from the svn portage tree
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
50 } |
126096e3d51b
added ebuilds from the svn portage tree
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
51 |
126096e3d51b
added ebuilds from the svn portage tree
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
52 src_install() { |
126096e3d51b
added ebuilds from the svn portage tree
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
53 cd "${S}" |
126096e3d51b
added ebuilds from the svn portage tree
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
54 |
126096e3d51b
added ebuilds from the svn portage tree
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
55 einstall || die "einstall failed" |
126096e3d51b
added ebuilds from the svn portage tree
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
56 |
126096e3d51b
added ebuilds from the svn portage tree
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
57 insinto /usr/share/pixmaps |
126096e3d51b
added ebuilds from the svn portage tree
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
58 newins "${S}/src/include/images/elephant48.xpm" pgadmin3.xpm |
126096e3d51b
added ebuilds from the svn portage tree
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
59 |
126096e3d51b
added ebuilds from the svn portage tree
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
60 insinto /usr/share/pgadmin3 |
126096e3d51b
added ebuilds from the svn portage tree
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
61 newins "${S}/src/include/images/elephant48.xpm" pgadmin3.xpm |
126096e3d51b
added ebuilds from the svn portage tree
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
62 |
126096e3d51b
added ebuilds from the svn portage tree
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
63 insinto /usr/share/applications |
126096e3d51b
added ebuilds from the svn portage tree
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
64 doins "${S}/pkg/pgadmin3.desktop" |
126096e3d51b
added ebuilds from the svn portage tree
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
65 } |