# Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ IUSE="" DESCRIPTION="Gimp CMYK plug-in." HOMEPAGE="http://www.blackfiveservices.co.uk/separate.shtml" SRC_URI="http://www.blackfiveservices.co.uk/projects/separate-gimp2-0.3_linux.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" DEPEND="media-libs/lcms media-libs/tiff media-gfx/adobe-iccprofiles >=media-gfx/gimp-2" PROG=separate S=${WORKDIR}/${PROG}-0.3_linux src_unpack() { cd ${WORKDIR} pwd unpack ${A} cd ${S} emake clean # rm platform.h # ln -s platform_unix.h platform.h # epatch ${FILESDIR}/${PV}/gimp-cmyk-0.1-fixpath.patch } src_compile() { cd ${S} make #CC="${CC}" CFLAGS="-O2 -march=i686 -pipe" # a stupid hack? i duno a better way of doing this, # feel free to change! (echo $FEATURES | grep nostrip &> /dev/null) || strip ${PROG} } src_install() { einfo "dummy install. we'll do this later wz gimptool-2.0." } pkg_postinst() { einfo "Installing gimp-cmyk (separate) with gimptool-2.0..." gimptool-2.0 --install-admin-bin ${S}/${PROG} } pkg_postrm() { einfo "Uninstalling gimp-cmyk (separate) with gimptool-2.0..." gimptool-2.0 --uninstall-admin-bin ${S}/${PROG} }