# ChangeLog for dev-db/pgadmin3
-# Copyright 2000-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-db/pgadmin3/ChangeLog,v 1.24 2005/11/08 16:37:01 nakano Exp $
+# Copyright 2000-2006 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-db/pgadmin3/ChangeLog,v 1.25 2006/02/17 19:27:09 nakano Exp $
+
+*pgadmin3-1.4.1 (17 Feb 2006)
+
+ 17 Feb 2006; Masatomo Nakano <nakano@gentoo.org> +pgadmin3-1.4.1.ebuild:
+ Version bump.
*pgadmin3-1.4.0 (08 Nov 2005)
-MD5 26a98765425b2d0b35bc0a85979603b2 pgadmin3-1.4.0.ebuild 1932
-MD5 85d8072c5cd7a7f299a0367ad704611b pgadmin3-1.0.2.ebuild 1276
-MD5 dfbdc19bcfa7d9ae8d9ce9c1eba34ac2 ChangeLog 3261
-MD5 fda96699361e71e1f60886c745807ed8 pgadmin3-1.2.2.ebuild 1947
-MD5 f8d3d207746da2a3cd14dcaab8daab76 metadata.xml 163
-MD5 ea8ba09f3c984e557eb454fcf10b23aa files/pgadmin3-1.2.2-configure.patch 985
-MD5 ea8ba09f3c984e557eb454fcf10b23aa files/pgadmin3-1.4.0-configure.patch 985
+MD5 5f3129c3782517872d36494697b1ce7f ChangeLog 3384
MD5 e69c2dd9e40469e9bc040a05e04054f1 files/digest-pgadmin3-1.0.2 67
MD5 87c2509be27973faac529f94388b8180 files/digest-pgadmin3-1.2.2 67
MD5 3c1cdfe5717665d77a36fbaaf2c7de84 files/digest-pgadmin3-1.4.0 67
+MD5 c7f94cc64bcf7b953f090ab7c5aa7196 files/digest-pgadmin3-1.4.1 67
+MD5 ea8ba09f3c984e557eb454fcf10b23aa files/pgadmin3-1.2.2-configure.patch 985
+MD5 ea8ba09f3c984e557eb454fcf10b23aa files/pgadmin3-1.4.0-configure.patch 985
+MD5 f8d3d207746da2a3cd14dcaab8daab76 metadata.xml 163
+MD5 85d8072c5cd7a7f299a0367ad704611b pgadmin3-1.0.2.ebuild 1276
+MD5 fda96699361e71e1f60886c745807ed8 pgadmin3-1.2.2.ebuild 1947
+MD5 26a98765425b2d0b35bc0a85979603b2 pgadmin3-1.4.0.ebuild 1932
+MD5 66c9182784ada39a5035227907583938 pgadmin3-1.4.1.ebuild 1950
--- /dev/null
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-db/pgadmin3/pgadmin3-1.4.1.ebuild,v 1.1 2006/02/17 19:27:09 nakano Exp $
+
+inherit eutils libtool wxwidgets
+
+IUSE=""
+
+RESTRICT="nomirror"
+DESCRIPTION="wxWindows GUI for PostgreSQL"
+HOMEPAGE="http://www.pgadmin.org/"
+SRC_URI="mirror://postgresql/pgadmin3/release/v${PV}/src/${P}.tar.gz"
+
+SLOT="0"
+LICENSE="Artistic"
+KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86"
+
+DEPEND=">=x11-libs/wxGTK-2.6.0
+ dev-db/libpq
+ dev-libs/libxml2"
+
+pkg_setup() {
+ if ! built_with_use '>=x11-libs/wxGTK-2.6.0' unicode ; then
+ die "${PN} requires >=x11-libs/wxGTK-2.6.0 emerged with USE='unicode'"
+ fi
+}
+
+src_unpack() {
+ unpack ${A}
+ cd ${S} || die "Couldn't cd to ${S}"
+ epatch ${FILESDIR}/${P}-configure.patch
+}
+
+src_compile() {
+ export WX_GTK_VER=2.6
+ export WX_HOME=/usr
+ need-wxwidgets unicode
+
+ local myconf
+ myconf="${myconf} --enable-unicode"
+ myconf="${myconf} --enable-gtk2"
+ myconf="${myconf} --with-pgsql-include=/usr/include/postgresql"
+ myconf="${myconf} --with-wx-config=/lib/wx/config/${WX_CONFIG_NAME}"
+ myconf="${myconf} --enable-postgres"
+ LDFLAGS=-L/usr/lib/postgresql econf ${myconf} || die
+
+ cd ${S}
+ emake || die
+}
+
+src_install() {
+ einstall || die
+
+ dodir /usr/share/pixmaps
+
+ cp ${S}/src/include/images/elephant48.xpm ${D}/usr/share/pixmaps/pgadmin3.xpm
+
+ dodir /usr/share/pgadmin3
+
+ cp ${S}/src/include/images/elephant48.xpm ${D}/usr/share/pgadmin3/pgadmin3.xpm
+
+ chmod 644 ${D}/usr/share/pixmaps/pgadmin3.xpm
+ chmod 644 ${D}/usr/share/pgadmin3/pgadmin3.xpm
+
+ dodir /usr/share/applications
+
+ cp ${S}/pkg/pgadmin3.desktop ${D}/usr/share/applications/pgadmin3.desktop
+ chmod 644 ${D}/usr/share/applications/pgadmin3.desktop
+
+ dodir /usr/share/applnk/Development
+
+ cp ${S}/pkg/pgadmin3.desktop ${D}/usr/share/applnk/Development/pgadmin3.desktop
+ chmod 644 ${D}/usr/share/applnk/Development/pgadmin3.desktop
+}