Changeset 98747 for trunk/dports/java


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

apache-solr4: new version 4.0.0, derived from apache-solr (apache-solr3) port.

Location:
trunk/dports/java/apache-solr4
Files:
1 deleted
2 edited
1 copied

Legend:

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

    r96733 r98747  
    44PortSystem          1.0
    55
    6 name                apache-solr
    7 version             3.6.1
     6name                apache-solr4
     7version             4.0.0
    88categories          java textproc
    9 maintainers         gmail.com:haya10.ito hum openmaintainer
     9maintainers         hum openmaintainer
    1010
    1111description         An open source enterprise search platform.
     12
    1213long_description    Solr is the popular, blazing fast open source enterprise \
    1314                    search platform from the Apache Lucene project.
     
    1819license             Apache-2
    1920
     21dist_subdir         apache-solr
     22distname            apache-solr-${version}
    2023extract.suffix      .tgz
    2124
     
    2831                    http://code.jquery.com/:js
    2932checksums           ${distname}${extract.suffix} \
    30                     rmd160  7e21a5e9bcfbd931457780ce64e681eec1c36e17 \
    31                     sha256  1b4552ba95c8456d4fbd596e82028eaa0619b6942786e98e1c4c31258543c708 \
     33                    rmd160  a0cada9dd2c0930ec80bfda7970eff0d223b6b74 \
     34                    sha256  4b7ac4fdc1f1610f2d13e8dddf310e9d61620c00c463ba24e0f385a4c5c6f3ec \
    3235                    ${jquery_file} \
    3336                    rmd160  225961b3a1283b366b41e1c20a00708c01cdc1b1 \
     
    4245set solr_home       ${solr_path}/solr
    4346
    44 patchfiles          patch-head.vm.diff
    45 
    4647post-patch {
    4748    # copy jquery file.
    48     copy ${distpath}/${jquery_file} ${worksrcpath}/example/solr/conf/velocity/
     49    copy ${distpath}/${jquery_file} ${worksrcpath}/example/solr/collection1/conf/velocity/
    4950    # expand relative pathes into abusolute ones.
    50     reinplace "s|\"\\.\\./\\.\\./|\"${solr_destpath}/|g" \
    51         ${worksrcpath}/example/solr/conf/solrconfig.xml
     51    reinplace "s|\"\\.\\./\\.\\./\\.\\./|\"${solr_destpath}/|g" \
     52        ${worksrcpath}/example/solr/collection1/conf/solrconfig.xml
    5253}
    5354
     
    6162    copy ${worksrcpath} ${destroot}${java_basepath}
    6263    # 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
     64    xinstall -m 755 ${filespath}/solr.in     ${destroot}${prefix}/bin/solr4
     65    reinplace "s|@solr_path@|${solr_path}|g" ${destroot}${prefix}/bin/solr4
     66    reinplace "s|@solr_home@|${solr_home}|g" ${destroot}${prefix}/bin/solr4
    6667}
    6768
    6869notes "
    69 To try apache-solr, run 'sudo solr' and open http://localhost:8983/solr/browse.
     70To try apache-solr4, run 'sudo solr4' and open http://localhost:8983/solr/collection1/browse.
    7071To store sample documents, run 'cd ${solr_path}/exampledocs && ./post.sh *.xml'."
    7172
     
    8182    post-patch {
    8283        # expand relative pathes into abusolute ones.
    83         reinplace "s|\"\\.\\./\\.\\./|\"${solr_destpath}/|g" \
    84             ${worksrcpath}/example/solr-ja/conf/solrconfig.xml
     84        reinplace "s|\"\\.\\./\\.\\./\\.\\./|\"${solr_destpath}/|g" \
     85            ${worksrcpath}/example/solr-ja/collection1/conf/solrconfig.xml
    8586    }
    8687    post-destroot {
    8788        # install a property file for UTF-8 encoding.
    88         copy ${filespath}/velocity.properties ${destroot}${solr_home_ja}/conf
     89        copy ${filespath}/velocity.properties ${destroot}${solr_home_ja}/collection1/conf
    8990        # copy a sample Japanese doc for testing.
    9091        copy ${filespath}/solr-ja.xml ${destroot}${solr_path}/exampledocs
    9192        # 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
     93        xinstall -m 755 ${filespath}/solr.in        ${destroot}${prefix}/bin/solr4-ja
     94        reinplace "s|@solr_path@|${solr_path}|g"    ${destroot}${prefix}/bin/solr4-ja
     95        reinplace "s|@solr_home@|${solr_home_ja}|g" ${destroot}${prefix}/bin/solr4-ja
    9596    }
    9697    notes-append "
    9798
    98 For Japanese texts, please run 'sudo solr-ja' instead of 'sudo solr'.
     99For Japanese texts, please run 'sudo solr4-ja' instead of 'sudo solr4'.
    99100See ${solr_home_ja}."
    100101}
  • trunk/dports/java/apache-solr4/files/patch-solr-ja.diff

    r91889 r98747  
    1 --- example/solr-ja/conf/schema.xml.orig        2012-03-31 01:07:12.000000000 +0900
    2 +++ example/solr-ja/conf/schema.xml     2012-04-13 00:51:09.000000000 +0900
    3 @@ -931,7 +931,7 @@
     1--- example/solr-ja/collection1/conf/schema.xml.orig    2012-09-24 05:43:35.000000000 +0900
     2+++ example/solr-ja/collection1/conf/schema.xml 2012-10-14 22:06:02.000000000 +0900
     3@@ -142,7 +142,7 @@
    44 
    55    <!-- catchall field, containing all other searchable text fields (implemented
     
    1010    <!-- catchall text field that indexes tokens both normally and in reverse for efficient
    1111         leading wildcard queries. -->
    12 --- example/solr-ja/conf/solrconfig.xml.orig    2012-03-31 01:07:12.000000000 +0900
    13 +++ example/solr-ja/conf/solrconfig.xml 2012-04-13 00:51:09.000000000 +0900
    14 @@ -798,6 +798,7 @@
     12--- example/solr-ja/collection1/conf/solrconfig.xml.orig        2012-09-22 21:36:48.000000000 +0900
     13+++ example/solr-ja/collection1/conf/solrconfig.xml     2012-10-14 22:06:02.000000000 +0900
     14@@ -848,6 +848,7 @@
     15        <!-- VelocityResponseWriter settings -->
    1516        <str name="wt">velocity</str>
    16  
    1717        <str name="v.template">browse</str>
    1818+       <str name="v.properties">velocity.properties</str>
     
    2020        <str name="title">Solritas</str>
    2121 
    22 --- example/solr-ja/conf/velocity/head.vm.orig  2011-09-03 23:57:07.000000000 +0900
    23 +++ example/solr-ja/conf/velocity/head.vm       2011-09-05 23:56:41.000000000 +0900
    24 @@ -32,7 +32,7 @@
     22--- example/solr-ja/collection1/conf/velocity/head.vm.orig      2012-09-22 21:36:48.000000000 +0900
     23+++ example/solr-ja/collection1/conf/velocity/head.vm   2012-10-14 22:06:02.000000000 +0900
     24@@ -15,7 +15,7 @@
    2525            extraParams:{
    2626              'terms.prefix': function() { return $("\#q").val();},
     
    3131              'v.template': 'suggest'
    3232            }
    33 --- example/solr-ja/conf/velocity/suggest.vm.orig       2011-09-03 23:57:07.000000000 +0900
    34 +++ example/solr-ja/conf/velocity/suggest.vm    2011-09-05 23:57:16.000000000 +0900
     33--- example/solr-ja/collection1/conf/velocity/suggest.vm.orig   2011-09-03 23:57:07.000000000 +0900
     34+++ example/solr-ja/collection1/conf/velocity/suggest.vm        2011-09-05 23:57:16.000000000 +0900
    3535@@ -1,3 +1,3 @@
    3636-#foreach($t in $response.response.terms.name)
Note: See TracChangeset for help on using the changeset viewer.