zeitgeist: added gir build option.
This commit is contained in:
parent
29a90450a3
commit
641c555d29
@ -1,13 +1,12 @@
|
||||
# Template file for 'zeitgeist'
|
||||
pkgname=zeitgeist
|
||||
version=0.9.14
|
||||
revision=1
|
||||
revision=2
|
||||
build_style=gnu-configure
|
||||
hostmakedepends="pkg-config intltool gobject-introspection"
|
||||
hostmakedepends="pkg-config intltool"
|
||||
makedepends="
|
||||
json-glib-devel>=0.16.2 gtk+3-devel telepathy-glib-devel
|
||||
pygobject-devel>=3.10 vala-devel dbus-devel raptor xapian-core-devel
|
||||
python-rdflib"
|
||||
python-rdflib json-glib-devel>=0.16.2 gtk+3-devel telepathy-glib-devel
|
||||
pygobject-devel>=3.10 vala-devel dbus-devel sqlite-devel raptor xapian-core-devel"
|
||||
depends="python>=2.7<3 dbus-python pygobject>=3.10"
|
||||
pycompile_module="zeitgeist"
|
||||
short_desc="logs the users’ activities and events"
|
||||
@ -16,13 +15,22 @@ homepage="http://zeitgeist-project.com"
|
||||
license="LGPL-2.1"
|
||||
distfiles="https://launchpad.net/${pkgname}/${version%.*}/${version}/+download/${pkgname}-${version}.tar.xz"
|
||||
checksum=769b5abfe67ef632414efa1d35a1462c5cd86c8792bb4635b4c3d93a5f15f061
|
||||
long_desc="
|
||||
Zeitgeist is a service which logs the users’ activities and events,
|
||||
anywhere from files opened to websites visited and conversations had.
|
||||
|
||||
It makes this information readily available for other applications to use.
|
||||
It is able to establish relationships between items based on similarity
|
||||
and usage patterns."
|
||||
# Package build options
|
||||
build_options="gir"
|
||||
desc_option_gir="Enable support for building gobject introspection data"
|
||||
|
||||
# Disable gir for cross builds.
|
||||
if [ -z "$CROSS_BUILD" ]; then
|
||||
build_options_default="gir"
|
||||
fi
|
||||
|
||||
if [ "$build_option_gir" ]; then
|
||||
configure_args+=" --enable-introspection"
|
||||
makedepends+=" gobject-introspection"
|
||||
else
|
||||
configure_args+=" --disable-introspection"
|
||||
fi
|
||||
|
||||
post_install() {
|
||||
rm -rf ${DESTDIR}/usr/doc
|
||||
@ -32,7 +40,9 @@ libzeitgeist2_package() {
|
||||
short_desc+=" - shared library"
|
||||
pkg_install() {
|
||||
vmove "usr/lib/*.so.*"
|
||||
vmove usr/lib/girepository-1.0
|
||||
if [ "$build_option_gir" ]; then
|
||||
vmove usr/lib/girepository-1.0
|
||||
fi
|
||||
}
|
||||
}
|
||||
zeitgeist-devel_package() {
|
||||
@ -43,6 +53,8 @@ zeitgeist-devel_package() {
|
||||
vmove usr/lib/pkgconfig
|
||||
vmove "usr/lib/*.so"
|
||||
vmove usr/share/vala
|
||||
vmove usr/share/gir-1.0
|
||||
if [ "$build_option_gir" ]; then
|
||||
vmove usr/share/gir-1.0
|
||||
fi
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user