# $Id: Portfile 114324 2013-12-05 08:44:51Z ryandesign@macports.org $

PortSystem 1.0
PortGroup python 1.0

name			py-swishe
version			0.5
categories-append	www
license			BSD
platforms		darwin
maintainers		nomaintainer
description		python binding for swish-e
long_description	Python binding for swish-e, a fast, powerful, flexible, \
			free, and easy to use system for indexing collections of Web pages \
			or other files

homepage		http://jibe.freeshell.org/bits/SwishE/
master_sites	http://jibe.freeshell.org/bits/download/
distname		SwishE-${version}
checksums		md5 915a03d1153b2ddd4e8340f9e180dcf8

python.versions	24

if {${name} ne ${subport}} {
    depends_lib-append	port:swish-e

    build.env		CFLAGS=-I${prefix}/include LDFLAGS=-L${prefix}/lib

    post-destroot {
        xinstall -m 644 -W ${worksrcpath} MANIFEST PKG-INFO README \
            ${destroot}${prefix}/share/doc/${subport}
        xinstall -m 644 -W ${worksrcpath}/examples a.py b.py c.py \
            ${destroot}${prefix}/share/doc/${subport}/examples
    }
}
