wok-next diff clucene/receipt @ rev 20555

Fix "DSO missing..." error: loqui, xfprint, notification-daemon-gtk2, xfmedia, evince, celestia(?)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Apr 06 17:43:57 2018 +0300 (2018-04-06)
parents 777348fd8b60
children d5aab818505e
line diff
     1.1 --- a/clucene/receipt	Wed Apr 26 19:08:44 2017 +0200
     1.2 +++ b/clucene/receipt	Fri Apr 06 17:43:57 2018 +0300
     1.3 @@ -1,37 +1,37 @@
     1.4 -# SliTaz package receipt.
     1.5 +# SliTaz package receipt v2.
     1.6  
     1.7  PACKAGE="clucene"
     1.8 -VERSION="0.9.21b"
     1.9 +VERSION="2.3.3.4"
    1.10  CATEGORY="system-tools"
    1.11 -SHORT_DESC="C++ port of Lucene, a high-performance, full-featured text search engine"
    1.12 +SHORT_DESC="CLucene - a C++ search engine"
    1.13  MAINTAINER="domcox@slitaz.org"
    1.14  LICENSE="LGPL Apache"
    1.15 -SOURCE="clucene-core"
    1.16 -TARBALL="$SOURCE-$VERSION.tar.gz"
    1.17 -WEB_SITE="http://sourceforge.net/projects/clucene/"
    1.18 +WEB_SITE="https://sourceforge.net/projects/clucene/"
    1.19 +
    1.20 +TARBALL="clucene-core-$VERSION.tar.gz"
    1.21  WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
    1.22 -TAGS="text indexing"
    1.23 +
    1.24 +BUILD_DEPENDS="cmake zlib-dev"
    1.25 +SPLIT="clucene-dev"
    1.26  
    1.27  # Rules to configure and make the package.
    1.28  compile_rules()
    1.29  {
    1.30 -	sed -i 's|LuceneBase(){};|LuceneBase()\n#if __cplusplus >= 201103L\nnoexcept(false)\n#endif\n{};|' \
    1.31 -		src/CLucene/debug/lucenebase.h
    1.32 -	./configure \
    1.33 -		--prefix=/usr \
    1.34 -		--libdir=/usr/lib \
    1.35 -		--sysconfdir=/etc \
    1.36 -		--localstatedir=/var \
    1.37 -		--disable-static \
    1.38 -		$CONFIGURE_ARGS
    1.39 -	make
    1.40 +	mkdir build &&
    1.41 +	cd    build &&
    1.42 +
    1.43 +	cmake \
    1.44 +		-DCMAKE_INSTALL_PREFIX=/usr \
    1.45 +		-DBUILD_CONTRIBS_LIB=ON .. &&
    1.46 +	make &&
    1.47  	make -j1 install
    1.48  }
    1.49  
    1.50  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.51  genpkg_rules()
    1.52  {
    1.53 -	mkdir -p $fs/usr/lib
    1.54 -	cp -a $install/usr/lib/*.so* $fs/usr/lib
    1.55 +	case $PACKAGE in
    1.56 +		clucene) copy @std; TAGS="text indexing";;
    1.57 +		*-dev)   copy @dev;;
    1.58 +	esac
    1.59  }
    1.60 -