rest: added gir build option; cross build support.
This commit is contained in:
parent
e9c5e684a8
commit
c0fc43f276
|
@ -1,27 +1,41 @@
|
||||||
# Template file for 'rest'
|
# Template file for 'rest'
|
||||||
pkgname=rest
|
pkgname=rest
|
||||||
version=0.7.90
|
version=0.7.90
|
||||||
revision=1
|
revision=2
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_args="--disable-static"
|
configure_args="--disable-static --with-ca-certificates=/etc/ssl/certs/ca-certificates.crt"
|
||||||
hostmakedepends="pkg-config gobject-introspection"
|
hostmakedepends="libtool pkg-config glib-devel"
|
||||||
makedepends="libglib-devel libsoup-gnome-devel>=2.44 libxml2-devel"
|
makedepends="libglib-devel libsoup-gnome-devel>=2.44 libxml2-devel ca-certificates"
|
||||||
depends="libsoup-gnome>=2.44"
|
depends="libsoup-gnome>=2.44 ca-certificates"
|
||||||
short_desc="RESTful library"
|
short_desc="RESTful library"
|
||||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||||
license="GPL-2"
|
license="GPL-2"
|
||||||
homepage="http://www.gnome.org"
|
homepage="http://www.gnome.org"
|
||||||
distfiles="${GNOME_SITE}/$pkgname/0.7/$pkgname-$version.tar.xz"
|
distfiles="${GNOME_SITE}/$pkgname/0.7/$pkgname-$version.tar.xz"
|
||||||
checksum=1d682acaac4d946cc7c98a2dd9d65a8c83a6fdb8ca6759e70b8b5042fe66c022
|
checksum=1d682acaac4d946cc7c98a2dd9d65a8c83a6fdb8ca6759e70b8b5042fe66c022
|
||||||
long_desc="
|
|
||||||
This library has been designed to make it easier to access web services that
|
# Package build options
|
||||||
claim to be RESTful. A reasonable definition of what this means can be found
|
build_options="gir"
|
||||||
on Wikipedia [1]. However a reasonable description is that a RESTful service
|
desc_option_gir="Enable support for building gobject introspection data"
|
||||||
should have urls that represent remote objects which methods can then be
|
|
||||||
called on."
|
# 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
|
||||||
|
|
||||||
|
pre_configure() {
|
||||||
|
libtoolize -f
|
||||||
|
}
|
||||||
|
|
||||||
rest-devel_package() {
|
rest-devel_package() {
|
||||||
depends="libglib-devel libsoup-devel>=2.44 libxml2-devel rest-${version}_${revision}"
|
depends="libglib-devel libsoup-devel>=2.44 libxml2-devel rest>=${version}_${revision}"
|
||||||
short_desc+=" - development files"
|
short_desc+=" - development files"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove usr/include
|
vmove usr/include
|
||||||
|
|
Loading…
Reference in New Issue