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

Contents of /eclass/ion-devel.eclass

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Mon Dec 29 01:51:36 2003 UTC (10 years, 10 months ago) by twp
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
No longer needed

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-devel.eclass,v 1.2 2003/12/10 11:17:40 twp Exp $
4
5 ECLASS=ion-devel
6 INHERITED="${INHERITED} ${ECLASS}"
7
8 save_DESCRIPTION="${DESCRIPTION}"
9 inherit eutils
10 DESCRIPTION="${save_DESCRIPTION}"
11
12 ION_DEVEL_VERSION=${ION_DEVEL_VERSION:-${PV}}
13
14 HOMEPAGE="http://www.iki.fi/tuomov/ion/"
15 IUSE="${IUSE} xinerama"
16 SRC_URI="${SRC_URI} http://modeemi.fi/~tuomov/dl/ion-devel-${ION_DEVEL_VERSION/_p/-}.tar.gz"
17
18 ion-devel-patch() {
19 cat >${T}/${1}.patch
20 epatch ${T}/${1}.patch
21 }
22
23 ion-devel-configure_20031121() {
24
25 ion-devel-patch system.mk <<EOP
26 --- ion-devel-20031121/system.mk 2003-11-19 22:39:16.000000000 +0100
27 +++ ion-devel/system.mk 2003-11-22 01:17:23.000000000 +0100
28 @@ -7,7 +7,7 @@
29 ## Installation paths
30 ##
31
32 -PREFIX=/usr/local/ion-devel
33 +PREFIX=/usr
34
35 # Unless you are creating a package conforming to some OS's standards, you
36 # probably do not want to modify the following directories:
37 @@ -15,13 +15,13 @@
38 # 'ioncore' binary and 'ion' script
39 BINDIR=\$(PREFIX)/bin
40 # Configuration .lua files
41 -ETCDIR=\$(PREFIX)/etc/ion-devel
42 +ETCDIR=/etc/X11/ion-devel
43 # Some .lua files and ion-* shell scripts
44 SHAREDIR=\$(PREFIX)/share/ion-devel
45 # Manual pages
46 -MANDIR=\$(PREFIX)/man
47 +MANDIR=\$(PREFIX)/share/man
48 # Some documents
49 -DOCDIR=\$(PREFIX)/doc/ion-devel
50 +DOCDIR=\$(PREFIX)/share/doc/${PF}
51 # Nothing at the moment
52 INCDIR=\$(PREFIX)/include/ion-devel
53 # Nothing at the moment
54 @@ -68,9 +68,9 @@
55
56 # If you have installed Lua 5.0 from the official tarball without changing
57 # paths, this so do it.
58 -LUA_PATH=/usr/local
59 -LUA_LIBS = -L\$(LUA_PATH)/lib -R\$(LUA_PATH)/lib -llua -llualib
60 -LUA_INCLUDES = -I\$(LUA_PATH)/include
61 +LUA_PATH=/usr
62 +LUA_LIBS = -llua -llualib
63 +LUA_INCLUDES =
64 LUA=\$(LUA_PATH)/bin/lua
65 LUAC=\$(LUA_PATH)/bin/luac
66
67 @@ -116,7 +116,7 @@
68 # asprintf and vasprintf in the c library. (gnu libc has.)
69 # If HAS_SYSTEM_ASPRINTF is not defined, an implementation
70 # in sprintf_2.2/ is used.
71 -#HAS_SYSTEM_ASPRINTF=1
72 +HAS_SYSTEM_ASPRINTF=1
73
74
75 ##
76 @@ -139,7 +139,7 @@
77 # it so it is perhaps better not using anything at all.
78
79 # Most systems
80 -#XOPEN_SOURCE=-ansi -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED
81 +XOPEN_SOURCE=-D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED
82 # sunos, (irix)
83 #XOPEN_SOURCE=-ansi -D__EXTENSIONS__
84
85 @@ -153,8 +153,8 @@
86 # following should optimize function calls to Lua a little.
87 #C99_SOURCE=-std=c99 -DCF_HAS_VA_COPY
88
89 -CFLAGS=-g -Os \$(WARN) \$(DEFINES) \$(INCLUDES) \$(EXTRA_INCLUDES)
90 -LDFLAGS=-g -Os \$(LIBS) \$(EXTRA_LIBS)
91 +CFLAGS=${CFLAGS} \$(WARN) \$(DEFINES) \$(INCLUDES) \$(EXTRA_INCLUDES)
92 +LDFLAGS=${CFLAGS} \$(LIBS) \$(EXTRA_LIBS)
93
94
95 ##
96 EOP
97
98 ion-devel-patch clientwin <<EOP
99 --- ion-devel-20031121/ioncore/clientwin.c 2003-11-19 22:39:21.000000000 +0100
100 +++ ion-devel/ioncore/clientwin.c 2003-12-02 19:11:39.000000000 +0100
101 @@ -298,9 +298,9 @@
102 region_init(&(cwin->region), parent, &geom);
103
104 get_colormaps(cwin);
105 - get_winprops(cwin);
106 clientwin_get_protocols(cwin);
107 clientwin_get_set_name(cwin);
108 + get_winprops(cwin);
109 clientwin_get_size_hints(cwin);
110
111 XSelectInput(wglobal.dpy, win, cwin->event_mask);
112 EOP
113
114 if [ `use xinerama` ]; then
115 einfo Enabling Xinerama support
116 eend 0
117 else
118 einfo Disabling Xinerama support
119 sed -i system.mk \
120 -e 's/\(XINERAMA_LIBS=-lXinerama\)/#\1/' \
121 -e 's/#\(DEFINES += -DCF_NO_XINERAMA\)/\1/'
122 eend $?
123 fi
124
125 if has_version '<x11-base/xfree-4.3.0'; then
126 einfo Enabling Xfree\<4.3.0/Opera/UTF-8 bug workaround
127 eend 0
128 else
129 einfo Disabling Xfree\<4.3.0/Opera/UTF-8 bug workaround
130 sed -i system.mk \
131 -e 's/\(DEFINES += -DCF_XFREE86_TEXTPROP_BUG_WORKAROUND\)/#\1/'
132 eend $?
133 fi
134
135 # Currently disabled
136 # UTF-8 support is broken
137 # if [ `use ion-utf8` ]; then
138 # einfo Using Xutf8* instead of Xmb* in UTF-8 locales
139 # sed -i system.mk \
140 # -e 's/#\(DEFINES += -DCF_DE_USE_XUTF8\)/\1/'
141 # eend $?
142 # fi
143
144 if has_version '>=sys-devel/gcc-3'; then
145 einfo Enabling Lua function call optimizations
146 sed -i system.mk \
147 -e 's/#\(C99_SOURCE=-std=c99 -DCF_HAS_VA_COPY\)/\1/'
148 eend $?
149 fi
150
151 }
152
153 ion-devel_src_unpack() {
154
155 unpack ${A}
156
157 echo ">>> Configuring ion-devel-${ION_DEVEL_VERSION}"
158 ln -s ion-devel-${ION_DEVEL_VERSION/_p/-} ion-devel
159 cd ion-devel
160 ion-devel-configure_${ION_DEVEL_VERSION}
161
162 }
163
164 ion-devel_src_compile() {
165 emake || die
166 }
167
168 ion-devel_src_install() {
169 make PREFIX=${D}/usr ETCDIR=${D}/etc/X11/ion-devel install || die
170 }
171
172 EXPORT_FUNCTIONS src_unpack src_compile src_install

  ViewVC Help
Powered by ViewVC 1.1.20