Portfile

# $Id: Portfile 22860 2007-03-17 11:28:06Z rhwood@macports.org $
PortSystem 1.0
name gnome-menus
version 2.18.0
description Panel component for the GNOME 2 Desktop.
long_description Panel component for the GNOME 2 Desktop.
maintainers rhwood@macports.org openmaintainer@macports.org
categories gnome
platforms darwin
homepage http://www.gnome.org/
master_sites gnome:sources/${name}/2.18/

checksums rmd160 049daae96d326af3b2be78f3c72f11f81c12c952

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
}