diff options
Diffstat (limited to 'dev-db/pgadmin3/pgadmin3-1.6.0_beta1.ebuild')
-rw-r--r-- | dev-db/pgadmin3/pgadmin3-1.6.0_beta1.ebuild | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/dev-db/pgadmin3/pgadmin3-1.6.0_beta1.ebuild b/dev-db/pgadmin3/pgadmin3-1.6.0_beta1.ebuild new file mode 100644 index 0000000..395e51a --- /dev/null +++ b/dev-db/pgadmin3/pgadmin3-1.6.0_beta1.ebuild @@ -0,0 +1,69 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit wxwidgets eutils autotools + +KEYWORDS="-*" + +MY_P=${PN}-${PV/_/-} + +DESCRIPTION="wxWidgets GUI for PostgreSQL." +HOMEPAGE="http://www.pgadmin.org/" +SRC_URI="mirror://postgresql/pgadmin3/release/v${PV/_/-}/src/${MY_P}.tar.gz" +LICENSE="Artistic" +SLOT="0" +IUSE="debug" + +DEPEND="=x11-libs/wxGTK-2.7* + >=dev-db/libpq-7.4 + >=dev-libs/libxml2-2.5 + >=dev-libs/libxslt-1.1" +RDEPEND="${DEPEND}" + +S=${WORKDIR}/${MY_P} + +pkg_setup() { + export WX_GTK_VER=2.7 + export WX_HOME=/usr + need-wxwidgets unicode +} + +src_unpack() { + unpack ${A} + cd "${S}" + + # --debug=yes/no for wx_config is only needed if wxGTK debug and + # release versions are installed aside. Which is not possible + # on Gentoo at the moment. + sed -i \ + -e 's/--debug=[yesno]* //g' \ + acinclude.m4 || die "sed failed" + eautoreconf +} + +src_compile() { + cd "${S}" + + # pgadmin3 inserts WX_HOME before the WX_CONFIG path below, so we have to strip "/usr" from it + econf \ + --with-wx-config=${WX_CONFIG/\/usr} \ + $(use_enable debug) \ + || die "econf failed" + emake || die "emake failed" +} + +src_install() { + cd "${S}" + + einstall || die "einstall failed" + + insinto /usr/share/pixmaps + newins "${S}/src/include/images/elephant48.xpm" pgadmin3.xpm + + insinto /usr/share/pgadmin3 + newins "${S}/src/include/images/elephant48.xpm" pgadmin3.xpm + + insinto /usr/share/applications + doins "${S}/pkg/pgadmin3.desktop" +} |