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

Diff of /eclass/fox.eclass

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

Revision 1.3 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.3 2005/07/06 20:23:20 agriffis 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
47IUSE="debug doc profile" 47IUSE="debug doc profile"
48 48
49# from fox-1.0 49# from fox-1.0
50FOX_APPS="adie calculator pathfinder" 50FOX_APPS="adie calculator pathfinder"
51# from fox-1.2+ 51# from fox-1.2+
52if [ "${FOXVER}" != "1.0" ] ; then 52if [ "${FOXVER}" != "1.0" ] ; then
53 FOX_APPS="${FOX_APPS} shutterbug" 53 FOX_APPS="${FOX_APPS} shutterbug"
54 FOX_CHART="chart" 54 FOX_CHART="chart"
55fi 55fi
56 56
57if [ "${PN}" != fox ] ; then 57if [ "${PN}" != fox ] ; then
64 64
65if [ "${PN}" != reswrap ] ; then 65if [ "${PN}" != reswrap ] ; then
66 RESWRAP_DEP="dev-util/reswrap" 66 RESWRAP_DEP="dev-util/reswrap"
67fi 67fi
68 68
69DEPEND="${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}
70 ${DOXYGEN_DEP} 77 ${DOXYGEN_DEP}
71 ${RESWRAP_DEP} 78 ${RESWRAP_DEP}
72 =sys-devel/automake-1.4* 79 =sys-devel/automake-1.4*
73 >=sys-apps/sed-4" 80 >=sys-apps/sed-4"
74 81
125} 132}
126 133
127fox_src_compile() { 134fox_src_compile() {
128 local myconf 135 local myconf
129 use debug && myconf="${myconf} --enable-debug" \ 136 use debug && myconf="${myconf} --enable-debug" \
130 || myconf="${myconf} --enable-release" 137 || myconf="${myconf} --enable-release"
131 138
132 econf \ 139 econf \
133 ${FOXCONF} \ 140 ${FOXCONF} \
134 ${myconf} \ 141 ${myconf} \
135 $(use_with profile profiling) \ 142 $(use_with profile profiling) \
194 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
195 fi 202 fi
196} 203}
197 204
198fox_pkg_postinst() { 205fox_pkg_postinst() {
199 if [ -z "${FOX_COMPONENT}" ] ; then 206 if [ -z "${FOX_COMPONENT}" ] ; then
200 echo 207 echo
201 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"
202 einfo "in parallel SLOTs on the same system." 209 einfo "in parallel SLOTs on the same system."
203 einfo 210 einfo
204 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.3  
changed lines
  Added in v.1.6

  ViewVC Help
Powered by ViewVC 1.1.20