Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 295909 Details for
Bug 253007
dev-db/apache-solr-bin: Open source enterprise search platform from the Apache Lucene project
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
ebuild for apache-solr 3.5.0
apache-solr-3.5.0.ebuild (text/plain), 3.16 KB, created by
Matthias Weiss
on 2011-12-15 12:33:42 UTC
(
hide
)
Description:
ebuild for apache-solr 3.5.0
Filename:
MIME Type:
Creator:
Matthias Weiss
Created:
2011-12-15 12:33:42 UTC
Size:
3.16 KB
patch
obsolete
># Copyright 1999-2011 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 ># $Header: $ > >EAPI=4 > >JAVA_PKG_IUSE="doc example test tomcat" >JAVA_PKG_BSFIX_ALL="no" >JAVA_PKG_BSFIX_NAME="build.xml" > >inherit java-pkg-2 java-ant-2 webapp > >DESCRIPTION="An open-source search server based on the Lucene Java search library." >HOMEPAGE="http://lucene.apache.org/solr" >SRC_URI="mirror://apache/lucene/solr/${PV}/${P}-src.tgz http://http://mirror.sti2.at/apache/lucene/solr/${PV}/${P}-src.tgz" >LICENSE="Apache-2.0" > >KEYWORDS="~x86 ~amd64" > >SLOT="${PV}" >PVMAJOR=$(echo $PV | /usr/bin/cut -d '.' -f 1,2) > >S="${WORKDIR}/${P}/solr" > >exampledir=/var/www/localhost/htdocs/${PN} > >CDEPEND="dev-java/lucene:3.0" > >DEPEND="${CDEPEND} > app-admin/webapp-config > >=virtual/jdk-1.5 > dev-java/ant-core > dev-java/javacc" > >RDEPEND="${CDEPEND} > >=virtual/jre-1.5" > >pkg_setup() { > > webapp_pkg_setup > > java-pkg-2_pkg_setup >} > >src_compile() { > > ANT_TASKS="none" eant compile dist > > use example && ANT_TASKS="none" eant example > > use doc && ANT_TASKS="none" eant javadocs >} > >src_test() { > > ANT_TASKS="none" eant test >} > >src_install() { > > webapp_src_preinst > > exampledir_escaped=$(echo $exampledir| /bin/sed 's/\//\\\//g') > warhomedir=/usr/share/${P} > > solr_conf_src=${FILESDIR}/solrconfig.xml > > solr_conf_dest=${S}/example/solr/conf/solrconfig.xml > > sed s/EBUILD_SOLR_RELEASE/${PN}-${SLOT}/ ${solr_conf_src} > ${solr_conf_dest} > > use tomcat && ( /bin/sed s/\\\(dataDir\>\[\$\]\[\{\]solr.data.dir\:\\\)/\\\1${exampledir_escaped}\\/data/ ${solr_conf_dest} > ${solr_conf_dest}.temp ; > > mv -f ${solr_conf_dest}.temp ${solr_conf_dest} > > if [ ! -d /etc/tomcat-6/Catalina/localhost ]; then > dodir /etc/tomcat-6/Catalina/localhost > fi > > insinto /etc/tomcat-6/Catalina/localhost/ > > echo "<?xml version=\"1.0\" encoding=\"utf-8\"?> ><Context docBase=\"${warhomedir}/solr.war\" debug=\"0\" crossContext=\"true\"> ><Environment name=\"solr/home\" type=\"java.lang.String\" value=\"${exampledir}\" override=\"true\"/> ></Context>" > solr-example.xml > > doins solr-example.xml > webapp_configfile /etc/tomcat-6/Catalina/localhost/solr-example.xml > ) > > insinto "${MY_HTDOCSDIR}" > > doins -r example/solr/* > webapp_configfile "${MY_HTDOCSDIR}"/conf/solrconfig.xml > > dodir ${MY_HTDOCSDIR}/bin > dodir ${MY_HTDOCSDIR}/data > > webapp_serverowned -R "${MY_HTDOCSDIR}" > > insinto "${warhomedir}" > newins dist/apache-solr-${PVMAJOR}-SNAPSHOT.war solr.war > > for contrib_dir in analysis-extras clustering dataimporthandler extraction langid uima velocity > do > > java-pkg_jarinto /usr/share/${PN}-${SLOT}/contrib/${contrib_dir}/lib > > for contrib_lib in contrib/${contrib_dir}/lib/*.jar > do > > contrib_target=$(basename ${contrib_lib}| sed 's/\(^.*\)-[0-9][0-9\._][0-9\._].*\.jar$/\1.jar/' ) > java-pkg_newjar ${contrib_lib} ${contrib_target} > > done > > done > > java-pkg_jarinto /usr/share/${PN}-${SLOT}/dist > > for dist_lib in dist/*.jar > do > > dist_target=$(basename ${dist_lib}| sed 's/-[0-9\.]*-SNAPSHOT\.jar$/.jar/' ) > java-pkg_newjar ${dist_lib} ${dist_target} > > done > > dodoc -r site > > use doc && java-pkg_dojavadoc build/docs/api > > webapp_src_install >} > >pkg_postinst() { > > webapp_pkg_postinst > > use tomcat && chown -R tomcat.tomcat ${exampledir}/* > >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 253007
:
278347
| 295909 |
295911