Ignore:
Timestamp:
Oct 14, 2012, 1:03:57 PM (7 years ago)
Author:
hum@…
Message:

apache-solr, apache-solr3: apache-solr is replaced by apache-solr3.

Location:
trunk/dports/java/apache-solr
Files:
1 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/java/apache-solr/Portfile

    r96733 r98746  
    44PortSystem          1.0
    55
     6replaced_by         apache-solr3
     7PortGroup           obsolete 1.0
     8
    69name                apache-solr
    710version             3.6.1
     11revision            1
    812categories          java textproc
    9 maintainers         gmail.com:haya10.ito hum openmaintainer
    10 
    11 description         An open source enterprise search platform.
    12 long_description    Solr is the popular, blazing fast open source enterprise \
    13                     search platform from the Apache Lucene project.
    14 
    15 homepage            http://lucene.apache.org/solr/
    16 platforms           darwin
    17 supported_archs     noarch
    18 license             Apache-2
    19 
    20 extract.suffix      .tgz
    21 
    22 # install jquery file.
    23 set jquery_file     jquery-1.7.2.min.js
    24 
    25 distfiles-append    ${jquery_file}:js
    26 
    27 master_sites        apache:lucene/solr/${version}/ \
    28                     http://code.jquery.com/:js
    29 checksums           ${distname}${extract.suffix} \
    30                     rmd160  7e21a5e9bcfbd931457780ce64e681eec1c36e17 \
    31                     sha256  1b4552ba95c8456d4fbd596e82028eaa0619b6942786e98e1c4c31258543c708 \
    32                     ${jquery_file} \
    33                     rmd160  225961b3a1283b366b41e1c20a00708c01cdc1b1 \
    34                     sha256  47b68dce8cb6805ad5b3ea4d27af92a241f4e29a5c12a274c852e4346a0500b4
    35 
    36 extract.only-delete ${jquery_file}
    37 
    38 # set the destination paths.
    39 set java_basepath   ${prefix}/share/java
    40 set solr_destpath   ${java_basepath}/${distname}
    41 set solr_path       ${solr_destpath}/example
    42 set solr_home       ${solr_path}/solr
    43 
    44 patchfiles          patch-head.vm.diff
    45 
    46 post-patch {
    47     # copy jquery file.
    48     copy ${distpath}/${jquery_file} ${worksrcpath}/example/solr/conf/velocity/
    49     # expand relative pathes into abusolute ones.
    50     reinplace "s|\"\\.\\./\\.\\./|\"${solr_destpath}/|g" \
    51         ${worksrcpath}/example/solr/conf/solrconfig.xml
    52 }
    53 
    54 use_configure       no
    55 
    56 build {}
    57 
    58 destroot {
    59     # copy the distribution.
    60     xinstall -d         ${destroot}${java_basepath}
    61     copy ${worksrcpath} ${destroot}${java_basepath}
    62     # install the solr script.
    63     xinstall -m 755 ${filespath}/solr.in     ${destroot}${prefix}/bin/solr
    64     reinplace "s|@solr_path@|${solr_path}|g" ${destroot}${prefix}/bin/solr
    65     reinplace "s|@solr_home@|${solr_home}|g" ${destroot}${prefix}/bin/solr
    66 }
    67 
    68 notes "
    69 To try apache-solr, run 'sudo solr' and open http://localhost:8983/solr/browse.
    70 To store sample documents, run 'cd ${solr_path}/exampledocs && ./post.sh *.xml'."
    71 
    72 # solr home for Japanese configurations.
    73 set solr_home_ja    ${solr_home}-ja
    74 
    75 variant ja description {Add Japanese settings} {
    76     # create Japanese solr home 'solr-ja'.
    77     post-extract {
    78         copy ${worksrcpath}/example/solr ${worksrcpath}/example/solr-ja
    79     }
    80     patchfiles-append   patch-solr-ja.diff
    81     post-patch {
    82         # expand relative pathes into abusolute ones.
    83         reinplace "s|\"\\.\\./\\.\\./|\"${solr_destpath}/|g" \
    84             ${worksrcpath}/example/solr-ja/conf/solrconfig.xml
    85     }
    86     post-destroot {
    87         # install a property file for UTF-8 encoding.
    88         copy ${filespath}/velocity.properties ${destroot}${solr_home_ja}/conf
    89         # copy a sample Japanese doc for testing.
    90         copy ${filespath}/solr-ja.xml ${destroot}${solr_path}/exampledocs
    91         # install the solr-ja script.
    92         xinstall -m 755 ${filespath}/solr.in        ${destroot}${prefix}/bin/solr-ja
    93         reinplace "s|@solr_path@|${solr_path}|g"    ${destroot}${prefix}/bin/solr-ja
    94         reinplace "s|@solr_home@|${solr_home_ja}|g" ${destroot}${prefix}/bin/solr-ja
    95     }
    96     notes-append "
    97 
    98 For Japanese texts, please run 'sudo solr-ja' instead of 'sudo solr'.
    99 See ${solr_home_ja}."
    100 }
    101 
    102 livecheck.type      regex
    103 livecheck.url       http://www.apache.org/dist/lucene/solr/
    104 livecheck.regex     (\[0-9.\]+)\/
Note: See TracChangeset for help on using the changeset viewer.