/[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.1.1.1
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.1.1.1 2005/11/30 09:59:33 chriswhite 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'
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}
72 ${DOXYGEN_DEP} 69DEPEND="${DOXYGEN_DEP}
73 ${RESWRAP_DEP} 70 ${RESWRAP_DEP}
74 =sys-devel/automake-1.4* 71 =sys-devel/automake-1.4*
75 >=sys-apps/sed-4" 72 >=sys-apps/sed-4"
76 73
77S="${WORKDIR}/fox-${FOX_PV}" 74S="${WORKDIR}/fox-${FOX_PV}"
127} 124}
128 125
129fox_src_compile() { 126fox_src_compile() {
130 local myconf 127 local myconf
131 use debug && myconf="${myconf} --enable-debug" \ 128 use debug && myconf="${myconf} --enable-debug" \
132 || myconf="${myconf} --enable-release" 129 || myconf="${myconf} --enable-release"
133 130
134 econf \ 131 econf \
135 ${FOXCONF} \ 132 ${FOXCONF} \
136 ${myconf} \ 133 ${myconf} \
137 $(use_with profile profiling) \ 134 $(use_with profile profiling) \
196 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
197 fi 194 fi
198} 195}
199 196
200fox_pkg_postinst() { 197fox_pkg_postinst() {
201 if [ -z "${FOX_COMPONENT}" ] ; then 198 if [ -z "${FOX_COMPONENT}" ] ; then
202 echo 199 echo
203 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"
204 einfo "in parallel SLOTs on the same system." 201 einfo "in parallel SLOTs on the same system."
205 einfo 202 einfo
206 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.1  
changed lines
  Added in v.1.1.1.1

  ViewVC Help
Powered by ViewVC 1.1.20