summaryrefslogtreecommitdiff
blob: 856b96928886e5647be0f71f64b4ee9aac5e2078 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-util/regexxer/regexxer-0.8.ebuild,v 1.5 2006/01/14 12:57:25 nelchael Exp $

DESCRIPTION="An interactive tool for performing search and replace operations"
HOMEPAGE="http://regexxer.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"

#inherit gnome2

LICENSE="GPL-2"
IUSE="gnome"
SLOT="0"
KEYWORDS="~amd64 ~ppc x86"

RDEPEND=">=dev-cpp/libglademm-2.4.0
	>=dev-libs/libsigc++-2.0
	>=dev-cpp/gtkmm-2.4.0
	>=dev-libs/libpcre-4.0
	>=dev-cpp/gconfmm-2.6.1"


DEPEND="dev-util/pkgconfig
	${RDEPEND}"

src_compile() {
	echo $GCONF_CONFIG_SOURCE
	econf || die "econf failed."
	emake || die "emake failed."
}

src_install() {
	export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL="1"
	einstall || die "install failed"
	dodoc AUTHORS ChangeLog NEWS README
}

pkg_postinst() {
	# More or less copied from gnome2_gconf_install, which didn't work here
	export GCONF_CONFIG_SOURCE=`${ROOT}/usr/bin/gconftool-2 --get-default-source`
	einfo "Installing GNOME 2 GConf schemas"
	${ROOT}/usr/bin/gconftool-2 --makefile-install-rule ${S}/regexxer.schemas 1>/dev/null
	if use gnome ; then
		insinto /usr/share/gnome/apps/Development
		doins ${S}/regexxer.desktop
	fi
}