# Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ DESCRIPTION="A toolbox for loading,converting and viewing of medical images" # Homepage, not used by Portage directly but handy for developer reference HOMEPAGE="http://xmedcom.sourceforge.net/" SRC_URI="http://heanet.dl.sourceforge.net/sourceforge/xmedcon/xmedcon-0.8.13.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="x86 ~ppc ~sparc ~alpha" # Comprehensive list of any and all USE flags leveraged in the ebuild, # with the exception of any ARCH specific flags, i.e. "ppc", "sparc", # "x86" and "alpha". This is a required variable. If the # ebuild doesn't use any USE flags, set to "". IUSE="gtk gif png" # Build-time dependencies, such as # ssl? ( >=dev-libs/openssl-0.9.6b ) # >=dev-lang/perl-5.6.1-r1 # It is advisable to use the >= syntax show above, to reflect what you # had installed on your system when you tested the package. Then # other users hopefully won't be caught without the right version of # a dependency. DEPEND="dev-libs/glib png? ( media-libs/libpng ) gtk? ( x11-libs/gtk+ ) gtk? ( media-libs/gdk-pixbuf )" # Run-time dependencies, same as DEPEND if RDEPEND isn't defined: #RDEPEND="" # Source directory; the dir where the sources can be found (automatically # unpacked) inside ${WORKDIR}. S will get a default setting of ${WORKDIR}/${P} # if you omit this line. S=${WORKDIR}/${P} src_compile() { config="" use gtk || config=" --disable-gui" use png || config="$config --disable-png " ./configure \ --host=${CHOST} \ --prefix=/usr \ --infodir=/usr/share/info \ --mandir=/usr/share/man \ ${config} || die "./configure failed" emake || die } src_install() { einstall || die }