/[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.4
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.4 2005/07/11 15:08:06 swegener 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, based on the first versions
23# in each branch to use this eclass: 23# in each branch to use this eclass:
24# 1.0: '>=x11-libs/fox-1.0.53 <x11-libs/fox-1.1' 24# 1.0: '>=x11-libs/fox-1.0.53 <x11-libs/fox-1.1'
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}
70 ${DOXYGEN_DEP} 69DEPEND="${DOXYGEN_DEP}
71 ${RESWRAP_DEP} 70 ${RESWRAP_DEP}
72 =sys-devel/automake-1.4* 71 =sys-devel/automake-1.4*
73 >=sys-apps/sed-4" 72 >=sys-apps/sed-4"
74 73
75S="${WORKDIR}/fox-${FOX_PV}" 74S="${WORKDIR}/fox-${FOX_PV}"
125} 124}
126 125
127fox_src_compile() { 126fox_src_compile() {
128 local myconf 127 local myconf
129 use debug && myconf="${myconf} --enable-debug" \ 128 use debug && myconf="${myconf} --enable-debug" \
130 || myconf="${myconf} --enable-release" 129 || myconf="${myconf} --enable-release"
131 130
132 econf \ 131 econf \
133 ${FOXCONF} \ 132 ${FOXCONF} \
134 ${myconf} \ 133 ${myconf} \
135 $(use_with profile profiling) \ 134 $(use_with profile profiling) \
194 mv ${D}/usr/bin/fox-config ${D}/usr/bin/fox-${FOXVER}-config 193 mv ${D}/usr/bin/fox-config ${D}/usr/bin/fox-${FOXVER}-config
195 fi 194 fi
196} 195}
197 196
198fox_pkg_postinst() { 197fox_pkg_postinst() {
199 if [ -z "${FOX_COMPONENT}" ] ; then 198 if [ -z "${FOX_COMPONENT}" ] ; then
200 echo 199 echo
201 einfo "Multiple versions of the FOX Toolkit library may now be installed" 200 einfo "Multiple versions of the FOX Toolkit library may now be installed"
202 einfo "in parallel SLOTs on the same system." 201 einfo "in parallel SLOTs on the same system."
203 einfo 202 einfo
204 einfo "The reswrap utility and the applications included in the FOX Toolkit" 203 einfo "The reswrap utility and the applications included in the FOX Toolkit"

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

  ViewVC Help
Powered by ViewVC 1.1.20