clucene:LO recommended dep

This commit is contained in:
2017-03-02 20:41:40 +03:00
parent cb29d36205
commit 5ed6ef6bf8
13 changed files with 363 additions and 0 deletions
+33
View File
@@ -0,0 +1,33 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt
from pisi.actionsapi import cmaketools
from pisi.actionsapi import pisitools
from pisi.actionsapi import get
from pisi.actionsapi import shelltools
def setup():
shelltools.export("CFLAGS", "-lpthread")
shelltools.makedirs("build")
shelltools.cd("build")
cmaketools.configure("-DCMAKE_BUILD_TYPE=Release \
-DENABLE_ASCII_MODE=OFF \
-DENABLE_PACKAGING=OFF \
-DBUILD_CONTRIBS_LIB:BOOL=ON \
-DLIB_DESTINATION:PATH=/usr/lib \
-DLUCENE_SYS_INCLUDES:PATH=/usr/lib \
-DDISABLE_MULTITHREADING=OFF", sourceDir="..")
def build():
shelltools.cd("build")
cmaketools.make()
def install():
shelltools.cd("build")
cmaketools.install()
shelltools.cd("..")
pisitools.dodoc("AUTHORS","README","COPYING","ChangeLog")