# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
maintainers gmail.com:haya10.ito openmaintainer
description An open source enterprise search platform.
long_description Solr is the popular, blazing fast open source enterprise \
search platform from the Apache Lucene project.
homepage http://lucene.apache.org/solr/
distname apache-solr-${version}
master_sites apache:lucene/solr/${version}
checksums rmd160 2f6b734c88979c2079658a21cc9358e12f228254 \
sha256 537426dcbdd0dc82dd5bf16b48b6bcaf87cb4049c1245eea8dcb79eeaf3e7ac6
# set the destination paths.
set java_basepath ${prefix}/share/java
set solr_destpath ${java_basepath}/${distname}
set solr_path ${solr_destpath}/example
set solr_home ${solr_path}/solr
patchfiles patch-head.vm.diff
# expand relative pathes into abusolute ones.
reinplace "s|\"\\.\\./\\.\\./|\"${solr_destpath}/|g" \
${worksrcpath}/example/solr/conf/solrconfig.xml
xinstall -d ${destroot}${java_basepath}
copy ${worksrcpath} ${destroot}${java_basepath}
# install the solr script.
xinstall -m 755 ${filespath}/solr.in ${destroot}${prefix}/bin/solr3
reinplace "s|@solr_path@|${solr_path}|g" ${destroot}${prefix}/bin/solr3
reinplace "s|@solr_home@|${solr_home}|g" ${destroot}${prefix}/bin/solr3
To try apache-solr3, run 'sudo solr3' and open http://localhost:8983/solr/browse.
To store sample documents, run 'cd ${solr_path}/exampledocs && ./post.sh *.xml'."
# solr home for Japanese configurations.
set solr_home_ja ${solr_home}-ja