1 | # -*- 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 |
---|
2 | # $Id$ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | |
---|
6 | name apache-solr |
---|
7 | version 3.2.0 |
---|
8 | categories java search |
---|
9 | platforms darwin |
---|
10 | maintainers gmail.com:haya10.ito openmaintainer |
---|
11 | license Apache-2.0 |
---|
12 | |
---|
13 | description The open source enterprise search platform |
---|
14 | |
---|
15 | long_description Solr is the popular, blazing fast open source enterprise \ |
---|
16 | search platform from the Apache Lucene project. |
---|
17 | |
---|
18 | |
---|
19 | homepage http://lucene.apache.org/solr/ |
---|
20 | master_sites apache:lucene/solr/${version}/ |
---|
21 | distfiles ${name}-${version}.tgz |
---|
22 | |
---|
23 | checksums sha1 78caf37494603d69096709ed31455e6e433bff63 |
---|
24 | |
---|
25 | extract.suffix .tgz |
---|
26 | |
---|
27 | use_configure no |
---|
28 | supported_archs noarch |
---|
29 | |
---|
30 | build {} |
---|
31 | |
---|
32 | set java_home /System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home |
---|
33 | |
---|
34 | pre-configure { |
---|
35 | if {![file exists ${java_home}]} { |
---|
36 | ui_error "Java 1.6 is required, but not located at ${java_home}" |
---|
37 | return -code error "Java 1.6 missing" |
---|
38 | } |
---|
39 | } |
---|
40 | |
---|
41 | set extracted ${workpath}/${name}-${version} |
---|
42 | set target ${destroot}/${prefix}/share/java/${name}-${version} |
---|
43 | |
---|
44 | destroot { |
---|
45 | fs-traverse -tails file ${extracted}/example { |
---|
46 | switch -exact [ file type ${extracted}/example/${file}] { |
---|
47 | directory { |
---|
48 | xinstall -d -m 755 ${target}/${file} |
---|
49 | } |
---|
50 | file { |
---|
51 | xinstall -m 644 ${extracted}/example/${file} ${target}/${file} |
---|
52 | } |
---|
53 | } |
---|
54 | } |
---|
55 | xinstall -m 755 ${filespath}/solr ${prefix}/bin |
---|
56 | } |
---|
57 | |
---|
58 | post-deactivate {} |
---|
59 | |
---|
60 | post-activate {} |
---|
61 | |
---|