Changeset 98746
- Timestamp:
- Oct 14, 2012, 1:03:57 PM (12 years ago)
- Location:
- trunk/dports/java
- Files:
-
- 1 deleted
- 2 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/dports/java/apache-solr/Portfile
r96733 r98746 4 4 PortSystem 1.0 5 5 6 replaced_by apache-solr3 7 PortGroup obsolete 1.0 8 6 9 name apache-solr 7 10 version 3.6.1 11 revision 1 8 12 categories java textproc 9 maintainers gmail.com:haya10.ito hum openmaintainer10 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 darwin17 supported_archs noarch18 license Apache-219 20 extract.suffix .tgz21 22 # install jquery file.23 set jquery_file jquery-1.7.2.min.js24 25 distfiles-append ${jquery_file}:js26 27 master_sites apache:lucene/solr/${version}/ \28 http://code.jquery.com/:js29 checksums ${distname}${extract.suffix} \30 rmd160 7e21a5e9bcfbd931457780ce64e681eec1c36e17 \31 sha256 1b4552ba95c8456d4fbd596e82028eaa0619b6942786e98e1c4c31258543c708 \32 ${jquery_file} \33 rmd160 225961b3a1283b366b41e1c20a00708c01cdc1b1 \34 sha256 47b68dce8cb6805ad5b3ea4d27af92a241f4e29a5c12a274c852e4346a0500b435 36 extract.only-delete ${jquery_file}37 38 # set the destination paths.39 set java_basepath ${prefix}/share/java40 set solr_destpath ${java_basepath}/${distname}41 set solr_path ${solr_destpath}/example42 set solr_home ${solr_path}/solr43 44 patchfiles patch-head.vm.diff45 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.xml52 }53 54 use_configure no55 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/solr64 reinplace "s|@solr_path@|${solr_path}|g" ${destroot}${prefix}/bin/solr65 reinplace "s|@solr_home@|${solr_home}|g" ${destroot}${prefix}/bin/solr66 }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}-ja74 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-ja79 }80 patchfiles-append patch-solr-ja.diff81 post-patch {82 # expand relative pathes into abusolute ones.83 reinplace "s|\"\\.\\./\\.\\./|\"${solr_destpath}/|g" \84 ${worksrcpath}/example/solr-ja/conf/solrconfig.xml85 }86 post-destroot {87 # install a property file for UTF-8 encoding.88 copy ${filespath}/velocity.properties ${destroot}${solr_home_ja}/conf89 # copy a sample Japanese doc for testing.90 copy ${filespath}/solr-ja.xml ${destroot}${solr_path}/exampledocs91 # install the solr-ja script.92 xinstall -m 755 ${filespath}/solr.in ${destroot}${prefix}/bin/solr-ja93 reinplace "s|@solr_path@|${solr_path}|g" ${destroot}${prefix}/bin/solr-ja94 reinplace "s|@solr_home@|${solr_home_ja}|g" ${destroot}${prefix}/bin/solr-ja95 }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 regex103 livecheck.url http://www.apache.org/dist/lucene/solr/104 livecheck.regex (\[0-9.\]+)\/ -
trunk/dports/java/apache-solr3/Portfile
r96733 r98746 4 4 PortSystem 1.0 5 5 6 name apache-solr 6 name apache-solr3 7 7 version 3.6.1 8 8 categories java textproc 9 maintainers gmail.com:haya10.ito humopenmaintainer9 maintainers hum gmail.com:haya10.ito openmaintainer 10 10 11 11 description An open source enterprise search platform. 12 12 13 long_description Solr is the popular, blazing fast open source enterprise \ 13 14 search platform from the Apache Lucene project. … … 18 19 license Apache-2 19 20 21 dist_subdir apache-solr 22 distname apache-solr-${version} 20 23 extract.suffix .tgz 21 24 … … 61 64 copy ${worksrcpath} ${destroot}${java_basepath} 62 65 # 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 xinstall -m 755 ${filespath}/solr.in ${destroot}${prefix}/bin/solr3 67 reinplace "s|@solr_path@|${solr_path}|g" ${destroot}${prefix}/bin/solr3 68 reinplace "s|@solr_home@|${solr_home}|g" ${destroot}${prefix}/bin/solr3 66 69 } 67 70 68 71 notes " 69 To try apache-solr , run 'sudo solr' and open http://localhost:8983/solr/browse.72 To try apache-solr3, run 'sudo solr3' and open http://localhost:8983/solr/browse. 70 73 To store sample documents, run 'cd ${solr_path}/exampledocs && ./post.sh *.xml'." 71 74 … … 90 93 copy ${filespath}/solr-ja.xml ${destroot}${solr_path}/exampledocs 91 94 # install the solr-ja script. 92 xinstall -m 755 ${filespath}/solr.in ${destroot}${prefix}/bin/solr -ja93 reinplace "s|@solr_path@|${solr_path}|g" ${destroot}${prefix}/bin/solr -ja94 reinplace "s|@solr_home@|${solr_home_ja}|g" ${destroot}${prefix}/bin/solr -ja95 xinstall -m 755 ${filespath}/solr.in ${destroot}${prefix}/bin/solr3-ja 96 reinplace "s|@solr_path@|${solr_path}|g" ${destroot}${prefix}/bin/solr3-ja 97 reinplace "s|@solr_home@|${solr_home_ja}|g" ${destroot}${prefix}/bin/solr3-ja 95 98 } 96 99 notes-append " 97 100 98 For Japanese texts, please run 'sudo solr -ja' instead of 'sudo solr'.101 For Japanese texts, please run 'sudo solr3-ja' instead of 'sudo solr3'. 99 102 See ${solr_home_ja}." 100 103 } … … 102 105 livecheck.type regex 103 106 livecheck.url http://www.apache.org/dist/lucene/solr/ 104 livecheck.regex ( \[0-9.\]+)\/107 livecheck.regex (3.\[0-9.\]+)\/
Note: See TracChangeset
for help on using the changeset viewer.