# Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils flag-o-matic DESCRIPTION="Removable media cataloger made with GTK+" HOMEPAGE="http://www.gwhere.org/" SRC_URI="http://www.gwhere.org/download/source/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="x86 amd64" IUSE="" DEPEND=">=x11-libs/gtk+-2.16.6 >=dev-libs/glib-2.20.5 >=x11-libs/libXi-1.2.1 >=x11-libs/libXext-1.0.5 >=x11-libs/libX11-1.2.2 >=sys-libs/glibc-2.9 >=sys-libs/zlib-1.2.3-r1 >=x11-libs/libXau-1.0.5 >=x11-libs/libXdmcp-1.0.2 " RDEPEND="${DEPEND}" src_unpack() { unpack ${A} epatch ${FILESDIR}/${P}.diff } src_compile() { use amd64 && append-flags "-Wall -fPIC" use amd64 && filter-flags -fomit-frame-pointer econf --enable-gtk20 || die "econf failed" emake || die "emake failed" } src_install() { # einstall is needed here einstall || die "einstall failed" dodoc AUTHORS BUGS ChangeLog NEWS README TODO || die "dodoc failed" dodir /usr/lib/gwhere/plugins dodir /usr/lib/gwhere/plugins/catalog dodir /usr/lib/gwhere/plugins/descr ln -s /usr/lib/libgwplugincatalogcsv.a /usr/lib/gwhere/plugins/catalog/ ln -s /usr/lib/libgwplugincatalogcsv.la /usr/lib/gwhere/plugins/catalog/ ln -s /usr/lib/libgwplugincatalogcsv.so /usr/lib/gwhere/plugins/catalog/ ln -s /usr/lib/libgwplugincatalogcsv.so.1 /usr/lib/gwhere/plugins/catalog/ ln -s /usr/lib/libgwplugincatalogcsv.so.1.0.0 /usr/lib/gwhere/plugins/catalog/ ln -s /usr/lib/libgwplugincataloggwcatalog.a /usr/lib/gwhere/plugins/catalog/ ln -s /usr/lib/libgwplugincataloggwcatalog.la /usr/lib/gwhere/plugins/catalog/ ln -s /usr/lib/libgwplugincataloggwcatalog.so /usr/lib/gwhere/plugins/catalog/ ln -s /usr/lib/libgwplugincataloggwcatalog.so.1 /usr/lib/gwhere/plugins/catalog/ ln -s /usr/lib/libgwplugincataloggwcatalog.so.1.0.0 /usr/lib/gwhere/plugins/catalog/ ln -s /usr/lib/libgwplugindescriptionavi.a /usr/lib/gwhere/plugins/descr/ ln -s /usr/lib/libgwplugindescriptionavi.la /usr/lib/gwhere/plugins/descr/ ln -s /usr/lib/libgwplugindescriptionavi.so /usr/lib/gwhere/plugins/descr/ ln -s /usr/lib/libgwplugindescriptionavi.so.1 /usr/lib/gwhere/plugins/descr/ ln -s /usr/lib/libgwplugindescriptionavi.so.1.0.0 /usr/lib/gwhere/plugins/descr/ ln -s /usr/lib/libgwplugindescriptiondescript_ion.a /usr/lib/gwhere/plugins/descr/ ln -s /usr/lib/libgwplugindescriptiondescript_ion.la /usr/lib/gwhere/plugins/descr/ ln -s /usr/lib/libgwplugindescriptiondescript_ion.so /usr/lib/gwhere/plugins/descr/ ln -s /usr/lib/libgwplugindescriptiondescript_ion.so.1 /usr/lib/gwhere/plugins/descr/ ln -s /usr/lib/libgwplugindescriptiondescript_ion.so.1.0.0 /usr/lib/gwhere/plugins/descr/ ln -s /usr/lib/libgwplugindescriptionfile_id_diz.a /usr/lib/gwhere/plugins/descr/ ln -s /usr/lib/libgwplugindescriptionfile_id_diz.la /usr/lib/gwhere/plugins/descr/ ln -s /usr/lib/libgwplugindescriptionfile_id_diz.so /usr/lib/gwhere/plugins/descr/ ln -s /usr/lib/libgwplugindescriptionfile_id_diz.so.1 /usr/lib/gwhere/plugins/descr/ ln -s /usr/lib/libgwplugindescriptionfile_id_diz.so.1.0.0 /usr/lib/gwhere/plugins/descr/ ln -s /usr/lib/libgwplugindescriptionhtml.a /usr/lib/gwhere/plugins/descr/ ln -s /usr/lib/libgwplugindescriptionhtml.la /usr/lib/gwhere/plugins/descr/ ln -s /usr/lib/libgwplugindescriptionhtml.so /usr/lib/gwhere/plugins/descr/ ln -s /usr/lib/libgwplugindescriptionhtml.so.1 /usr/lib/gwhere/plugins/descr/ ln -s /usr/lib/libgwplugindescriptionhtml.so.1.0.0 /usr/lib/gwhere/plugins/descr/ ln -s /usr/lib/libgwplugindescriptionmp3.a /usr/lib/gwhere/plugins/descr/ ln -s /usr/lib/libgwplugindescriptionmp3.la /usr/lib/gwhere/plugins/descr/ ln -s /usr/lib/libgwplugindescriptionmp3.so /usr/lib/gwhere/plugins/descr/ ln -s /usr/lib/libgwplugindescriptionmp3.so.1 /usr/lib/gwhere/plugins/descr/ ln -s /usr/lib/libgwplugindescriptionmp3.so.1.0.0 /usr/lib/gwhere/plugins/descr/ ln -s /usr/lib/libgwplugindescriptionmpc.a /usr/lib/gwhere/plugins/descr/ ln -s /usr/lib/libgwplugindescriptionmpc.la /usr/lib/gwhere/plugins/descr/ ln -s /usr/lib/libgwplugindescriptionmpc.so /usr/lib/gwhere/plugins/descr/ ln -s /usr/lib/libgwplugindescriptionmpc.so.1 /usr/lib/gwhere/plugins/descr/ ln -s /usr/lib/libgwplugindescriptionmpc.so.1.0.0 /usr/lib/gwhere/plugins/descr/ }