diff options
author | Jonathan Callen <jcallen@gentoo.org> | 2009-11-30 04:19:36 +0000 |
---|---|---|
committer | Jonathan Callen <jcallen@gentoo.org> | 2009-11-30 04:19:36 +0000 |
commit | 25e23d78c44428acf7b0fa4e3d78c2ad0841ad9d (patch) | |
tree | 472c481305df0e16f21798cf35d39108c7798b13 /eclass/gtk-sharp-component.eclass | |
parent | Drop usage of xfce44.eclass (deprecated) (diff) | |
download | historical-25e23d78c44428acf7b0fa4e3d78c2ad0841ad9d.tar.gz historical-25e23d78c44428acf7b0fa4e3d78c2ad0841ad9d.tar.bz2 historical-25e23d78c44428acf7b0fa4e3d78c2ad0841ad9d.zip |
Remove eclasses that have been marked as deprecated for >=2 years; schedule other deprecated eclasses for removal
Diffstat (limited to 'eclass/gtk-sharp-component.eclass')
-rw-r--r-- | eclass/gtk-sharp-component.eclass | 195 |
1 files changed, 5 insertions, 190 deletions
diff --git a/eclass/gtk-sharp-component.eclass b/eclass/gtk-sharp-component.eclass index be1e1887b9d2..af55cd6eb62f 100644 --- a/eclass/gtk-sharp-component.eclass +++ b/eclass/gtk-sharp-component.eclass @@ -1,192 +1,7 @@ -# Copyright 1999-2004 Gentoo Foundation +# Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/gtk-sharp-component.eclass,v 1.30 2009/02/08 20:29:53 loki_val Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/gtk-sharp-component.eclass,v 1.31 2009/11/30 04:19:36 abcd Exp $ -# Author : Peter Johanson <latexer@gentoo.org> -# Based off of original work in gst-plugins.eclass by <foser@gentoo.org> - -inherit eutils mono multilib autotools - -LICENSE="LGPL-2" - -HOMEPAGE="http://gtk-sharp.sourceforge.net/" -LICENSE="LGPL-2.1" -RESTRICT="test" - -: GTK_SHARP_TARBALL_PREFIX=${GTK_SHARP_TARBALL_PREFIX:="gtk-sharp"} - -: GTK_SHARP_REQUIRED_VERSION=${GTK_SHARP_REQUIRED_VERSION:=${PV%.*}} - -[ "${PV:0:1}" == "2" ] \ - && SOURCE_SERVER="http://www.go-mono.com/sources/gtk-sharp-2.0/" - -# Can be switched to [ "${PV:0:3}" == "2.8" ] when 2.8.0 is out of the tree. -[ "${PV}" == "2.8.2" ] \ - && SOURCE_SERVER="http://www.go-mono.com/sources/gtk-sharp-2.8/" - -[ "${PV%.*}" == "2.10" ] || [ "${PV%.*}" == "2.16" ] && \ - SOURCE_SERVER="mirror://gnome/sources/${GTK_SHARP_TARBALL_PREFIX}/${PV%.*}/" - -[ "${PV}" == "1.0.10" ] \ - && SOURCE_SERVER="http://www.go-mono.com/sources/gtk-sharp/" - -[ -z "${SOURCE_SERVER}" ] \ - && SOURCE_SERVER="mirror://sourceforge/gtk-sharp/" - -### -# variable declarations -### - -MY_P=${GTK_SHARP_TARBALL_PREFIX}-${PV} - -# From gtk-sharp-1.0 series -my_gtk_sharp_components="art gda glade gnome gnomedb gtkhtml rsvg vte" - -# Added in gtk-sharp-2.0 series -my_gtk_sharp_components="${my_gtk_sharp_components} gnomevfs panelapplet" - -# Version number used to differentiate between unversioned 1.0 series, -# and the versioned 2.0 series (2.0 series has 2 or 2.0 appended to various -# paths and scripts) -GTK_SHARP_COMPONENT_SLOT="" -GTK_SHARP_COMPONENT_SLOT_DEC="" - -# Extract the component to build from the ebuild name -# May be set by an ebuild and contain more than one indentifier, space seperated -# (only src_configure can handle mutiple plugins at this time) -GTK_SHARP_COMPONENT_BUILD=${PN/-sharp/} - -# Use to enable any other dependancies needed to build this package -GTK_SHARP_COMPONENT_BUILD_DEPS="" - -# Actual build dir, is the same as the configure switch name most of the time -GTK_SHARP_COMPONENT_BUILD_DIR=${PN/-sharp/} - -DESCRIPTION="${GTK_SHARP_COMPONENT_BUILD} component of gtk-sharp" -SRC_URI="${SOURCE_SERVER}/${MY_P}.tar.gz - mirror://gentoo/${MY_P}-configurable.diff.gz" - -S=${WORKDIR}/${MY_P} - -# Make sure we're building with the same version. -[[ "${ECLASS_DEPENDS}" = "no" ]] || DEPEND="=dev-dotnet/gtk-sharp-${GTK_SHARP_REQUIRED_VERSION}* - >=sys-apps/sed-4" - - -### -# public functions -### - -gtk-sharp-component_fix_makefiles() { - GAPI_DIR="${ROOT}/usr/share/gapi${GTK_SHARP_COMPONENT_SLOT_DEC}" - GAPI_FIXUP="gapi${GTK_SHARP_COMPONENT_SLOT}-fixup" - GAPI_CODEGEN="gapi${GTK_SHARP_COMPONENT_SLOT}-codegen" - GTK_SHARP_LIB_DIR="${ROOT}/usr/$(get_libdir)/mono/gtk-sharp${GTK_SHARP_COMPONENT_SLOT_DEC}" - - local makefiles="$(find ${S} -name Makefile.in)" - # Universal changes needed for all versions - sed -i -e "s;\(\.\.\|\$(top_srcdir)\)/[[:alpha:]]*/\([[:alpha:]]*\(-[[:alpha:]]*\)*\).xml;${GAPI_DIR}/\2.xml;g" \ - -i -e "s;/r:\(\.\./\)*[[:alpha:]]*/\([[:alpha:]]*\(-[[:alpha:]]*\)*\).dll;/r:${GTK_SHARP_LIB_DIR}/\2.dll;g" \ - ${makefiles} || die "Failed to fix the gtk-sharp makefiles" - - if [ "${PV:0:1}" == "2" ] ; then - sed -i -e "s:\$(SYMBOLS) \$(top_builddir)/parser/gapi-fixup.exe:\$(SYMBOLS):" \ - -e "s:\$(INCLUDE_API) \$(top_builddir)/generator/gapi_codegen.exe:\$(INCLUDE_API):" \ - -e "s:\$(RUNTIME) \$(top_builddir)/parser/gapi-fixup.exe:${GAPI_FIXUP}:" \ - -e "s:\$(RUNTIME) \$(top_builddir)/generator/gapi_codegen.exe:${GAPI_CODEGEN}:" \ - -e "s;\.\./[[:alpha:]]*/\([[:alpha:]]*\(-[[:alpha:]]*\)*\).dll;${GTK_SHARP_LIB_DIR}/\1.dll;g" \ - ${makefiles} || die "Failed to fix the gtk-sharp makefiles" - fi - - # Changes specific to *-sharp-1.0.x - if [ "${PV:0:3}" = "1.0" ] ; then - sed -i -e "s:\$(RUNTIME) \.\./parser/gapi-fixup.exe:${GAPI_FIXUP}:" \ - -e "s:\$(RUNTIME) \.\./generator/gapi_codegen.exe:${GAPI_CODEGEN}:" \ - -e "s: \.\./generator/gapi_codegen.exe::" \ - ${makefiles} || die "Failed to fix the gtk-sharp makefiles" - fi -} - -gtk-sharp-component_src_unpack() { - unpack ${A} - cd "${S}" - - # Make the components configurable - epatch "${WORKDIR}"/${MY_P}-configurable.diff - - # XXX: Gross hack to disable the GLADESHARP checks - # in the gnome-sharp-2.16.0 release unless you really - # need it. Remove this hack once this is moved into the - # next iteration of 2.x.0-configurable.diff.gz - if [ "${PV}" == "2.16.0" ] && [ "${PN}" != "gconf-sharp" ] - then - sed -i "s/\(.*GLADESHARP.*\)/# \1/g" configure.in || die - fi - - # fixes support with pkgconfig-0.17, bug #92503 - sed -i -e 's/\<PKG_PATH\>/GTK_SHARP_PKG_PATH/g' \ - -e ':^CFLAGS=:d' \ - "${S}"/configure.in - - # Use correct libdir in pkgconfig files - sed -i -e 's:^libdir.*:libdir=@libdir@:' \ - "${S}"/*/*.pc.in || die - - if [ -d "${S}/gconf/GConf" ] - then - sed -i -e 's:^libdir.*:libdir=@libdir@:' \ - "${S}"/gconf/GConf/*.pc.in || die - fi - - if [ -f "${S}/sample/gconf/Makefile.am" ] - then - # Fix install data hook (bug #161093) - sed -i -e 's/^install-hook/install-data-hook/' \ - "${S}"/sample/gconf/Makefile.am || die "sed failed" - fi - - # disable building of samples (#16015) - sed -i -e "s:sample::" "${S}"/Makefile.am || die - - eautoreconf - - cd "${S}"/${GTK_SHARP_COMPONENT_BUILD_DIR} - - gtk-sharp-component_fix_makefiles -} - -gtk-sharp-component_src_configure() { - - # disable any external plugin besides the plugin we want - local component deps gtk_sharp_conf - - einfo "Configuring to build ${PN} component ..." - - for component in ${GTK_SHARP_COMPONENT_BUILD} ${GTK_SHARP_COMPONENT_BUILD_DEPS}; do - my_gtk_sharp_components=${my_gtk_sharp_components/${component}/} - done - for component in ${my_gtk_sharp_components}; do - gtk_sharp_conf="${gtk_sharp_conf} --disable-${component} " - done - for component in ${GTK_SHARP_COMPONENT_BUILD} ${GTK_SHARP_COMPONENT_BUILD_DEPS}; do - gtk_sharp_conf="${gtk_sharp_conf} --enable-${component} " - done - - cd "${S}" - econf ${@} ${gtk_sharp_conf} || die "./configure failure" -} - -gtk-sharp-component_src_compile() { - gtk-sharp-component_src_configure ${@} - - cd "${S}"/${GTK_SHARP_COMPONENT_BUILD_DIR} - LANG=C emake -j1 || die "compile failure" -} - -gtk-sharp-component_src_install() { - cd ${GTK_SHARP_COMPONENT_BUILD_DIR} - LANG=C make GACUTIL_FLAGS="/root ${D}/usr/$(get_libdir) /gacdir /usr/$(get_libdir) /package gtk-sharp${GTK_SHARP_COMPONENT_SLOT_DEC}" \ - DESTDIR="${D}" install || die -} - -EXPORT_FUNCTIONS src_unpack src_compile src_install +# @DEAD +# To be removed 2011/11/30. +ewarn "Please fix your package (${CATEGORY}/${PF}) to not use ${ECLASS}.eclass" |