# $Id: Portfile,v 1.4 2006/06/12 10:50:20 rhwood Exp $
PortSystem 1.0
name		gnome-menus
version		2.14.0
description	Panel component for the GNOME 2 Desktop.
long_description        Panel component for the GNOME 2 Desktop.
maintainers	gnome-darwinports@opendarwin.org
categories	gnome
platforms	darwin 
homepage	http://www.gnome.org/
master_sites    gnome:sources/${name}/2.14/

checksums	rmd160 9d6966d5dd7eb4e1463851de0d19b2711bd2f641

depends_lib \
	port:glib2 \
	port:py-gtk2
depends_build \
	port:gnome-doc-utils
	
use_bzip2 	yes

configure.args  --mandir=${prefix}/share/man
configure.env   CPPFLAGS="-L${prefix}/lib -I${prefix}/include" 

post-extract {
	reinplace "s|/usr/bin/env python|${prefix}/bin/python|g" ${worksrcpath}/simple-editor/gmenu-simple-editor.in
	reinplace "s|/usr/bin/env python|${prefix}/bin/python|g" ${worksrcpath}/simple-editor/GMenuSimpleEditor/config.py.in
	reinplace "s|/usr/bin/env python|${prefix}/bin/python|g" ${worksrcpath}/simple-editor/GMenuSimpleEditor/main.py
	reinplace "s|/usr/bin/env python|${prefix}/bin/python|g" ${worksrcpath}/simple-editor/GMenuSimpleEditor/maindialog.py
	reinplace "s|/usr/bin/env python|${prefix}/bin/python|g" ${worksrcpath}/simple-editor/GMenuSimpleEditor/menufilewriter.py
	reinplace "s|/usr/bin/env python|${prefix}/bin/python|g" ${worksrcpath}/simple-editor/GMenuSimpleEditor/menutreemodel.py	
}
