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

Diff of /eclass/fox.eclass

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

Revision 1.7 Revision 1.8
1# Copyright 1999-2005 Gentoo Foundation 1# Copyright 1999-2005 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/fox.eclass,v 1.7 2007/01/15 20:27:06 mabi Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/fox.eclass,v 1.8 2008/10/12 12:31:36 mabi Exp $
4 4
5# fox eclass 5# fox eclass
6# 6#
7# This eclass allows building SLOT-able FOX Toolkit installations 7# This eclass allows building SLOT-able FOX Toolkit installations
8# (x11-libs/fox: headers, libs, and docs), which are by design 8# (x11-libs/fox: headers, libs, and docs), which are by design
27# 1.5: '~x11-libs/fox-${PV}' 27# 1.5: '~x11-libs/fox-${PV}'
28# 1.6: '=x11-libs/fox-${FOXVER}*' 28# 1.6: '=x11-libs/fox-${FOXVER}*'
29# 29#
30# Some concepts borrowed from gst-plugins and gtk-sharp-component eclasses 30# Some concepts borrowed from gst-plugins and gtk-sharp-component eclasses
31 31
32inherit eutils libtool 32inherit eutils libtool versionator
33 33
34 34
35FOX_PV="${FOX_PV:-${PV}}" 35FOX_PV="${FOX_PV:-${PV}}"
36PVP=(${FOX_PV//[-\._]/ }) 36PVP=(${FOX_PV//[-\._]/ })
37FOXVER="${PVP[0]}.${PVP[1]}" 37FOXVER="${PVP[0]}.${PVP[1]}"
108 ${d}/Makefile.am || die "sed ${d}/Makefile.am error" 108 ${d}/Makefile.am || die "sed ${d}/Makefile.am error"
109 done 109 done
110 110
111 # use the installed headers and library for apps 111 # use the installed headers and library for apps
112 for d in ${FOX_APPS} ; do 112 for d in ${FOX_APPS} ; do
113 if version_is_at_least "1.6.34" ${PV} ; then
113 sed -i \ 114 sed -i \
114 -e "s:-I\$(top_srcdir)/include -I\$(top_builddir)/include:-I\$(includedir)/fox${FOXVER_SUFFIX}:" \ 115 -e "s:-I\$(top_srcdir)/include -I\$(top_builddir)/include:-I\$(includedir)/fox${FOXVER_SUFFIX}:" \
115 -e 's:../src/libFOX:-lFOX:' \ 116 -e 's:$(top_builddir)/src/libFOX:-lFOX:' \
116 -e 's:\.la::' \ 117 -e 's:\.la::' \
117 ${d}/Makefile.am || die "sed ${d}/Makefile.am error" 118 ${d}/Makefile.am || die "sed ${d}/Makefile.am error"
119 else
120 sed -i \
121 -e "s:-I\$(top_srcdir)/include -I\$(top_builddir)/include:-I\$(includedir)/fox${FOXVER_SUFFIX}:" \
122 -e 's:../src/libFOX:-lFOX:' \
123 -e 's:\.la::' \
124 ${d}/Makefile.am || die "sed ${d}/Makefile.am error"
125 fi
118 done 126 done
119 127
120 # Upstream often has trouble with version number transitions 128 # Upstream often has trouble with version number transitions
121 if [ "${FOXVER}" == "1.5" ] ; then 129 if [ "${FOXVER}" == "1.5" ] ; then
122 sed -i -e 's:1.4:1.5:g' chart/Makefile.am 130 sed -i -e 's:1.4:1.5:g' chart/Makefile.am

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8

  ViewVC Help
Powered by ViewVC 1.1.20