dcallagh-exheres

My personal Exherbo repository
git clone https://code.djc.id.au/git/dcallagh-exheres/

packages/dev-libs/redland-bindings/redland-bindings-1.0.10.1.exheres-0 (1372B) - raw

      1 # Copyright 2011 Dan Callaghan <djc@djc.id.au>
      2 # Distributed under the terms of the GNU General Public License v2
      3 # Based in part on redland-bindings-1.0.10.1-r1.ebuild, which is:
      4 #   Copyright 1999-2010 Gentoo Foundation
      5 #   Distributed under the terms of the GNU General Public License v2
      6 
      7 require python [ python_dep=2.2 ] perl-module multilib
      8 
      9 SUMMARY="Language bindings for Redland"
     10 HOMEPAGE="http://librdf.org/bindings/"
     11 DOWNLOADS="http://download.librdf.org/source/${PNV}.tar.gz"
     12 
     13 LICENCES="Apache-2.0 GPL-2 LGPL-2.1"
     14 SLOT="0"
     15 PLATFORMS="~x86 ~amd64"
     16 MYOPTIONS="perl python"
     17 
     18 DEPENDENCIES="
     19     build:
     20         dev-libs/redland[=1.0.10]
     21         dev-lang/swig
     22     test:
     23         dev-libs/redland[=1.0.10][berkdb]
     24 "
     25 
     26 BUGS_TO="djc@djc.id.au"
     27 
     28 src_prepare() {
     29     edo sed -i \
     30         -e 's:python_prefix=.*:python_prefix=$(readlink -f $($PYTHON -c "import sys; print sys.prefix" 2>/dev/null)):' \
     31         -e "s:lib/python:${LIBDIR}/python:" \
     32         configure
     33 }
     34 
     35 src_configure() {
     36     econf \
     37         --disable-dependency-tracking \
     38         --with-redland=system \
     39         --with-python-ldflags="-shared -lrdf" \
     40         $(option_with perl) \
     41         $(option_with python) \
     42         --without-php \
     43         --without-ruby
     44 }
     45 
     46 src_install() {
     47     emake -j1 DESTDIR="${IMAGE}" INSTALLDIRS=vendor install
     48     emagicdocs
     49     python_bytecompile
     50     perl-module_src_install
     51 }