/[gentoo-x86]/eclass/vala.eclass
Gentoo

Diff of /eclass/vala.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.1 Revision 1.2
1# Copyright 1999-2012 Gentoo Foundation 1# Copyright 1999-2012 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/vala.eclass,v 1.1 2012/09/12 20:22:39 tetromino Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/vala.eclass,v 1.2 2012/09/12 20:43:08 tetromino Exp $
4 4
5# @ECLASS: vala.eclass 5# @ECLASS: vala.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# gnome@gentoo.org 7# gnome@gentoo.org
8# @AUTHOR: 8# @AUTHOR:
96 [[ ${version} ]] || die "No installed vala in $(vala_depend)" 96 [[ ${version} ]] || die "No installed vala in $(vala_depend)"
97 fi 97 fi
98 98
99 export VALAC=$(type -P valac-${version}) 99 export VALAC=$(type -P valac-${version})
100 100
101 valafoo=$(type -P vala-gen-introspect-${VALA_API_VERSION}) 101 valafoo=$(type -P vala-gen-introspect-${version})
102 [[ ${valafoo} ]] && export VALA_GEN_INTROSPECT=$(type -P vala-gen-introspect-${version}) 102 [[ ${valafoo} ]] && export VALA_GEN_INTROSPECT=$(type -P vala-gen-introspect-${version})
103 103
104 valafoo=$(type -P vapigen-${VALA_API_VERSION}) 104 valafoo=$(type -P vapigen-${version})
105 [[ ${valafoo} ]] && export VAPIGEN="${valafoo}" 105 [[ ${valafoo} ]] && export VAPIGEN="${valafoo}"
106 106
107 valafoo="${EPREFIX}/usr/share/vala/Makefile.vapigen" 107 valafoo="${EPREFIX}/usr/share/vala/Makefile.vapigen"
108 [[ -e ${valafoo} ]] && export VAPIGEN_MAKEFILE="${valafoo}" 108 [[ -e ${valafoo} ]] && export VAPIGEN_MAKEFILE="${valafoo}"
109 109
110 export VAPIGEN_VAPIDIR="${EPREFIX}/usr/share/vala/vapi" 110 export VAPIGEN_VAPIDIR="${EPREFIX}/usr/share/vala/vapi"
111 111
112 mkdir -p "${T}/pkgconfig" || die "mkdir failed" 112 mkdir -p "${T}/pkgconfig" || die "mkdir failed"
113 for p in libvala vapigen; do 113 for p in libvala vapigen; do
114 for d in "${EPREFIX}/usr/$(get_libdir)/pkgconfig" "${EPREFIX}/usr/share/pkgconfig"; do 114 for d in "${EPREFIX}/usr/$(get_libdir)/pkgconfig" "${EPREFIX}/usr/share/pkgconfig"; do
115 if [[ -e ${d}/${p}-${VALA_API_VERSION}.pc ]]; then 115 if [[ -e ${d}/${p}-${version}.pc ]]; then
116 ln -s "${d}/${p}-${VALA_API_VERSION}.pc" "${T}/pkgconfig/${p}.pc" || die "ln failed" 116 ln -s "${d}/${p}-${version}.pc" "${T}/pkgconfig/${p}.pc" || die "ln failed"
117 break 117 break
118 fi 118 fi
119 done 119 done
120 done 120 done
121 : ${PKG_CONFIG_PATH:="${EPREFIX}/usr/$(get_libdir)/pkgconfig:${EPREFIX}/usr/share/pkgconfig"} 121 : ${PKG_CONFIG_PATH:="${EPREFIX}/usr/$(get_libdir)/pkgconfig:${EPREFIX}/usr/share/pkgconfig"}

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.20