# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/gnome-extra/gtkhtml/gtkhtml-1.1.10-r1.ebuild,v 1.11 2006/02/06 19:34:07 agriffis Exp $ inherit gnome.org libtool eutils multilib MY_PV="`echo ${PV} | cut -d. -f1,2`" DESCRIPTION="Lightweight HTML rendering/printing/editing engine." HOMEPAGE="http://www.gnome.org/" LICENSE="GPL-2 LGPL-2.1" # This one lets gtkhtml-1.0 compiled stuff work, but some stuff do # not compile, so not sure as to what to set SLOT to .. it could be # that new versions will support 1.[12] of gtkhtml ... SLOT="1" KEYWORDS="alpha amd64 hppa ia64 ppc sparc x86" IUSE="nls" # peg gtkhtml at gal-0.23 because it might get confused with gal-1.99 RDEPEND="=gnome-extra/gal-0.24* =gnome-base/libghttp-1.0.9-r1 >=dev-libs/libunicode-0.4-r1 >=gnome-base/gnome-print-0.34 >=gnome-base/bonobo-1.0.20 (9 Nov 2002) conv_pkgconfig_confsh() { local pkgconfig_file="$1" local confsh_file="${pkgconfig_file%%-*}Conf.sh" local package_name="`echo ${pkgconfig_file%%-*} | awk '{print toupper($0)}'`" local tmpfile="${T}/$$.env" [ "$#" -ne 1 ] && return 1 [ ! -f ${D}/usr/$(get_libdir)/pkgconfig/${pkgconfig_file} ] && return 1 # Remove bogus info and convert to bash type file we can # source ... sed -e 's|: *|=|g' \ -e '/^$/ d' \ -e 's|$|"|g' \ -e 's|=|="|g' \ -e 's|Libs=|libs=|' \ -e 's|Cflags=|cflags=|' \ -e '/^Name.*/ d' \ -e '/^Description.*/ d' \ -e '/^Version.*/ d' \ ${D}/usr/$(get_libdir)/pkgconfig/${pkgconfig_file} > ${tmpfile} source ${tmpfile} # Ok, generate our Conf.sh file cat > ${D}/usr/$(get_libdir)/${confsh_file} < (9 Nov 2002) conv_pkgconfig_confsh ${PN}-${MY_PV}.pc # Add some type of backward compat for libs... fullname="`eval basename \`readlink ${D}/usr/$(get_libdir)/lib${PN}-${MY_PV}.so\``" dosym ${fullname##*/} /usr/$(get_libdir)/lib${PN}.so dosym ${fullname##*/} /usr/$(get_libdir)/lib${PN}.so.20 # For older apps to be able to find the data... dosym '.' /usr/share/${PN}-${MY_PV}/${PN} dodoc AUTHORS COPYING* ChangeLog README NEWS TODO }