# Copyright 1999-2004 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.ebuild,v 1.12 2004/07/14 15:55:08 agriffis Exp $ IUSE="nls" inherit gnome.org libtool 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="0" KEYWORDS="x86 ppc sparc alpha hppa" # peg gtkhtml at gal-0.23 because it might get confused with gal-1.99 DEPEND="=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 nls? ( sys-devel/gettext >=dev-util/intltool-0.11 ) (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/lib/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/lib/pkgconfig/${pkgconfig_file} > ${tmpfile} source ${tmpfile} # Ok, generate our Conf.sh file cat > ${D}/usr/lib/${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/lib/lib${PN}-${MY_PV}.so\``" dosym ${fullname##*/} /usr/lib/lib${PN}.so dosym ${fullname##*/} /usr/lib/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 }