blob: 1ae924f790d8a19a1469b58ba121197a4247fd7a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
# Copyright 2007-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="2"
inherit base multilib toolchain-funcs
MY_P="separate+-${PV}"
SFNUM="42977"
DESCRIPTION="Gimp CMYK plug-in."
HOMEPAGE="http://cue.yellowmagic.info/softwares/separate.html"
SRC_URI="mirror://sourceforge.jp/separate-plus/${SFNUM}/${MY_P}.zip
http://download.adobe.com/pub/adobe/iccprofiles/win/AdobeICCProfilesCS4Win_end-user.zip"
LICENSE="GPL-2 Adobe"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
RDEPEND="media-libs/lcms
media-libs/jpeg
media-libs/tiff
media-gfx/gimp"
DEPEND="${RDEPEND}"
S="${WORKDIR}/${MY_P}"
PATCHES=(
"${FILESDIR}"/${PV}-Makefile.patch
)
src_prepare() {
base_src_prepare
sed \
-e "s:GENTOOLIBDIR:$(get_libdir):g" \
-i Makefile
}
src_compile() {
emake \
CC="$(tc-getCC)" \
|| die "compilation failed"
}
src_install() {
emake PREFIX="${D}/usr" install || die "emake install failed"
insinto /usr/share/color/icc
doins -r sRGB || die "doins failed installing sRGB icc profiles"
cd "${WORKDIR}/Adobe ICC Profiles (end-user)"
doins -r CMYK RGB || die "doins failed installing Adobe CMYK and RGB icc profiles"
}
|