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

Diff of /eclass/fox.eclass

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

Revision 1.1 Revision 1.6
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.1 2005/05/07 19:16:27 rphillips Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/fox.eclass,v 1.6 2006/10/30 22:14:18 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
9# parallel-installable, while installing only one version of the utils 9# parallel-installable, while installing only one version of the utils
10# (dev-util/reswrap) and apps (app-editors/adie, sci-calculators/calculator, 10# (dev-util/reswrap) and apps (app-editors/adie, sci-calculators/calculator,
11# x11-misc/pathfinder, and x11-misc/shutterbug). 11# x11-misc/pathfinder, and x11-misc/shutterbug).
12# 12#
13# Version numbering follows the kernel-style odd-even minor version 13# Version numbering follows the kernel-style odd-even minor version
14# designation. Even-number minor versions are API stable, which patch 14# designation. Even-number minor versions are API stable, which patch
15# releases aimed mostly at the library; apps generally won't need to be 15# releases aimed mostly at the library; apps generally won't need to be
16# bumped for a patch release. 16# bumped for a patch release.
17# 17#
18# Odd-number versions are development branches with their own SLOT and 18# Odd-number versions are development branches with their own SLOT and
19# are API unstable; changes are made to the apps, and likely need to be 19# are API unstable; changes are made to the apps, and likely need to be
20# bumped together with the library. 20# bumped together with the library.
21# 21#
22# Here are sample [R]DEPENDs for the fox apps, based on the first versions 22# Here are sample [R]DEPENDs for the fox apps
23# in each branch to use this eclass: 23# fox versions that do not use this eclass are blocked in INCOMPAT_DEP below
24# 1.0: '>=x11-libs/fox-1.0.53 <x11-libs/fox-1.1' 24# 1.0: '=x11-libs/fox-1.0*'
25# 1.2: '>=x11-libs/fox-1.2.15 <x11-libs/fox-1.3' 25# 1.2: '=x11-libs/fox-1.2*'
26# 1.4: '>=x11-libs/fox-1.4.12 <x11-libs/fox-1.5' 26# 1.4: '=x11-libs/fox-1.4*'
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
33 33
34ECLASS="fox"
35INHERITED="$INHERITED $ECLASS"
36 34
37FOX_PV="${FOX_PV:-${PV}}" 35FOX_PV="${FOX_PV:-${PV}}"
38PVP=(${FOX_PV//[-\._]/ }) 36PVP=(${FOX_PV//[-\._]/ })
39FOXVER="${PVP[0]}.${PVP[1]}" 37FOXVER="${PVP[0]}.${PVP[1]}"
40 38
49IUSE="debug doc profile" 47IUSE="debug doc profile"
50 48
51# from fox-1.0 49# from fox-1.0
52FOX_APPS="adie calculator pathfinder" 50FOX_APPS="adie calculator pathfinder"
53# from fox-1.2+ 51# from fox-1.2+
54if [ "${FOXVER}" != "1.0" ] ; then 52if [ "${FOXVER}" != "1.0" ] ; then
55 FOX_APPS="${FOX_APPS} shutterbug" 53 FOX_APPS="${FOX_APPS} shutterbug"
56 FOX_CHART="chart" 54 FOX_CHART="chart"
57fi 55fi
58 56
59if [ "${PN}" != fox ] ; then 57if [ "${PN}" != fox ] ; then
66 64
67if [ "${PN}" != reswrap ] ; then 65if [ "${PN}" != reswrap ] ; then
68 RESWRAP_DEP="dev-util/reswrap" 66 RESWRAP_DEP="dev-util/reswrap"
69fi 67fi
70 68
71DEPEND="${RDEPEND} 69# These versions are not compatible with new fox layout
70# and will cause collissions - we need to block them
71INCOMPAT_DEP="!<x11-libs/fox-1.0.53
72 !=x11-libs/fox-1.2.4
73 !~x11-libs/fox-1.2.6
74 !=x11-libs/fox-1.4.11"
75
76DEPEND="${INCOMPAT_DEP}
72 ${DOXYGEN_DEP} 77 ${DOXYGEN_DEP}
73 ${RESWRAP_DEP} 78 ${RESWRAP_DEP}
74 =sys-devel/automake-1.4* 79 =sys-devel/automake-1.4*
75 >=sys-apps/sed-4" 80 >=sys-apps/sed-4"
76 81
127} 132}
128 133
129fox_src_compile() { 134fox_src_compile() {
130 local myconf 135 local myconf
131 use debug && myconf="${myconf} --enable-debug" \ 136 use debug && myconf="${myconf} --enable-debug" \
132 || myconf="${myconf} --enable-release" 137 || myconf="${myconf} --enable-release"
133 138
134 econf \ 139 econf \
135 ${FOXCONF} \ 140 ${FOXCONF} \
136 ${myconf} \ 141 ${myconf} \
137 $(use_with profile profiling) \ 142 $(use_with profile profiling) \
196 mv ${D}/usr/bin/fox-config ${D}/usr/bin/fox-${FOXVER}-config 201 mv ${D}/usr/bin/fox-config ${D}/usr/bin/fox-${FOXVER}-config
197 fi 202 fi
198} 203}
199 204
200fox_pkg_postinst() { 205fox_pkg_postinst() {
201 if [ -z "${FOX_COMPONENT}" ] ; then 206 if [ -z "${FOX_COMPONENT}" ] ; then
202 echo 207 echo
203 einfo "Multiple versions of the FOX Toolkit library may now be installed" 208 einfo "Multiple versions of the FOX Toolkit library may now be installed"
204 einfo "in parallel SLOTs on the same system." 209 einfo "in parallel SLOTs on the same system."
205 einfo 210 einfo
206 einfo "The reswrap utility and the applications included in the FOX Toolkit" 211 einfo "The reswrap utility and the applications included in the FOX Toolkit"

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

  ViewVC Help
Powered by ViewVC 1.1.20