blob: 2864b7c7cb366bb93b0bd2b3219413b3b5a3bd80 (
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
|
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-gfx/gimp/gimp-2.0_pre3-r1.ebuild,v 1.4 2004/04/27 21:42:17 agriffis Exp $
inherit debug flag-o-matic libtool eutils
MY_PV=${PV/_/}
MY_P=${PN}-${MY_PV}
S=${WORKDIR}/${MY_P}
DESCRIPTION="GNU Image Manipulation Program - Development series"
SRC_URI="mirror://gimp/v2.0/testing/${MY_P}.tar.bz2"
HOMEPAGE="http://www.gimp.org/"
SLOT="2"
LICENSE="GPL-2"
KEYWORDS="~x86 ~ppc ~hppa ~sparc ~amd64"
IUSE="doc python aalib png jpeg tiff wmf gimpprint gtkhtml mmx sse X altivec"
# FIXME : some more things can be (local) USE flagged
RDEPEND=">=dev-libs/glib-2.2
>=x11-libs/gtk+-2.2.2
>=x11-libs/pango-1.2.2
>=media-libs/fontconfig-2.2
>=media-libs/libart_lgpl-2.3.8-r1
sys-libs/zlib
gimpprint? ( =media-gfx/gimp-print-4.2* )
gtkhtml? ( =gnome-extra/libgtkhtml-2* )
png? ( >=media-libs/libpng-1.2.1 )
jpeg? ( >=media-libs/jpeg-6b-r2
media-libs/libexif )
tiff? ( >=media-libs/tiff-3.5.7 )
wmf? ( >=media-libs/libwmf-0.2.8 )
aalib? ( media-libs/aalib )
python? ( >=dev-lang/python-2.2
>=dev-python/pygtk-2 )
X? ( virtual/x11 )"
DEPEND="${RDEPEND}
>=dev-util/pkgconfig-0.12.0
dev-util/intltool
doc? ( >=dev-util/gtk-doc-1 )"
# sys-devel/gettext
src_unpack() {
unpack ${A}
cd ${S}
# Fix linking to older version of gimp if installed - this should
# void liquidx's hack, so it is removed.
epatch ${FILESDIR}/ltmain_sh-1.5.0-fix-relink.patch
# gcc2 fixes (#41487)
epatch ${FILESDIR}/${P}-gcc_2.95.patch
}
src_compile() {
# Since 1.3.16, fixes linker problems when upgrading
elibtoolize
# Workaround portage variable leakage
local AA=
local myconf=
replace-flags "-march=k6*" "-march=i586"
# gimp uses inline functions (plug-ins/common/grid.c) (#23078)
filter-flags "-fno-inline"
econf ${myconf} \
`use_enable mmx` \
`use_enable sse` \
`use_enable altivec` \
`use_enable doc gtk-doc` \
`use_enable python` \
`use_enable gimpprint print` \
`use_with X x` \
`use_with png libpng` \
`use_with jpeg libjpeg` \
`use_with jpeg libexif` \
`use_with tiff libtiff` \
`use_with aalib aa` \
--enable-debug || die
emake || die
}
src_install() {
# Workaround portage variable leakage
local AA=
make DESTDIR=${D} install || die
# Install desktop file in the right place
insinto /usr/share/applications
newins ${S}/data/misc/gimp.desktop gimp-${PV}.desktop
dodoc AUTHORS COPYING ChangeL* HACKING INSTALL \
MAINTAINERS NEWS PLUGIN_MAINTAINERS README* TODO*
}
pkg_postinst() {
ewarn "The development Gimp series have been reslotted to SLOT 2"
ewarn "To clean up old 1.3 versions use 'emerge -C =gimp-1.3* -vp'"
echo ""
ewarn "If you are upgrading from an earlier 1.3/2.0_pre release, please note that"
ewarn "the gimprc and sessionrc file formats changed. We suggest you remove"
ewarn "your personal ~/.gimp-1.3 directory and do a fresh user installation."
}
|