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

PortSystem 1.0
PortGroup python 1.0

name			py-lupy
version			0.2.1
revision		1
categories-append	textproc databases
license			LGPL-2.1
platforms		darwin freebsd
supported_archs	noarch
maintainers		nomaintainer
description		full-text indexer and search engine in Python
long_description	Lupy is a is a full-text indexer and search engine \
				written in Python. It is a port of Jakarta Lucene 1.2 \
				to Python. Specifically, it reads and writes indexes \
				in Lucene binary format. Like Lucene, it is \
				sophisticated and scalable. Lucene is a polished and \
				mature project and you are encouraged to read the \
				documentation found at the Lucene home page.

homepage		http://www.divmod.org/Home/Projects/Lupy/
master_sites	sourceforge:lupy
distname		Lupy-${version}
checksums		md5 515ea0b4aab8dd8299480cb9a0da6068

python.versions	24

if {${name} ne ${subport}} {
    post-destroot	{
        xinstall -m 644 -W ${worksrcpath} LICENSE README.txt changelog.txt \
            releasenotes.txt ${destroot}${prefix}/share/doc/${subport}
        file delete -force ${destroot}${prefix}/share/doc/${subport}/examples
        file copy ${worksrcpath}/examples ${destroot}${prefix}/share/doc/${subport}
    }
}
