1 |
Salut, |
2 |
|
3 |
Inkscape est un chouette outil pour créer des dessins vectoriels (.svg |
4 |
quoi). |
5 |
|
6 |
J'ai pas trouvé d'ebuild, j'ai donc bricolé mon tout premier. Là chez |
7 |
moi il a marché, mais je l'ai bricolé un peu au pif, sans use ni rien, |
8 |
et avec seulement les depends qui me manquaient. |
9 |
|
10 |
Des fois que ca intéresse quelqu'un, le voici : |
11 |
|
12 |
|
13 |
# Copyright 1999-2006 Gentoo Foundation |
14 |
# Distributed under the terms of the GNU General Public License v2 |
15 |
# $Header: /var/cvsroot/gentoo-x86/media-tv/xdtv/xdtv-2.3.0.ebuild,v 1.5 |
16 |
2006/03/01 09:36:50 flameeyes Exp $ |
17 |
|
18 |
inherit font multilib autotools flag-o-matic |
19 |
|
20 |
IUSE="" |
21 |
|
22 |
DESCRIPTION="Inkscape est un logiciel libre d'édition de graphismes |
23 |
vectoriels" |
24 |
HOMEPAGE="http://www.inkscape.org/" |
25 |
|
26 |
|
27 |
SRC_URI="sourceforge.net/inkscape/${P}.tar.bz2" |
28 |
|
29 |
SLOT="0" |
30 |
LICENSE="GPL-2" |
31 |
KEYWORDS="~amd64 ~ppc ~x86" |
32 |
|
33 |
DEPEND=">=dev-libs/libgc-6.4 |
34 |
png>=media-libs/libpng-1.2.10" |
35 |
|
36 |
|
37 |
src_unpack() { |
38 |
unpack ${A} |
39 |
cd ${S} |
40 |
eautoreconf |
41 |
} |
42 |
|
43 |
src_compile() { |
44 |
# Seems to break strict aliasing rules, better give it non-strict |
45 |
aliasing |
46 |
append-flags -fno-strict-aliasing |
47 |
|
48 |
|
49 |
econf \ |
50 |
${myconf} \ |
51 |
|| die "Configuration failed." |
52 |
|
53 |
emake BINDNOW_FLAGS="$(bindnow-flags)" OPT="${CFLAGS}" |
54 |
PERF_FLAGS="${CFLAGS}" || die "Compilation failed." |
55 |
|
56 |
} |
57 |
|
58 |
src_install() { |
59 |
make DESTDIR=${D} install || die "Installation failed." |
60 |
|
61 |
# .desktop file and default icon |
62 |
domenu gentoo/inkscape.desktop |
63 |
doicon ${S}/inkscape.png |
64 |
|
65 |
# Install the icons in the hicolor theme |
66 |
for dim in 48 32 16; do |
67 |
insinto /usr/share/icons/hicolor/${dim}x${dim}/apps |
68 |
newins ${S}/inkscape-${dim}.png inkscape.png |
69 |
done |
70 |
|
71 |
} |
72 |
|
73 |
pkg_postinst() { |
74 |
echo |
75 |
einfo "Please note that this ebuild is a first attempt !!!" |
76 |
echo |
77 |
echo |
78 |
|
79 |
-- |
80 |
gentoo-user-fr@g.o mailing list |