/[gentoo-x86]/eclass/gtk-sharp-module.eclass
Gentoo

Diff of /eclass/gtk-sharp-module.eclass

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

Revision 1.2 Revision 1.3
1# Copyright 1999-2008 Gentoo Foundation 1# Copyright 1999-2008 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/gtk-sharp-module.eclass,v 1.2 2008/11/26 00:54:41 loki_val Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/gtk-sharp-module.eclass,v 1.3 2008/11/26 10:03:42 loki_val Exp $
4 4
5# Author : Peter Johanson <latexer@gentoo.org>, butchered by ikelos, then loki_val. 5# Author : Peter Johanson <latexer@gentoo.org>, butchered by ikelos, then loki_val.
6# Based off of original work in gst-plugins.eclass by <foser@gentoo.org> 6# Based off of original work in gst-plugins.eclass by <foser@gentoo.org>
7 7
8# Note that this breaks compatibility with the original gtk-sharp-component 8# Note that this breaks compatibility with the original gtk-sharp-component
121 epatch ${WORKDIR}/${MY_P}-configurable.diff 121 epatch ${WORKDIR}/${MY_P}-configurable.diff
122 122
123 # Fixes support with pkgconfig-0.17, #92503. 123 # Fixes support with pkgconfig-0.17, #92503.
124 sed -i -e 's/\<PKG_PATH\>/GTK_SHARP_PKG_PATH/g' \ 124 sed -i -e 's/\<PKG_PATH\>/GTK_SHARP_PKG_PATH/g' \
125 -e ':^CFLAGS=:d' \ 125 -e ':^CFLAGS=:d' \
126 ${S}/configure.in 126 "${S}"/configure.in
127 127
128 # Fix install data hook, #161093. 128 # Fix install data hook, #161093.
129 if [ -f "${S}/sample/gconf/Makefile.am" ] 129 if [ -f "${S}/sample/gconf/Makefile.am" ]
130 then 130 then
131 sed -i -e 's/^install-hook/install-data-hook/' \ 131 sed -i -e 's/^install-hook/install-data-hook/' \
132 ${S}/sample/gconf/Makefile.am || die 132 "${S}"/sample/gconf/Makefile.am || die
133 fi 133 fi
134 134
135 # Disable building samples, #16015. 135 # Disable building samples, #16015.
136 sed -i -e "s:sample::" ${S}/Makefile.am || die 136 sed -i -e "s:sample::" "${S}"/Makefile.am || die
137 137
138 eautoreconf 138 eautoreconf
139 139
140 cd ${S}/${GTK_SHARP_MODULE_DIR} 140 cd "${S}"/${GTK_SHARP_MODULE_DIR}
141 141
142 gtk-sharp-module_fix_files 142 gtk-sharp-module_fix_files
143} 143}
144 144
145gtk-sharp-module_src_configure() { 145gtk-sharp-module_src_configure() {
159 done 159 done
160 for module in ${GTK_SHARP_MODULE} ${GTK_SHARP_MODULE_DEPS} ; do 160 for module in ${GTK_SHARP_MODULE} ${GTK_SHARP_MODULE_DEPS} ; do
161 gtk_sharp_conf="${gtk_sharp_conf} --enable-${module} " 161 gtk_sharp_conf="${gtk_sharp_conf} --enable-${module} "
162 done 162 done
163 163
164 cd ${S} 164 cd "${S}"
165 econf ${@} ${gtk_sharp_conf} || die "econf failed" 165 econf ${@} ${gtk_sharp_conf} || die "econf failed"
166} 166}
167 167
168gtk-sharp-module_src_compile() { 168gtk-sharp-module_src_compile() {
169 169
170 cd ${S}/${GTK_SHARP_MODULE_DIR} 170 cd "${S}"/${GTK_SHARP_MODULE_DIR}
171 LANG=C emake -j1 || die "emake failed" 171 LANG=C emake -j1 || die "emake failed"
172} 172}
173 173
174gtk-sharp-module_src_install() { 174gtk-sharp-module_src_install() {
175 cd ${GTK_SHARP_MODULE_DIR} 175 cd ${GTK_SHARP_MODULE_DIR}
176 LANG=C emake GACUTIL_FLAGS="/root ${D}/usr/$(get_libdir) /gacdir /usr/$(get_libdir) /package gtk-sharp${GTK_SHARP_SLOT_DEC}" \ 176 LANG=C emake GACUTIL_FLAGS="/root ${D}/usr/$(get_libdir) /gacdir /usr/$(get_libdir) /package gtk-sharp${GTK_SHARP_SLOT_DEC}" \
177 DESTDIR=${D} install || die "emake install failed" 177 DESTDIR="${D}" install || die "emake install failed"
178} 178}
179 179
180EXPORT_FUNCTIONS src_prepare src_configure src_compile src_install 180EXPORT_FUNCTIONS src_prepare src_configure src_compile src_install

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

  ViewVC Help
Powered by ViewVC 1.1.20