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

Contents of /eclass/ion.eclass

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Sun Sep 28 03:11:39 2003 UTC (11 years ago) by twp
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
No longer used

1 # Copyright 1999-2003 Gentoo Technologies, Inc.
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /home/cvsroot/gentoo-x86/eclass/ion.eclass,v 1.3 2003/07/18 20:17:44 vapier Exp $
4
5 ECLASS=ion
6 INHERITED="${INHERITED} ${ECLASS}"
7
8 IUSE="${IUSE} truetype"
9 SRC_URI="${SRC_URI} http://modeemi.cs.tut.fi/~tuomov/dl/ion-devel-${ION_VERSION}.tar.gz"
10 DEPEND="${DEPEND}
11 virtual/glibc
12 virtual/x11
13 truetype? ( virtual/xft )"
14
15 ion_src_configure() {
16
17 if [ -n "$1" ]; then
18 echo ">>> Configuring Ion in $1..."
19 local wd=`pwd`
20 cd $1
21 else
22 echo ">>> Configuring Ion..."
23 fi
24
25 cp system.mk system.mk.orig
26 sed -e 's:^PREFIX=/usr/local/ion-devel:PREFIX=/usr:' \
27 -e 's:^ETCDIR=$(PREFIX)/etc:ETCDIR=/etc/X11:' \
28 -e 's:^MANDIR=$(PREFIX)/man:MANDIR=$(PREFIX)/share/man:' \
29 -e 's:^DOCDIR=$(PREFIX)/doc:DOCDIR=$(PREFIX)/share/doc:' \
30 -e 's:^#DEFINES += -DCF_UTF8 -DCF_ICONV_TARGET=\\"WCHAR_T\\" -DCF_ICONV_SOURCE=\\"UTF-8\\":DEFINES += -DCF_UTF8 -DCF_ICONV_TARGET=\\"WCHAR_T\\" -DCF_ICONV_SOURCE=\\"UTF-8\\":' \
31 -e 's:^#HAS_SYSTEM_ASPRINTF=1:HAS_SYSTEM_ASPRINTF=1:' \
32 -e 's:#XOPEN_SOURCE=-ansi -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED:XOPEN_SOURCE=-ansi -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED:' \
33 -e "s:^CFLAGS=-g -O2 \$(WARN) \$(DEFINES) \$(INCLUDES) \$(EXTRA_INCLUDES):CFLAGS=${CFLAGS} \$(WARN) \$(DEFINES) \$(INCLUDES) \$(EXTRA_INCLUDES):" \
34 system.mk.orig > system.mk
35
36 local ion_version=`cut -d\ -f3 version.h | tr -d \"`
37 cp Makefile Makefile.orig
38 sed -e "s:\$(DOCDIR)/ion:\$(DOCDIR)/ion-devel-${ion_version}:" \
39 Makefile.orig > Makefile
40
41 if [ "`use truetype`" ]; then
42 local xft_config=`which xft-config 2> /dev/null`
43 if [ -n "${xft_config}" ] && [ -x "${xft_config}" ]; then
44 local xft_cflags=`${xft_config} --cflags`
45 local xft_libs=`${xft_config} --libs`
46 else
47 local xft_cflags=
48 local xft_libs="-lXft"
49 fi
50 cp system.mk system.mk.orig
51 sed -e 's:#DEFINES += -DCF_XFT:DEFINES += -DCF_XFT:' \
52 -e "s:#X11_INCLUDES += \`xft-config --cflags\`:X11_INCLUDES += ${xft_cflags}:" \
53 -e "s:#X11_LIBS += \`xft-config --libs\`:X11_LIBS += ${xft_libs}:" \
54 system.mk.orig > system.mk
55 fi
56
57 echo ">>> Ion configured."
58
59 if [ -n "$1" ]; then
60 cd ${wd}
61 fi
62
63 }
64
65 EXPORT_FUNCTIONS src_configure

  ViewVC Help
Powered by ViewVC 1.1.20